Mercurial > ~dholland > hg > ag > index.cgi
diff tests/agcl/parsifal/t201a.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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/agcl/parsifal/t201a.syn Sat Dec 22 17:52:45 2007 -0500 @@ -0,0 +1,38 @@ +letter = 'a-z' + 'A-Z' +digit = '0-9' +eof = 0 + +universe = ~eof + +nonprintable = 1..8 + +printable = (universe - nonprintable) - (letter - 'p-q') + +name + -> letter =1; + -> name, letter + digit =2; + + +hex digit, text + -> digit + -> 'a-f' + -> 'A-F' + +hex number + -> "0x", hex digit =1; + -> hex number , hex digit =4; + +number + -> digit + -> number, digit + +token + -> name + -> number + -> hex number + -> '/', printable + -> '|', nonprintable + -> '!', universe + + grammar + -> token, eof