nanopass / nanopass-framework-racket

nanopass compiler framework for Racket
http://nanopass.org
MIT License
181 stars 29 forks source link

Ordering bug for processor clauses #7

Open schuster opened 8 years ago

schuster commented 8 years ago

The following program generates an error I can't understand: https://gist.github.com/schuster/8e3cae9dfac839a7b055

It seems like in this case the ordering of processor clauses must match the order in the grammar, which shouldn't be necessary. The error message also doesn't make clear what the error actually is.

schuster commented 8 years ago

Found a simpler instance of what appears to be the same issue, but with with-output-language: https://gist.github.com/schuster/6543997ae8617c43add3

@LeifAndersen points out that it's likely because primop calls and function calls in this grammar are both "tagless" items with the same structure.