4coder/4coder_config_grammar.txt

10 lines
359 B
Plaintext
Raw Normal View History

2018-10-06 01:42:56 +00:00
sconfig := [version] {assignment}
2018-05-12 00:53:02 +00:00
version := "version" "(" INTEGER ")" ";"
2018-05-12 00:53:02 +00:00
assignment := lvalue "=" rvalue ";"
lvalue := IDENTIFIER [ "[" INTEGER "]" ]
rvalue := lvalue | BOOLEAN | INTEGER | STRING | CHARACTER | "{" compound_body
compound_body := compound_element {"," compound_element} [","] "}"
compound_element := ["." (IDENTIFIER | INTEGER) "="] rvalue