J
Jay G. Scott
i've asked this before, and i went off an read up on the answers,
ie, ParseLex.
well, this doesn't help. i don't see anything out there that's remotely
like lex/flex. the perl tools seem incapable of the sort of flexibility
i want. in flex, i can do things like this:
aab[cd]+ { C code }
acr[a-z][0-9][a-r]* { some other code }
[a-z0-9]+ {yet another chunk}
whereas i don't see anything akin to this in ParseLex.
question:
am i right in thinking that the perl lexical analyzer generators don't
actually generate lexical analyzers to order, they just use their idea of
a lexical analyzer and give you their routine results? i looked at
one of ParseLex's examples and it MAY be that i can get it to return a string
to me, but once i have the string i'd have to sort things to decide which
of the three rules above the string matches. that's exactly the thing i
want to avoid. so if that's what they do, then i don't want to use them.
j.
ie, ParseLex.
well, this doesn't help. i don't see anything out there that's remotely
like lex/flex. the perl tools seem incapable of the sort of flexibility
i want. in flex, i can do things like this:
aab[cd]+ { C code }
acr[a-z][0-9][a-r]* { some other code }
[a-z0-9]+ {yet another chunk}
whereas i don't see anything akin to this in ParseLex.
question:
am i right in thinking that the perl lexical analyzer generators don't
actually generate lexical analyzers to order, they just use their idea of
a lexical analyzer and give you their routine results? i looked at
one of ParseLex's examples and it MAY be that i can get it to return a string
to me, but once i have the string i'd have to sort things to decide which
of the three rules above the string matches. that's exactly the thing i
want to avoid. so if that's what they do, then i don't want to use them.
j.