Skip to main content
Share Your Experience: Take the 2024 Developer Survey

New answers tagged

1 vote

Concatenating strings given a BNF grammar

A production rule for an empty string (or equivalently an empty token) can always succeed by consuming nothing from the input. So, when you peek '(', the parser first tries the production <Letter&...
Bart van Ingen Schenau's user avatar

Top 50 recent answers are included