((comment test dot grammar)
(infix "+" "*")
(prefix "-")
(openfix "(" ")" "[" "]")
(postfix "!")
(rightfix "[" "]")
(S  (term "+" S) (id "[" S "]") ("-" term) )
(term  (id "*" term) (id "!") ("(" S ")")))