Skip Menu |

This queue is for tickets about the Parse-ABNF CPAN distribution.

Report information
The Basics
Id: 42587
Status: open
Priority: 0/
Queue: Parse-ABNF

People
Owner: BJOERN [...] cpan.org
Requestors: mschwern [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.04
Fixed in: (no value)



Subject: Ok, now what?
I grabbed this module with the intent of taking the TAP ABNF grammar and tokenizing some TAP documents with it. It seems all I get is a Perl representation of the grammar and no tokenizer. Am I missing something?
Subject: Re: [rt.cpan.org #42587] Ok, now what?
Date: Wed, 21 Jan 2009 03:21:24 +0100
To: bug-Parse-ABNF [...] rt.cpan.org
From: Bjoern Hoehrmann <derhoermi [...] gmx.net>
* Michael G Schwern via RT wrote: Show quoted text
>I grabbed this module with the intent of taking the TAP ABNF grammar and >tokenizing some TAP documents with it. It seems all I get is a Perl >representation of the grammar and no tokenizer. Am I missing something?
No, that is exactly the purpose. You would have to write a serializer for the data structure to turn the grammar into something suitable for use with a parser generator, like a Parse::RecDescent grammar, or a Parse::Yapp grammar, or Perl6 rules, or whatever. I've uploaded v0.05 that makes that a little bit clearer in the DESCRIPTION of the module. I've also added eg/abnf2xlx.pl which was missing in earlier versions, it gives a simple example how to turn the data you get from the module into an alternate (XML based) format. -- Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de 25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/
That example program helps a lot, thanks. If you happen to have an ABNF-to-RecDescent program that would be really handy!