akeep / nanopass-framework-racket

Racket port of the nanopass-framework
MIT License
34 stars 9 forks source link

Improve error message #22

Closed soegaard closed 9 years ago

soegaard commented 9 years ago

This program gives the error "define-language: unrecognized clause in: (Expr r)". Better wording: "define-language: Expected nonterminal clause of the form (keyword (meta-var ...) production-clause ...) in: (Expr r).

(define-language L (entry Expr) (terminals (number (r))) (Expr r))