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
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
> ""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
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
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
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,
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
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