LazyBNF
Sintaxes completas representadas por
Diagrama Sintático - Diagrama de Sintaxe
(
ver convenções
) ou
BNF
(ver
convenções
).
Diagrama Sintático - Diagrama de Sintaxe
|
Diagrama Sintático - Diagrama de Sintaxe e BNF
|
BNF
1
.
LazyBnf
LazyBnf
: (identifier (":" | "=") expression ("."|";"))+
2
.
expression
expression
: term { "|" term }
3
.
term
term
: ( (identifier | quoted_symbol | "(" expression ")" | /*1 vez*/ "[" expression "]" | /* 0-1 */ "{" expression "}" ) /* 0-inf*/ ["*" | "+" | "?" ] /* *:0-inf, +:1-inf, ?0-1 */ )+
4
.
identifier
identifier
: letter[(letter|digit| "_")+]
5
.
quoted_symbol
quoted_symbol
: '"' [any_character+] '"'| "'" [any_character+] "'"