Browsable ATerms Grammar

CC-BY

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

Summary

Syntax

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]::"+" NatCon
IntCon ::=
	[neg]::"-" NatCon
OptExp ::=
	"e" IntCon
OptExp ::=
	ε
RealCon ::=
	[base]::IntCon "." [decimal]::NatCon [exp]::OptExp

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