Skip to content

gefjon/define-language

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

define-language

Sample usage:

(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'

About

Macro for processing s-expression based languages

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published