Browsable S-Expression Grammar

CC-BY

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]

Summary

Syntax

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* ")"

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