mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2024-12-22 11:55:30 +00:00
Updated PL/0 grammar file.
This commit is contained in:
parent
38ac34d1ad
commit
d7e8cf03f3
@ -12,8 +12,8 @@ call <- 'CALL' _ ident
|
|||||||
statements <- 'BEGIN' _ statement (';' _ statement )* 'END' _
|
statements <- 'BEGIN' _ statement (';' _ statement )* 'END' _
|
||||||
if <- 'IF' _ condition 'THEN' _ statement
|
if <- 'IF' _ condition 'THEN' _ statement
|
||||||
while <- 'WHILE' _ condition 'DO' _ statement
|
while <- 'WHILE' _ condition 'DO' _ statement
|
||||||
out <- '!' _ expression
|
out <- ('out' / 'write' / '!') _ expression
|
||||||
in <- '?' _ ident
|
in <- ('in' / 'read' / '?') _ ident
|
||||||
|
|
||||||
condition <- odd / compare
|
condition <- odd / compare
|
||||||
odd <- 'ODD' _ expression
|
odd <- 'ODD' _ expression
|
||||||
|
Loading…
Reference in New Issue
Block a user