Relations.relast 634 Bytes
Newer Older
1
2
// do line comments work?

3
Root ::= A* B*;
4
A ::= <Name> /SomeNTA:A/;
5
6
B ::= <Name>;

7
8
9
rel A.Di1  -> B;
rel A.Di2? -> B;
rel A.Di3* -> B;
10

11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
  do multiline comments work
*/

/**/

/*
 * work?
*/

/**
 * The root of a Java AST.
 *
 * <p>A Java program consists of multiple compilation units that represent the
 * source files of the program.
 */

28
29
30
rel A.Bi1 <-> B.Bi1;
rel A.Bi2 <-> B.Bi2?;
rel A.Bi3 <-> B.Bi3*;
31

32
33
34
rel A.Bi4? <-> B.Bi4;
rel A.Bi5? <-> B.Bi5?;
rel A.Bi6? <-> B.Bi6*;
35

36
37
38
rel A.Bi7* <-> B.Bi7;
rel A.Bi8* <-> B.Bi8?;
rel A.Bi9* <-> B.Bi9*;
39
40
41
42
43

rel A <- Root.AaLeft?;
rel B <- A.Di1Left ;
rel B <- A.Di2Left?;
rel B <- A.Di3Left*;