snake/doc/grammar.bnf

8 lines
168 B
BNF
Raw Normal View History

2023-10-14 01:56:31 +00:00
DOC ::= RULE*
RULE ::= TARGET rarrow DEPS BLOCK
TARGET ::= ident+
DEPS ::= ident*
BLOCK ::= obrace CMD_LST cbrace
CMD_LST ::= (CMD (comma CMD)* comma?)?
CMD ::= ident*