Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Extending a Parse::RecDescent grammar for inline comments

by bronto (Priest)
on Aug 20, 2010 at 14:47 UTC ( [id://856286]=note: print w/replies, xml ) Need Help??


in reply to Re: Extending a Parse::RecDescent grammar for inline comments
in thread Extending a Parse::RecDescent grammar for inline comments

Thanks for the suggestion! Is it possible to do it in a way that I can capture the content of the comment?

Ciao!
--bronto


In theory, there is no difference between theory and practice. In practice, there is.
  • Comment on Re^2: Extending a Parse::RecDescent grammar for inline comments

Replies are listed 'Best First'.
Re^3: Extending a Parse::RecDescent grammar for inline comments
by ikegami (Patriarch) on Aug 20, 2010 at 14:58 UTC
    Then it's not a comment at all (i.e. it's meaningful), and you'd match it like anything else (i.e. not use <skip>).

      That's what I tried to do, actually, e.g. adding an InlineComment rule, but I failed. Do you know the correct way to do this?

      Thanks!

      Ciao!
      --bronto


      In theory, there is no difference between theory and practice. In practice, there is.
        You didn't post that code, so I can't help you find what's wrong with it.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (2)
As of 2024-04-26 07:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found