-
Notifications
You must be signed in to change notification settings - Fork 38
Description
This is a follow up to PR #483 we now have a number of ways in which RegexOptions can be used to alter the lrlex format primarily by modifying the interpretation of regular expressions.
In that PR it had been mentioned doing follow up work adding a LexKind similar to YaccKind
One thing I have been thinking about which is kind of tangential but related to this is issue #349 which delays the time that YaccKind is known until parser reading time. What seems like it should be a trivial refactor, but also a breaking change. I think it ends up a little bit less trivial than I think it first appears since it introduces some new kinds of propositions for directives that current directives doesn't require and the format parsing code has no current way to enforce.
- YaccKind affects other directives in the file format so presumably it needs to be first before other directives
- It should also probably be unique in that we don't want multiple
*Kinds.
Thus my thoughts have been that it would be good to try and come to some kind of conclusion on #349 as we introduce a LexKind, just to either avoid introducing any new code that could require this same delicate refactoring, or close #349 abandoning the idea of having self describing formats.
Anyhow I'll post some more new thoughts related to that other issue where they belong.