Skip to content

Instantly share code, notes, and snippets.

@dce
Created April 24, 2010 21:30
Show Gist options
  • Save dce/377967 to your computer and use it in GitHub Desktop.
Save dce/377967 to your computer and use it in GitHub Desktop.
grammar BasicLISP
rule expression
"(" (expression / method_call) ")"
end
rule method_call
[\w]+ argument*
end
rule argument
[\s]+ (expression / number / string)
end
rule number
[\d]+
end
rule string
'"' [\w]+ '"'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment