Browsable ATerms Grammar

CC-BY

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]

Summary

Syntax

RealCon ::=
	[RealCon]::(IntCon "." NatCon OptExp)
IntCon ::=
	[Positive]::("+" NatCon)
IntCon ::=
	[Natural]::NatCon
IntCon ::=
	[Negative]::("-" NatCon)
AFun ::=
	[Quoted]::StrCon
AFun ::=
	[Unquoted]::IdCon
Annotation ::=
	[Default]::("{" {ATerm ","}+ "}")
ATerm ::=
	[Appl]::(AFun "(" {ATerm ","}+ ")")
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]::ε

GrammarLabMaintained by Dr. Vadim Zaytsev a.k.a. @grammarware. Last updated in September 2015. []