comparison tests/agcl/parsifal/tcsoff1.syn @ 0:13d2b8934445

Import AnaGram (near-)release tree into Mercurial.
author David A. Holland
date Sat, 22 Dec 2007 17:52:45 -0500
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:13d2b8934445
1 [
2 ~case sensitive
3 ]
4
5 eof = -1
6 eol = '\n'
7
8 grammar
9 -> [word...|eol...|string 1 | string 2]/..., eof
10
11 word
12 -> "yes" =printf("Input was yes\n");
13 -> "no" =printf("Input was no\n");
14
15 string 1
16 -> 'a-n'... = printf("input was 'a-n'...\n");
17
18 string 2
19 -> 'O-Z'... = printf("input was 'O-Z'...\n");