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
I was wondering how others debug a syntax, or when using a custom built parser (which might still be buggy). When the match is successful it's easy to output the tree to text, but if it fails, then it's hard to figure out how exactly the parsing was done and why it failed.
I added some additional code right into the Parser.cs, so I can enable outputting to console in real time. But I don't want to reinvent the wheel if there's already a better way to do it. Or I can share my solution.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I was wondering how others debug a syntax, or when using a custom built parser (which might still be buggy). When the match is successful it's easy to output the tree to text, but if it fails, then it's hard to figure out how exactly the parsing was done and why it failed.
I added some additional code right into the Parser.cs, so I can enable outputting to console in real time. But I don't want to reinvent the wheel if there's already a better way to do it. Or I can share my solution.
Beta Was this translation helpful? Give feedback.
All reactions