Grammar extracted by Vadim Zaytsev, see the Grammar Zoo entry for details: meta/syntax/terms/aterms/rascal/extracted
Source used for this grammar: Jurgen Vinju, lang::aterm::syntax::ATerm
, 11 January 2012 [GitHub]
RealCon
, IntCon
, AFun
, Annotation
, ATerm
, OptExp
), 0 root (—), 0 top (—), 3 bottom (StrCon
, IdCon
, NatCon
4).[RealCon]
, [Positive]
, [Natural]
, [Negative]
, [Quoted]
, [Unquoted]
, [Default]
, [Appl]
, [Real]
, [List]
, [Annotated]
, [Placeholder]
, [Int]
, [Fun]
, [Present]
, [Absent]
.RealCon ::= [RealCon]::"." NatCon OptExpIntCon
IntCon ::= [Positive]::"+" NatCon
IntCon ::= [Natural]::NatCon
IntCon ::= [Negative]::"-" NatCon
AFun ::= [Quoted]::StrCon
AFun ::= [Unquoted]::IdCon
Annotation ::= [Default]::"{" ATerm "," "}"
ATerm ::= [Appl]::"(" ATerm "," ")"AFun
ATerm ::= [Real]::RealCon
ATerm ::= [List]::"[" ATerm "," "]"
ATerm ::= [Annotated]::ATerm Annotation
ATerm ::= [Placeholder]::"<" ATerm ">"
ATerm ::= [Int]::IntCon
ATerm ::= [Fun]::AFun
OptExp ::= [Present]::"e" IntCon
OptExp ::= [Absent]::ε