4coder/4coder_config_grammar.txt

10 lines
354 B
Plaintext

config := [version] {assignment}
version := "version" "(" INTEGER ")"
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