nitlanguage
/
nit.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge: Misc AST
[nit.git]
/
contrib
/
nitcc
/
tests
/
inf5000-05-grammaire-lisp.sablecc
1
Grammar lisp;
2
Lexer
3
id = ('a'..'z')+;
4
blank = ' ' | #9 | #10 | #13;
5
6
Parser
7
Ignored blank;
8
9
item = {par:} '(' list ')' |
10
{nil:} '(' ')' |
11
{id:} id ;
12
list = {many:} item list |
13
{one:} item ;