FAQ

Search Discussions

181 discussions - 562 posts

  • I've been trying to get a global <skip directive- before all rule definitions- to work, and it seems it must not be quoted or have any spaces. It seems to run counter to the Parse::RecDescent ...
    YaryYary
    Mar 31, 2013 at 3:26 pm
    Apr 2, 2013 at 3:04 am
  • Rogaine And Birth Defects Generic Propecia Lasts Herbal Viagra <a href=http://www.netvibes.com/katze2012 Buy Paypal Prescription Tramadol</a Cymbalta Adderall Xr Tramadol And Ulcers Pain Reliever ...
    PerlDiscuss - Perl Newsgroups andPerlDiscuss - Perl Newsgroups and
    Jan 13, 2012 at 7:21 am
    Jan 13, 2012 at 7:21 am
  • 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 ...
    Yuri ShtilYuri Shtil
    Jan 12, 2012 at 5:39 pm
    Jan 29, 2012 at 5:19 am
  • 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 ...
    Yuri ShtilYuri Shtil
    Jan 11, 2012 at 11:53 pm
    Jan 12, 2012 at 12:49 am
  • 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 ...
    Yuri ShtilYuri Shtil
    Jan 10, 2012 at 4:55 pm
    Jan 10, 2012 at 9:51 pm
  • 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 ...
    Nikolay ShaplovNikolay Shaplov
    Nov 26, 2011 at 10:53 am
    Nov 28, 2011 at 11:12 am
  • Way back in 2006, a bug was posted (RT 21765) that basically complained that RecDescent parsers displayed exponential behavior in the length of the input text. I recently posted a patch allowing a ...
    Mark HollomonMark Hollomon
    Nov 22, 2010 at 7:44 pm
    Nov 22, 2010 at 7:44 pm
  • hi folks, I am playing around with PRD, and really like it so far. But I can quite get my head around some details of the error reporting. consider the following grammar: code : fact(s?) eofile { ...
    Robert LemmenRobert Lemmen
    Nov 8, 2010 at 7:02 pm
    Nov 23, 2010 at 12:04 am
  • 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 ...
    Ted ZlatanovTed Zlatanov
    Mar 30, 2010 at 7:00 pm
    Mar 31, 2010 at 4:29 pm
  • Je demande pardon qu'est intervenu... Je comprends cette question. Nous examinerons. <a href=http://www.ci2s.org achat cialis france</a Accepte un mauvais chiffre d'affaires. <a ...
    PerlDiscuss - Perl Newsgroups andPerlDiscuss - Perl Newsgroups and
    Dec 15, 2009 at 4:57 am
    Dec 15, 2009 at 4:57 am
  • 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 ...
    Rahul JainRahul Jain
    Oct 9, 2009 at 12:12 pm
    Oct 9, 2009 at 12:12 pm
  • Hi all, I've got a question to the following perl script ------------------ #!/usr/bin/perl use Parse::RecDescent; # Create and compile the source file $parser = Parse::RecDescent- new(q( startrule : ...
    Coote, RaviCoote, Ravi
    Oct 9, 2009 at 10:21 am
    Oct 13, 2009 at 10:08 am
  • 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, ...
    Mike DiehlMike Diehl
    Sep 3, 2009 at 9:24 pm
    Sep 10, 2009 at 10:49 am
  • Hi all, I'm struggling with an RD grammar problem and am hoping you can help. I've got some data that is embedded inside a file and I need to parse only the embedded data and leave the "noise" ...
    Mike DiehlMike Diehl
    Sep 2, 2009 at 2:32 am
    Sep 6, 2009 at 11:47 pm
  • Hi, Having a lot of pain with the code [last reply on PM @ http://www.perlmonks.org/index.pl?node_id=754947] below: ---code start #!/usr/bin/perl -w use strict; use warnings; #use diagnostics; use ...
    Luzer poorLuzer poor
    Apr 4, 2009 at 3:12 pm
    Apr 4, 2009 at 3:12 pm
  • Hi <a href=http://eaobabsh.free-site-host.com/pojilaya_uchitelnica_seksi.html ïîæèëàÿ ó÷èòåëüíèöà ñåêñè</a <a href=http://dwkslknn.free-site-host.com/20_samyh_seksualnyh_klipov_muz_tv.html 20 ñàìûõ ...
    PerlDiscuss - Perl Newsgroups andPerlDiscuss - Perl Newsgroups and
    Jun 18, 2008 at 9:39 pm
    Jun 18, 2008 at 9:39 pm
  • I want to parse input but when I'm in a particular top-level rule, save the text that was parsed instead of executing the actions, to do so instead later. I've got a solution but I'd like a sanity ...
    Peter ScottPeter Scott
    Feb 6, 2008 at 4:41 pm
    Feb 6, 2008 at 4:41 pm
  • http://gmane.org/info.php?group=gmane.comp.lang.perl.modules.parse-recdescent -- Terrence Brannon - SID W049945 614-213-2475 (office) 614-213-3426 (fax) 818-359-0893 (cell) ...
    Terrence X BrannonTerrence X Brannon
    Nov 15, 2007 at 7:40 pm
    Nov 15, 2007 at 9:21 pm
  • v5.08 was just uploaded: * For version 5.08: - Created section on relevant CPAN modules and added: ** Data::Match ** Parse::RecDescent::Consumer ** Regexp::(List|Assemble) ** Scalar::Listify - ...
    Terrence X BrannonTerrence X Brannon
    Nov 7, 2007 at 9:46 pm
    Nov 7, 2007 at 9:46 pm
  • The following grammar (piece) works fine: geoloc: geoloc_ and(?) geoloc_ | geoloc_ geoloc_: city | state | country | area but per ...
    Terrence X BrannonTerrence X Brannon
    Oct 23, 2007 at 6:31 pm
    Nov 2, 2007 at 7:24 pm
  • 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 ...
    ValentinnicolasValentinnicolas
    Jul 27, 2007 at 3:12 pm
    Jul 27, 2007 at 3:12 pm
  • I will have to start updating the ChangeLog from now on: * Version 5.02 is up - http://search.cpan.org/~tbone/Parse-RecDescent-FAQ-5.02/FAQ.pm * Only change is the regular expression for skipping ...
    Metaperl.comMetaperl.com
    Jun 30, 2007 at 7:26 am
    Jun 30, 2007 at 7:26 am
  • Hello. I have a simple grammar (used in a POE Filter) like: ================ dictionary : '{' key_value(s /\|/) '}' key_value : key '=' value key : /[A-Za-z0-9_ ]+/ value : dictionary | string string ...
    Jan SundbergJan Sundberg
    Nov 30, 2006 at 11:11 am
    Dec 2, 2006 at 12:46 pm
  • 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 ...
    Buehl, Reiner \(HPS EMEA GD-C&I\)Buehl, Reiner \(HPS EMEA GD-C&I\)
    Aug 11, 2006 at 10:59 am
    Aug 21, 2006 at 1:08 pm
  • 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 ...
    David WeberDavid Weber
    Jul 17, 2006 at 7:48 pm
    Jul 17, 2006 at 7:54 pm
  • hello newsgroup, does anybody know of a XPath1.0-grammar written in a format that's ready for use with the Parse::RecDescent-perl-module ? thanks in advance, jean-gert
    Jean-gertJean-gert
    May 18, 2006 at 8:35 pm
    May 18, 2006 at 8:35 pm
  • http://perlmonks.org/?node_id=542243
    MetaperlMetaperl
    Apr 10, 2006 at 6:02 pm
    Apr 10, 2006 at 6:02 pm
  • this mailing list is a ghost town. new perlmonks link added to recdescent faq http://search.cpan.org/dist/Parse-RecDescent-FAQ/FAQ.pm#%22Some_Parse%3A%3ARecDescent_Tutorials%22
    MetaperlMetaperl
    Apr 5, 2006 at 5:10 pm
    Apr 5, 2006 at 5:10 pm
  • 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 ...
    Ron SmithRon Smith
    Jun 30, 2005 at 6:29 pm
    Jun 30, 2005 at 6:29 pm
  • 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 ...
    ScottScott
    Jun 26, 2005 at 6:31 pm
    Jun 30, 2005 at 2:33 pm
  • Greetings, I'd like to be able to force an <error condition, based upon some checking within an action. Forcing an "undef" result is not satisfactory, since the parser just assumes the sub-rule ...
    Danel, AlexanderDanel, Alexander
    Jun 1, 2005 at 10:50 pm
    Jun 3, 2005 at 11:03 am
  • hi, i wonder if anyone can assist? i've been running a program from the command line. no problem, all works well. but when i try to run it on my website i get: Can't locate object method "new" via ...
    Wayne clementsWayne clements
    Jan 10, 2005 at 10:49 am
    Jan 10, 2005 at 3:27 pm
  • 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 ...
    Terrence BrannonTerrence Brannon
    Nov 30, 2004 at 9:39 am
    Nov 30, 2004 at 9:39 am
  • I'm parsing a list of statements where names must be declared first before being used. If I detect in an action that a statement uses a name that hasn't been declared (because I have a hash of the ...
    PerlDiscuss - Perl Newsgroups andPerlDiscuss - Perl Newsgroups and
    Nov 18, 2004 at 10:47 am
    Nov 18, 2004 at 2:37 pm
  • 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 ...
    Prentice, Phillip RPrentice, Phillip R
    Oct 25, 2004 at 11:10 pm
    Oct 27, 2004 at 12:50 pm
  • hi, if i have something like this : package Blah; our %hash; $::RD_AUTOACTION = q{ $Blah::hash{$item[0]} = $item[0]; 1 };# f.e. my $grammar =q{ ........ } sub parse { my $self = shift; my $str = join ...
    RaptorRaptor
    Oct 13, 2004 at 8:38 am
    Oct 13, 2004 at 2:49 pm
  • Hi, in the Parse/RecDescent.pm, what is the offsetlinenum used for? I'm trying to understand, what does this in the P::RD::LineCounter mean: sub STORE { my $parser = $_[0]- {parser}; $parser- ...
    Alexander FarberAlexander Farber
    Sep 19, 2004 at 2:01 pm
    Sep 19, 2004 at 2:01 pm
  • 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 ...
    Alexander FarberAlexander Farber
    Sep 13, 2004 at 8:05 am
    Sep 13, 2004 at 10:29 pm
  • 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 ...
    AndreyAndrey
    Aug 26, 2004 at 8:42 pm
    Aug 26, 2004 at 8:42 pm
  • Just to rephrase my question. From my grammar I can save the parsed out data into global variables, like $::subdirs or $MyModule::subdirs. That works fine. But how can I do it in OO-way, i.e. save ...
    Alexander FarberAlexander Farber
    Aug 3, 2004 at 4:00 pm
    Aug 3, 2004 at 9:35 pm
  • 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 ...
    Alexander FarberAlexander Farber
    Aug 3, 2004 at 12:28 pm
    Aug 3, 2004 at 8:02 pm
  • Hi, I've some additions/corrections to the FAQ. Is the current maintainer on this list? Best Regards Charly -- Karl Gaissmaier KIZ/Infrastructure, University of Ulm, Germany ...
    Karl GaissmaierKarl Gaissmaier
    Jul 21, 2004 at 7:12 am
    Jul 21, 2004 at 7:12 am
  • Hi, I nearly finished Config::Scoped, yet another config file parser but I am currently busy with an annoying locale problem. I'm for example not able to match german umlaute with the rule pattern ...
    Karl GaissmaierKarl Gaissmaier
    Jul 14, 2004 at 8:24 pm
    Jul 16, 2004 at 7:22 am
  • 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 ...
    Andrew A. ChenAndrew A. Chen
    Jul 12, 2004 at 7:58 am
    Jul 15, 2004 at 6:10 pm
  • Hi, I want to capture error messages issued from the parser using the <error directive into a variable instead of echoing them to STDERR. Is there any way to do this? Thanks, Jonas
    Jonas WolfJonas Wolf
    Jul 7, 2004 at 9:43 am
    Jul 16, 2004 at 8:10 am
  • 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 ...
    AndreyAndrey
    Jun 26, 2004 at 9:31 am
    Jun 26, 2004 at 11:42 am
  • Hello, I would like to rebuild a parsed string from the datastructure given by autotree. For example Given the date string "(2001)." using the following rules:- Date: lft_bracket Year YearLabel(?) ...
    David HoldenDavid Holden
    Jun 15, 2004 at 3:18 pm
    Jun 15, 2004 at 3:36 pm
  • [Forgot recdescent on mail list, thought it might be good to archive.] On Friday, Jun 11, 2004 Aamer Akhter said: Um, I'm not sure, actually. I would have thought so but I have never had to code a ...
    Ron D. SmithRon D. Smith
    Jun 11, 2004 at 6:12 pm
    Jun 11, 2004 at 6:12 pm
  • Hello, Is there a way to detect that prd ran into an error? This is not for human consumption, but for the calling perl script to know that something is wrong in the grammar, and take an abort ...
    Aamer AkhterAamer Akhter
    Jun 11, 2004 at 5:20 am
    Jun 11, 2004 at 7:24 pm
  • Hi, I'm almost finished with the script (the stripped down test case is on the bottom of this mail) which parses cpp-preprocessed output. The pecularity of parsing cpp-output is that if the ...
    Alexander FarberAlexander Farber
    Jun 3, 2004 at 1:55 pm
    Jun 3, 2004 at 1:55 pm
Group Navigation
period‹ prev | Latest | first ›

Top users

Ron D. Smith: 36 posts Randal L. Schwartz: 31 posts Orton, Yves: 24 posts Ted Zlatanov: 23 posts Damian: 23 posts Damian Conway: 21 posts Alexander Farber: 18 posts Charly: 16 posts Marcel Grunauer: 15 posts Aamer Akhter: 14 posts Dave McD: 12 posts Orton, Yves: 12 posts Ken Lacrosse: 11 posts Sean O'Rourke: 10 posts Karl Gaissmaier: 10 posts Ted Zlatanov: 10 posts Terrence Brannon: 9 posts Colin Kuskie: 9 posts H. w. neff: 8 posts Terrence X Brannon: 7 posts
show more