Last active
February 29, 2016 20:52
-
-
Save arathnim/c0c54896dba04ff104dc to your computer and use it in GitHub Desktop.
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
(load "parmesan-test.cl") | |
(in-package parmesan) | |
(defparser symbol (intern (string-upcase (many+ letters)))) | |
(defparser integer (parse-integer (many+ digits))) | |
(defparser quoted (between "'" (many (except "'")) "'")) | |
(defparser term (car ((choice quoted symbol integer sexp) (skip (many " "))))) | |
(defparser sexp (between "(" (manyc term)) ")")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment