You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, I seem to have found a corner case in the railroad diagram creation that's triggered by specific uses of Combine() in the grammars. If the Combine only wraps part of the grammar then the diagram looks as expected, however if the combine wraps the entire grammar, then the diagram is empty. The snippets below demonstrate the working case and the broken case for a simple time string grammar:
So, I seem to have found a corner case in the railroad diagram creation that's triggered by specific uses of Combine() in the grammars. If the Combine only wraps part of the grammar then the diagram looks as expected, however if the combine wraps the entire grammar, then the diagram is empty. The snippets below demonstrate the working case and the broken case for a simple time string grammar:
Empty railroad diagram: Combine wrapping entire grammar
Expected railroad diagram: Combine wrapping only part of grammar
Note the difference is the last ":" + integer part of the grammar is outside the Combine in this case
ON a side note, this is looking to be a pretty great way to document parsers and love that it's been added!
The text was updated successfully, but these errors were encountered: