real parser for Alvey grammar: new version of BigLexEng

This commit is contained in:
aarne
2006-11-07 16:38:37 +00:00
parent e8bad7f7e0
commit 1fd0113015
10 changed files with 18668 additions and 11966 deletions

20
examples/big/MAP/Lisp.cf Normal file
View File

@@ -0,0 +1,20 @@
-- Lisp as used in the Alvey grammar
entrypoints Prog, Exp ;
Pro. Prog ::= [Exp] ;
App. Exp ::= "(" [Exp] ")" ;
At. Exp ::= Id ;
IdPlus. Exp ::= IdPl ;
IdStr. Exp ::= String ;
Plus. Exp ::= "+" ;
Minus. Exp ::= "-" ;
Num. Exp ::= Integer ;
token IdPl ('+' letter (letter | digit | '-' | '_')*) ;
token Id (letter (letter | digit | '-' | '_')*) ;
terminator Exp "" ;
comment ";;" ;