The documentation is a little unclear I use perl -MParse::RecDescent - grammar NewMakepp::Grammar to create a parser module. What do I do in order to generate stubs for undefined rules? How do I pass ...

Hi, I need to parse make variable reference like syntax: $($(foo)) $(foo) should be detected first, replaced (let's say with bar) and resultant string $(bar) should be parsed the same way. There can ...

I use OO perl and created a class that uses recdecent. I want to access method variables from the grammar actions. Is there an elegant way to pass a parameter to the Parse::RecDescent constructor and ...

Hi! I have a newbie question: I'd like to parse a file line by line... Line can be terminated by \n or by EOF I do something like this: =========================== $Parse::RecDescent::skip = ''; my ...

I've got a working grammar that will parse, say A a1 a2 a3 B b1 b2 into structures. A and B don't overlap so I know that any sequence beginning with A must have a1, a2, and a3. Now I'm interested in ...

Hi All, I am working on a C code parser, in which one of my requirements is to parse the C source and header files and calculate the Lines of Code. Though there are tools to do so, all of them have a ...

Hi all, I've got another problem and I'm hoping someone can point me in the right direction. My grammar is for a "language" that includes an "if" type command. The "if" command takes an expression, ...

Hi Guys, I would like to know if this perl sample has been corrected or not? Thanks a lot , I really need it to parse C functions and to provide an XML file with the name of functions, the parameters ...

Hi all, on HP-UX, my Parse::RecDescent parser dies with an Out of Memory error. If I run the same skript with the same input on a Windows XP system (with less Memory!) it works fine. I did check the ...

Hey all, I'm a recdescent newbie, so please cut me some slack ;) I've got a ~1.5Mb file that I'm parsing. The grammar is pretty well established, in such that it's from a formal paper, and has EBNF ...

I would still recomend method 2. What I was trying to show in the example fix is not a bullet proof fix that solves all of your problems but to illustrate how "lookahead" can help resolve some of the ...

Please forgive me if this an FAQ. I am new to the world of RecDescent and grammars in general. I'm assisting on a project for which the original grammar was developed by someone else; making my own ...

I wanted to add an entry in the FAQ for recdescent based on this question: http://www.perlmonks.org/?node_id=407865 but I am not so sure about Randal's answer... it appears irrelevant to the question ...

Hello, I was wondering if anyone could help me begin to write some grammer for a conversion project. I basically have a generic language where variables, arrays, and hash's are defined. I want these ...

Hi, I have a script which compiles a grammar once and then parses quite many files using it. The parser is placed into a separate module and thus I have to use quite long names to refer to variables ...

Hello All, Is there any worked out (external) notation for presentation of the grammar of programming languages (with corresponding tools)? I would like to have tools such as: 1) Transformation tool ...

Hi, I'm trying convert few parsing modules from the functional style (with exported functions) to OO-style with the data stored in a blessed hash. I'm doing it, because I hope that the modules will ...

Hello- I'm just starting out with PRD here, but I think I'm on the right track. I'm attempting to write a parser that evaluates a language similar to SQL's WHERE syntax. I'd also like to evaluate the ...

Hello. I have a problem with precompiling parser and no idea how to resolve it. I wrote a little parser for FORTRAN language (you may see http://sirius.ihep.su/~siver/f2mma.pdf for details) and try ...