Search Discussions

181 discussions - 562 posts

  • Dear Damian, dear P::RD Lovers, I love P::RD but I would be happy if the next version has additional modifiers for alternations. See the following problem(s): I've an alternation where some subrules ...
    Karl GaissmaierKarl Gaissmaier
    Apr 15, 2002 at 9:35 am
    Apr 16, 2002 at 2:00 pm
  • hi. i'm using P::RD and the fully interpreted version of my resulting tool is incredibly slow. the half-step of precompiling my grammar into a .pm helps somewhat in the speed department, albiet with ...
    H. w. neffH. w. neff
    Jun 4, 2003 at 5:43 pm
    Jun 11, 2003 at 1:20 am
  • Thanks Marco for pointing out this list to me. I am a big fan of P::RD. I use it for documenting anything that resembles a protocol. It's great for developing the protocol, and then later to use in ...
    Brian MichalkBrian Michalk
    Jul 23, 2002 at 1:54 pm
    Jul 25, 2002 at 2:27 pm
  • I need to split the following: abc, ',def' "\"ab'c,}" xyz , fred IN { 1, "x}y",3 } x, 'z' into comma-separated fields: 1st field: abc 2nd field: ',def' "\"ab'c,}" xyz 3rd field: fred IN { 1, "x}y",3 ...
    Andrew SavigeAndrew Savige
    Dec 3, 2002 at 2:31 am
    Dec 7, 2002 at 9:52 pm
  • Hi, I'm struggling since few days, trying to parse text files, which contain C and C++ comments, some #if/#else/#endif statements and for the most part assignments happening on 1 line. The keyword in ...
    Alexander FarberAlexander Farber
    May 12, 2004 at 9:28 am
    May 28, 2004 at 10:18 pm
  • I'm parsing some lines where the "column formatting" is fixed, i.e. a particular line might be formally described as "a single word followed by some amount of whitespace followed by another word ...
    Aaron J MackeyAaron J Mackey
    Apr 25, 2001 at 1:40 am
    Apr 25, 2001 at 10:51 pm
  • I need to parse a grammar that includes line continuation characters. For example: // COMMAND ARG1-VALUE,ARG2-VALUE, + ARG3-VALUE,ARG4-VALUE, + EVEN-MORE-ARGS // ANOTHERCOMMAND * and a comment * or ...
    Marc MimsMarc Mims
    Oct 17, 2001 at 8:41 pm
    Oct 19, 2001 at 6:26 pm
  • Hello, The CPAN page for Parse::Recscent (rating and tutorial pages) mention vast expected speed improvements in version 2.0. The expected date of arrival was Christmas, and 1.94 was released in Apr ...
    Aamer AkhterAamer Akhter
    May 6, 2004 at 12:23 pm
    May 13, 2004 at 5:34 pm
  • Hi, I have a question about the behavior of a subrule with/without a repetition specifier; more specifically, is the parsing behavior of program: statement equivalent to the counterpart of program: ...
    Nov 8, 2001 at 6:58 pm
    Nov 9, 2001 at 8:36 pm
  • Hello, I recently downloaded the Parse::RecDescent package to parse boolean queries. I have several questions, not necessarily about the package itself, but rather about my grammar. I am currently ...
    Jonas WolfJonas Wolf
    May 20, 2004 at 12:50 pm
    Jun 25, 2004 at 3:23 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
  • I am parsing cfengine class definitions, which have a pretty simple syntax: a.(b|!c) means a and ( b or (not c)) The logical true/false value of a class is defined by whether it exists as a key in ...
    Ted ZlatanovTed Zlatanov
    Mar 14, 2002 at 4:31 pm
    Apr 16, 2002 at 3:32 pm
  • expression : andExpr 'or' expression | andExpr #{ "$item[1] $item[2]"} andExpr : notExpr 'and' andExpr | notExpr notExpr : 'not' brackExpr | brackExpr brackExpr : '(' expression ')' | comparison ...
    Jul 28, 2003 at 5:59 pm
    Jul 30, 2003 at 7:16 am
  • Hi Descendants od Rec. Subrule/production ordering. I just don't get it. given this grammar return new Parse::RecDescent (q{ meaning: proplist { if(length($text)) { print " $text<< remains ...
    Richard JelinekRichard Jelinek
    Jun 13, 2003 at 5:06 pm
    Jun 16, 2003 at 6:18 pm
  • [ I originally posted this in comp.lang.perl.modules. A responder suggested I sent it to this address. ] I'm trying to learn how to use Parse::RecDescent, so I tried the script demo_Cgrammar.pl that ...
    Oct 8, 2003 at 6:37 pm
    Nov 17, 2003 at 6:37 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 ...
    Jun 26, 2005 at 6:31 pm
    Jun 30, 2005 at 2:33 pm
  • Sorry for so many posts, but I'm deep into this cool pkg of yours and I think others in this list may benefit from my questions! :) This question relates to using <commit in a rule and the ...
    Dave McDDave McD
    Feb 6, 2002 at 7:43 pm
    Feb 19, 2002 at 10:20 pm
  • Hi All, In simple terms, if I am using autotree to build an OO parse tree and I have a rule of the form func: 'concat' '(' rvalue ',' rvalue ')' how do I access the second rvalue from the blessed ...
    Philip CoombesPhilip Coombes
    Mar 11, 2002 at 9:57 am
    Mar 12, 2002 at 1:20 pm
  • Damian, It seems that the namespace for pre-compiled parsers (ie. compiled into a perl module) have hard-coded namespaces (IE. namespace00001). I was trying to clone one of these parsers by calling ...
    Dave McDDave McD
    Mar 5, 2002 at 4:57 pm
    Mar 13, 2002 at 8:18 am
  • Well, at the risk of my memory getting me in trouble... LR = Left-to-right Rightmost Derivation (0/N) Refers to the number of tokens of lookahead required. Used in bottom up parsers (like YACC) Any ...
    Orton, YvesOrton, Yves
    Mar 18, 2002 at 11:23 am
    Mar 21, 2002 at 9:02 am
  • Hi P::RD lovers, I got a small problem regarding skipping over comments and misleading generated error messages, see the example (sure in my real world problem this is hidden in much deeper rulesets, ...
    Karl GaissmaierKarl Gaissmaier
    Apr 17, 2002 at 9:29 am
    Jun 12, 2002 at 11:25 pm
  • Hi, I need to parse utf-8 data and want to use P::RD module. Is there option to switch generated parser code to character data representation instead of default byte representation? I need the same ...
    Roman VasicekRoman Vasicek
    May 17, 2002 at 12:39 pm
    Nov 26, 2002 at 12:18 am
  • Hi all, I've been working on this on and off for a fortnight now, I've read the list archives, read the tutorial, read the manpage, read the FAQ, googled, read through examples, googled . . . and I'm ...
    John TobinJohn Tobin
    Jun 24, 2003 at 8:32 pm
    Jun 26, 2003 at 10:45 am
  • I have created a grammar for processing basic rules for a pbem I am writing. I have also written an object for then processing the resulting parse tree. What is happening is this: If I simply parse ...
    Aaron DaltonAaron Dalton
    Dec 17, 2003 at 12:45 pm
    Dec 18, 2003 at 8:06 am
  • Hello, Is there a way of supressing the __VALUE__ hash that is added via a single terminal return in <autotree ? Right now I have to play silly little games on the return values. I realize that I ...
    Aamer AkhterAamer Akhter
    May 14, 2004 at 3:37 am
    May 15, 2004 at 1:39 pm
  • 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
  • I'm wondering why my grammar (see hereafter) accepts the following input: medium='d' or medium='f' ant topic='t' while it should raise an error on 'ant'. With tracing enabled you can see that it ...
    Peter van der KampPeter van der Kamp
    Jun 23, 2003 at 2:50 pm
    Jun 24, 2003 at 2:38 pm
  • Marco BaringerMarco Baringer
    Feb 10, 2002 at 2:20 pm
    Feb 11, 2002 at 8:28 am
  • Thank you Damian for autotrees! I'm working on the basic OO structure for man2docbook and autotree is the way to go. Is there an example of an OO processor that handles the parse tree that autotree ...
    Jeffrey FranksJeffrey Franks
    Aug 19, 2001 at 5:21 pm
    Aug 25, 2001 at 7:50 am
  • Hello RecDescent Masters. I´m not able to reach Perlmonks.org for nearly a week now, so I try to find here an answer for a problem that I´m not able to solve with RecDescent. I have a data structure ...
    Your FriendYour Friend
    Oct 30, 2001 at 3:27 pm
    Nov 1, 2001 at 10:04 pm
  • RecDescent is nice. I come from antlr land and do not miss the compile step... The following grammar parses fine with no intermixed newlines. It fails with newlines. E.g.: c t a b int B # parses c t ...
    Cortland D. StarrettCortland D. Starrett
    Nov 25, 2001 at 6:53 am
    Nov 28, 2001 at 12:25 am
  • I would like to implement a generic callback interface on the parser object where I can pass in a function pointer and a hash of the rules where the function should be called within an action ...
    Dave McDDave McD
    Feb 1, 2002 at 5:57 pm
    May 17, 2002 at 12:23 pm
  • I am using P::RD for parsing a constraint language in a big ERP system. We are trying to parse some of the constraints into XML. There are some equations in the constraints. Below is a simple ...
    Collin PetersCollin Peters
    Nov 3, 2003 at 8:28 pm
    Nov 15, 2003 at 7:34 pm
  • As the current maintainer of Text::Balanced, I'm proposing for public review the following changes (or clarifications) to the external interface of Text::Balanced to be effective in version 1.96: (1) ...
    David ManuraDavid Manura
    Feb 13, 2004 at 6:45 am
    Feb 17, 2004 at 12:01 am
  • Has anyone maintained a repository of PRD examples? I'd like to learn/improve by imitation, if anyone has a stash (cache?) of PRD code beyond what comes with the module. Martin -- Martin Streicher, ...
    Martin Streicher, Editor in ChiefMartin Streicher, Editor in Chief
    Apr 21, 2004 at 4:08 pm
    Apr 30, 2004 at 4:29 pm
  • 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
  • Why doesn't <skip: '(?:\s|\\\\|\n)+' remove backslashes? I get a backslash consumed as "value" in the script below: $top = { 'AIF' = [ 'Videorecorder.aif', '..\\aif', 'Videorecorderaif.rss', '\\', # ...
    Alexander FarberAlexander Farber
    Jun 1, 2004 at 7:37 am
    Jun 3, 2004 at 9:11 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'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'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 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
  • 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 recently had a problem with Parse::RecDescent, and I don't know if it is some sort of bug, or if I'm doing something completly stupid (which might be the case, as I do not have that much ...
    Thomas KlausnerThomas Klausner
    Apr 17, 2003 at 9:37 am
    Apr 22, 2003 at 8:36 am
  • Hello All, Today I posted a question regarding Parse::RecDescent on Perlmonks at http://www.perlmonks.org/index.pl?node_id=130656 and was directed here for assistance, so here is a reprint of that ...
    Yves OrtonYves Orton
    Dec 10, 2001 at 3:05 pm
    Dec 16, 2001 at 11:01 pm
  • Hello everybody! Parse::RecDescent is much help for my task, but what gets me into trouble is that I can't see a way to pass any parameters to a parser except to make them global variables. Thus I ...
    Vsevolod BuzinovVsevolod Buzinov
    Apr 16, 2002 at 1:37 pm
    Apr 17, 2002 at 12:23 pm
  • Damian, is there a plan for P::FD at the moment? After Apocalypse 5, I'm very curious how P::FD will use the new Perl 6 regex engine. I also would love to find out what features are planned, and ...
    Ted ZlatanovTed Zlatanov
    Jun 13, 2002 at 12:21 am
    Jun 13, 2002 at 7:39 pm
  • Hello, I am trying to learn RecDescent. I found an example in the archive of this mailing list that was close to what I want to do. The subject line of the thread was: Line contination characters ...
    Jun 25, 2002 at 11:41 pm
    Jun 26, 2002 at 5:23 pm
  • Hi folks, Ive been toying recently with PRD, Im new at it, and would like a reality check Im trying to use it to convert one BNF flavor into a form that can be fed into PRD, with the resulting parser ...
    Jim CromieJim Cromie
    Jan 14, 2004 at 8:27 am
    Jan 14, 2004 at 8:46 pm
  • Is there a way (or will there ever be a way) to match error line numbers with the actual input data? I see the FAQ question regarding the grammar itself and was wondering if the same answer applies ...
    Aaron DaltonAaron Dalton
    Jan 2, 2004 at 5:20 pm
    Jan 7, 2004 at 10:07 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
Group Navigation
period‹ prev | Latest | first ›
Group Overview
grouprecdescent @

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