nathansobo/treetop — Issue #21: Labeling an expression appears to require another expression; why?
Author: jbrains
Created: 2011-12-08 18:27:43+00:00
State: open

I'm test-driving my grammar, because I'm learning Treetop at the same time as designing my language. As an intermediate step, I try to write a grammar with a rule whose expression I want to label. When I do this, the grammar itself no longer parses correctly. It looks like what I've done somewhere else, so I can't figure out the problem. Finally, I conclude that labeling an expression **requires** having at least one more expression following it. I don't find that constraint helpful, so why have it? I will include a gist of the spec that fails.