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
Like this, any "this" string gets tokenized as a "this" token because that definition comes first, while anything else gets tokenized as "anything".
If I switch the two rules around, then nothing gets tokenized as a "this" token again, which seems to make sense and also is what happens when I do the same thing with flex.
Is this what is supposed to be expected and I am missing something, or is it a bug? Even if it not really a bug, should it be working like this?
The text was updated successfully, but these errors were encountered:
Suppose you have the following tokens defined:
Any string is tokenized has an "anything" token. At first I thought this was what should be expected, but then I tried doing the following.
Like this, any "this" string gets tokenized as a "this" token because that definition comes first, while anything else gets tokenized as "anything".
If I switch the two rules around, then nothing gets tokenized as a "this" token again, which seems to make sense and also is what happens when I do the same thing with flex.
Is this what is supposed to be expected and I am missing something, or is it a bug? Even if it not really a bug, should it be working like this?
The text was updated successfully, but these errors were encountered: