add lexer
tester
This commit is contained in:
@@ -12,7 +12,30 @@ options {
|
||||
|
||||
}
|
||||
|
||||
entite: '<' ID '>';
|
||||
LC : '<'
|
||||
RC : '>'
|
||||
P: '.'
|
||||
V: ','
|
||||
SEMI: ';'
|
||||
G: '"'
|
||||
prog : bloc EOF
|
||||
;
|
||||
bloc : sujet listvc P
|
||||
;
|
||||
sujet : LC entity RC
|
||||
;
|
||||
listvc : LC vc RC more
|
||||
;
|
||||
more : SEMI listvc
|
||||
|
|
||||
;
|
||||
vc : LC verbe RC listc
|
||||
;
|
||||
listc : LC comp RC morec
|
||||
;
|
||||
morec : V comp
|
||||
|
|
||||
;
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user