Created
April 7, 2014 17:35
-
-
Save Mause/10024721 to your computer and use it in GitHub Desktop.
For use here; http://mause.me/blog/2014/04/08/lists-with-lemon.html
This file contains 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
list(A) ::= LIST_ITEM(B). { A=B; } | |
list(A) ::= LIST_ITEM(B) list_clause(C). { | |
A=B; | |
append_contents of C to B | |
} | |
list_clause(A) ::= COMMA list(B). { A=B; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment