nanopass-framework-racket icon indicating copy to clipboard operation
nanopass-framework-racket copied to clipboard

Ordering bug for processor clauses

Open schuster opened this issue 8 years ago • 1 comments

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 avatar Mar 11 '16 18:03 schuster

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.

schuster avatar Mar 11 '16 18:03 schuster