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
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
-
Hello @adrian-thurston,
Thanks for your great effort to make
ragel
. It is extremely useful and I use it in several open source projects.I'm working on a parser for the following language:
<?r ... ?>
instruction tags#{...}
expression tags (can be nested)Here is my current parser:
The problem is, this won't correctly parse the input "##{foo}" as
pcdata
rule will consume##
.In order to not consume
##
, I usedfhold
, but I found it interacted badly withts
andte
.In other words, this didn't work:
But this did:
I'm not sure what is the best way to solve this problem, so would love some input on the best way to solve this problem. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions