Skip to content

Instantly share code, notes, and snippets.

@nulldatamap
Created June 18, 2014 13:07
Show Gist options
  • Select an option

  • Save nulldatamap/08037c7a9f7c8dfbf06e to your computer and use it in GitHub Desktop.

Select an option

Save nulldatamap/08037c7a9f7c8dfbf06e to your computer and use it in GitHub Desktop.
/*
Syntax (whitespace is ignored):
expr := '(' name (expr|val)* ')'
val := symbol|int|bool|string|list|name
symbol := ':' name
int := 0..9+
bool := 'true'|'false'
string := '"' (escape|char)* '"'
escape := '\\'|'\n'|'\t'|'\"'
char := -('\n'|'\r'|'"')
list := '[' atom* ']'
name := (a..z|A..Z|_)+(a..z|A..Z|0..9|_)*
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment