(define-language (process-expr define-expr define-expr-clause))
(define-expr (sym symbol)
(print sym))
(define-expr-clause neato (&optional thing)
(format t "~&neato! ~a~%" thing)
(parse-expr thing))
;; (parse-expr 'foo) ; prints and returns `FOO'
;; (parse-expr '(neato foo)) ; prints `neato! FOO', then prints and returns `FOO'
-
Notifications
You must be signed in to change notification settings - Fork 0
Macro for processing s-expression based languages
License
gefjon/define-language
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Macro for processing s-expression based languages
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published