There's more than one way to do things | |
PerlMonks |
Re: (tye)Re: Flex, converting regexes, and other Interesting Stuff.by Crulx (Monk) |
on Feb 04, 2001 at 16:24 UTC ( [id://56307]=note: print w/replies, xml ) | Need Help?? |
Good Idea. It was the first thing I thought of too. Unfortunately, it does not work...
The documentation clearly states that Parse::RecDescent does not opperate like yacc. The first successful match terminates the search. Yacc uses the "prefer the longest match" to choose which rule to fire if there are multiple rules that match the incomming string. So the way the rules are set up in the flex code that he got will cause lots of problems. See my post in the main thread as to why.
--- Crulx crulx@iaxs.net
In Section
Seekers of Perl Wisdom
|
|