Closed pdubroy closed 7 years ago
null
so that it picks whatever rule is first (implicit start rule) again.I think that either 3. or 2. are good ways to go. I don't really like the idea of keeping a reference to a non-existing rule anymore.
I'm worried about what happens if -- intentionally or accidentally -- you change the name of a rule that several examples use as their start rule. Say you accidentally delete a character from the rule name, I think it could be pretty annoying if that silently updated a dozen examples and then you had to go and manually fix them again.
I see. It wouldn't break anything when it is still the first rule and therefore the implicit start rule. However, it makes a difference for a rule somewhere in between. So, 2.?
This has already been fixed.
If an example has an explicit start rule set (e.g., 'Foo') and that rule is later delete from the grammar, we should improve the feedback that we give. Currently, the example will turn red, but we don't show much feedback about what the problem is.
Here's what I'm thinking:
Thoughts, @mroeder and @sakekasi?