Grammar extracted by Vadim Zaytsev, see the Grammar Zoo entry for details: §wip/metasyntax/box-rascal/extracted
Source used for this grammar: Bert Lisser, Jurgen Vinju, lang::box::syntax::Box
, 2011–2012 [GitHub]
BoxOperator
, Context
, Boxx
, GroupOption
, FontOperator
, SpaceSymbol
, SpaceOption
, AlignmentOptions
, AlignmentOption
, Main
), 0 root (—), 3 top (Context
, GroupOption
, Main
), 3 bottom (StrCon
5, WhitespaceAndComment
, NatCon
2).[options]
9, [alignments]
, [operator]
2, [list]
2.BoxOperator ::= "HOV" [options]::SpaceOption
BoxOperator ::=
"WD"
BoxOperator ::= "A" [alignments]::AlignmentOptions [options]::SpaceOption
BoxOperator ::= "HV" [options]::SpaceOption
BoxOperator ::=
"R"
BoxOperator ::= "H" [options]::SpaceOption
BoxOperator ::= "I" [options]::SpaceOption
BoxOperator ::= "V" [options]::SpaceOption
Context ::=
"H"
Context ::=
"V"
Boxx ::= "REF" "[" StrCon "," Boxx "]"
Boxx ::= "LBL" "[" StrCon "," Boxx "]"
Boxx ::= [operator]::BoxOperator "[" [list]::Boxx "]"
Boxx ::= StrCon
Boxx ::= "CNT" "[" StrCon "," StrCon "]"
Boxx ::= [operator]::FontOperator "[" [list]::Boxx "]"
GroupOption ::= "gs" "=" NatCon
GroupOption ::= "op" "=" BoxOperator
FontOperator ::=
"VAR"
FontOperator ::=
"MATH"
FontOperator ::=
"COMM"
FontOperator ::=
"KW"
FontOperator ::=
"NUM"
FontOperator ::=
"ESC"
FontOperator ::=
"STRING"
SpaceSymbol ::=
"vs"
SpaceSymbol ::=
"ts"
SpaceSymbol ::=
"hs"
SpaceSymbol ::=
"is"
SpaceOption ::=
SpaceSymbol "=" NatCon
AlignmentOptions ::= "(" AlignmentOption "," ")"
AlignmentOption ::= "r" [options]::SpaceOption
AlignmentOption ::= "l" [options]::SpaceOption
AlignmentOption ::= "c" [options]::SpaceOption
Main ::=
Boxx WhitespaceAndComment