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
The reason for the failure seems to be that the initial repetition rule, *ab, is applied greedily, swallowing the single character b. The parser never then checks for the possibility of zero matches for repetition *ab, followed by a successful match of rule b.
This appears to be inconsistent with RFC 5234.
The text was updated successfully, but these errors were encountered:
This is a hard one (for me) to explain, so let's take an example. Take the following minimal grammar:
The following string should successfully be parsed by the grammar:
like so:
This fails, though, with the following result:
The reason for the failure seems to be that the initial repetition rule,
*ab
, is applied greedily, swallowing the single characterb
. The parser never then checks for the possibility of zero matches for repetition*ab
, followed by a successful match of ruleb
.This appears to be inconsistent with RFC 5234.
The text was updated successfully, but these errors were encountered: