Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

(tye)Re: Flex, converting regexes, and other Interesting Stuff.

by tye (Sage)
on Feb 03, 2001 at 21:15 UTC ( [id://56228]=note: print w/replies, xml ) Need Help??


in reply to Flex, converting regexes, and other Interesting Stuff.

Looking around a bit I'd recommend using Parse::RecDescent and taking 10 minutes to run through the regexes to make them Perl-compliant (change {h} to $h or $token{h}, for example). But none of that is based on a thorough understanding of the problem. ):

        - tye (but my friends call me "Tye")
  • Comment on (tye)Re: Flex, converting regexes, and other Interesting Stuff.

Replies are listed 'Best First'.
Re: (tye)Re: Flex, converting regexes, and other Interesting Stuff.
by Crulx (Monk) on Feb 04, 2001 at 16:24 UTC
    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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://56228]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-19 22:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found