
Grammar extracted by Vadim Zaytsev, see the Grammar Zoo entry for details: meta/syntax/terms/aterms/sdf/extracted
Source used for this grammar: Jurgen Vinju, Bas Basten, aterm/syntax/*.sdf, February 2006 – January 2009
AFun, ATerm, Annotation, IntCon, OptExp, RealCon), 0 root (—), 0 top (—), 3 bottom (StrCon, IdCon, NatCon 4).[fun] 2, [args], [type], [elems], [trm], [annos], [pos], [neg], [base], [decimal], [exp].AFun ::= StrCon
AFun ::= IdCon
ATerm ::= IntCon
ATerm ::= RealCon
ATerm ::= [fun]::AFun
ATerm ::= [fun]::AFun "(" [args]::ATerm "," ATerm ")"
ATerm ::= "<" [type]::ATerm ">"
ATerm ::= "[" [elems]::ATerm "," ATerm "]"
ATerm ::= [trm]::ATerm Annotation
Annotation ::= "{" [annos]::ATerm "," ATerm "}"
IntCon ::= NatCon
IntCon ::=
[pos]::"+" NatConIntCon ::=
[neg]::"-" NatConOptExp ::=
"e" IntConOptExp ::= ε
RealCon ::=
[base]::IntCon "." [decimal]::NatCon [exp]::OptExp