Created
April 24, 2010 21:30
-
-
Save dce/377967 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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