Grammar extracted by Vadim Zaytsev, see the Grammar Zoo entry for details: toy/s-expr/rascal/extracted
Source used for this grammar: Tijs van der Storm, Jurgen Vinju, lang::sexp::syntax::SExp
, March–December 2012 [Explore]
Display
, SimpleString
, Base64
, SExp
, HexaDecimal
, String
, List
), 0 root (—), 0 top (—), 5 bottom (QuotedString
, Token
, HexDigit
, Raw
, Base64Char
).[raw]
, [base64]
, [hex]
, [token]
, [quoted]
, [list]
, [string]
, [display]
, [simple]
.Display ::= "[" SimpleString "]"
SimpleString ::= [raw]::Raw
SimpleString ::= [base64]::Base64
SimpleString ::= [hex]::HexaDecimal
SimpleString ::= [token]::Token
SimpleString ::= [quoted]::QuotedString
Base64 ::= "|" Base64Char "|"
SExp ::= [list]::List
SExp ::= [string]::String
HexaDecimal ::= "#" HexDigit "#"
String ::= [display]::Display SimpleString
String ::= [simple]::SimpleString
List ::= "(" SExp ")"