Re: parser with perl

2009-03-26 Thread dev_null
Thanks for the references. I will check them. > On Thu, Mar 26, 2009 at 09:51, wrote: > > How to achieve a parser with Perl? > > I mean I want to put some logic (if...else, loop etc) in config file and > > let perl to parse them, like TCL for iRules. > snip > > This being Per

Re: parser with perl

2009-03-26 Thread Rodrick Brown
On Thu, Mar 26, 2009 at 9:51 AM, wrote: > How to  achieve a parser with Perl? > I mean I want to put some logic (if...else, loop etc) in config file and let > perl to parse them, like TCL for iRules. > > thanks. > I've used the following in the past and it works very well. http://search.cpan.or

Re: parser using perl

2008-03-31 Thread Chas. Owens
On Mon, Mar 31, 2008 at 2:43 PM, Rob Dixon <[EMAIL PROTECTED]> wrote: > Chas. Owens wrote: > > > > In general, it doesn't matter if you want to work with a small piece > > of a language or the whole language, you still need to implement a > > parser for the whole language. You can get an eighty

Re: parser using perl

2008-03-31 Thread Rob Dixon
Chas. Owens wrote: > > In general, it doesn't matter if you want to work with a small piece > of a language or the whole language, you still need to implement a > parser for the whole language. You can get an eighty or ninety > percent solution without a full parser, but there will always be > pro

Re: parser using perl

2008-03-31 Thread Randal L. Schwartz
> ""Chas" == "Chas Owens" <[EMAIL PROTECTED]> writes: "Chas> Take a look at Parse::RecDescent*. Also, look at Parse::Marpa if you have Perl 5.10 (requires 5.10), which not only parses text like P::RD, but can also tell you if there are *multiple* *ambiguous* parsings, rather efficiently. Ver

Re: parser using perl

2008-03-31 Thread Chas. Owens
On Mon, Mar 31, 2008 at 11:05 AM, Sharan Basappa <[EMAIL PROTECTED]> wrote: > true, I have the grammar in the form of BNF. But I am not interested > in converting > the BNF to parser rules, when I know that these productions are not > useful to me. > I am planning to write 8-10 rules and rules

Re: parser using perl

2008-03-31 Thread Sharan Basappa
true, I have the grammar in the form of BNF. But I am not interested in converting the BNF to parser rules, when I know that these productions are not useful to me. I am planning to write 8-10 rules and rules for pertaining tokens only. Of course, I might have to write additional rules to catch com

Re: parser using perl

2008-03-31 Thread Chas. Owens
On Mon, Mar 31, 2008 at 10:51 AM, Sharan Basappa <[EMAIL PROTECTED]> wrote: > I am not a compler expert, but if I all I am interested in few > productions out of > many productions, I can setup by scanner to generate tokens pertaining to > interesting productions and ignore the rest. As I said,

Re: parser using perl

2008-03-31 Thread Sharan Basappa
I am not a compler expert, but if I all I am interested in few productions out of many productions, I can setup by scanner to generate tokens pertaining to interesting productions and ignore the rest. As I said, I am not a compiler expert. So, I could be understating the problem .. I will have a l

Re: parser using perl

2008-03-31 Thread Chas. Owens
On Mon, Mar 31, 2008 at 10:36 AM, Sharan Basappa <[EMAIL PROTECTED]> wrote: > Hi, > > I am trying to extract information from a file that follows the syntax > of a high level language (something like C++) > The script just needs to understand a very minuscule portion of this > language to do th

Re: Parser

2004-10-11 Thread Wiggins d Anconia
> Hi! > Has anyone tips to create a xml parser!? > i do not know how to start > Well you can always start at CPAN. Do you really want to write a parser, or just need XML parsed? I would suggest not reinventing this wheel. If you just need a parser then check out: http://search.cpan.org/modlist

Re: parser of SMTP files to obtain Sender, Subject

2002-05-02 Thread Peter Scott
At 10:50 AM 5/2/02 -0500, Freddy Chávez G. wrote: >Hi. My mail server Exchange 5.5 saves the mails that has sent using SMTP >into a directory. I'm trying to parse those files but some have an EOF >character in the first line, some have another issue and I'm having too many >problems for extracting

RE: :Parser XML::SimpleObject -> First XML parsing pls help

2001-06-13 Thread kotto
You're a beginner? -Original Message- From: Stout, Joel R [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 13, 2001 3:25 PM To: [EMAIL PROTECTED] Subject: XML::Parser XML::SimpleObject -> First XML parsing pls help I took the example from http://www.xml.com/pub/a/2001/04/18/perlxmlqst