Am 10.08.2018 um 12:14 schrieb Martok:
> What is really missing then is %x for exclusive start conditions, which would
> solve all of that.
Things I never wanted to be able to do: run scanner state machines in my head.
But: turns out adding %x was less work than
finding an alternative solution,
> This is a bit awkward if one has to write the prefix every time...PS - plex
> doesn't define a name for the builtin default state, so even that would not
> actually be possible.
What is really missing then is %x for exclusive start conditions, which would
solve all of that.
Hi all,
this is more of a generic lex question, but since plex doesn't support the flex
extension that could easily fix it, I'm asking here.
Take these lex rules:
--
%start INCOMLINE
%%
"//"start(INCOMLINE);