File: TestResOK.ATG

package info (click to toggle)
coco-doc 20060919-2
  • links: PTS
  • area: main
  • in suites: buster, etch, etch-m68k, jessie, jessie-kfreebsd, lenny, squeeze, stretch, wheezy
  • size: 852 kB
  • sloc: makefile: 27
file content (55 lines) | stat: -rw-r--r-- 701 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
$AFGJSX
COMPILER Test
PRODUCTIONS
  Test = A B C D E F G H 
       | I.
  
  A = "a" {[IF (true) "b" "c"] "b"} "c".
  
  B =
  ( "a"
  | IF (eee) "b"
  |
  ) "b".
  
  C = (IF(true) "a" "b" | "a").
  
  D = {
  	IF (true) "a"
  | "a" "b"
  } "c".
  
  E = 
  ( "a"
  | [ IF(true) "c"
  	| "c" "b"
  	]
  | "b"
  ) "d".
  
  F =
  { IF(true) ["a"] "b"
  | ANY
  | "a"
  } "c".
  
	G = 
	{ IF (aaa) "a"}
	{ IF (bbb)
		(IF (eee) ("a" | "b")
		| "b"
		)
	} "a".
  
	H = 
	{ IF (aaa) "a"}
	{ IF (eee) ("a" | "b")
	| "b"
	} "c".
	
	I =  // both alternatives can be selected with EOF as the next input symbol
	( IF (aaa) ["b"]
	| {"c"}
	).
  
END Test.