nitlanguage
/
nit.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge: mongodb: Fixed failing test for `aggregate` method.
[nit.git]
/
contrib
/
nitcc
/
tests
/
inf5000-05-grammaire-formes.sablecc
1
Grammar formes;
2
Lexer
3
nombre = ('0'..'9')+;
4
blank = ' ' | #9 | #10 | #13;
5
6
Parser
7
Ignored blank;
8
forme = {cercle:} 'centre' point 'rayon' long |
9
{segment:} point '--' point ;
10
point = '(' long ',' long ')' ;
11
long = nombre unite ;
12
unite = 'cm' | 'mm' | 'pt' | 'px' ;