Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Using ruby for generic language parsing (or any language-specificparsing libraries out there?)

Reply
Thread Tools

Using ruby for generic language parsing (or any language-specificparsing libraries out there?)

 
 
Andrew S. Townley
Guest
Posts: n/a
 
      04-13-2009
Hi,

I've been looking at the various parser generator options for Ruby on
and off for a while now, and I was wondering if anyone had any
experience/recommendations on existing solutions.

What I'd ideally like to have is a set of pre-defined parser libraries
that defined an event-driven interface for handling productions. This
would theoretically allow you to simply plug in your own business logic
into a robust, maintained and (hopefully) well-tested parser without
actually having to go though the tedium and pain of defining a bunch of
parsers yourself.

I'd like to be able to have something like this for SQL-92, Java and C,
with potentially other languages in the future. I'm guessing stuff like
this has been developed for many of the IDEs out there that support
these languages, but I've never seen something as complete as what I'm
talking about via searching through google.

In the past, I've written parsers with Lex/Yacc, and I did do some work
a couple of years ago with rex & racc, but for anything as complex as
the above, I think rex/racc would be a) too time consuming/error prone
(I found it incredibly difficult to debug and diagnose problems and
generate reasonable error messages) and b) surely re-inventing the wheel
for the nth time, where n > 10,000,000,000.

I looked a bit at rparsec and treetop, but before I go down this path, I
was hoping to tap some of the community's collective wisdom for pointers
to similar initiatives.

Any information, suggestions or war stories would be most appreciated.

Cheers,

ast
--
Andrew S. Townley <>
http://atownley.org


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What libraries should I use for MIME parsing, XML parsing, and MySQL ? John Levine Ruby 0 02-02-2012 11:15 PM
Generic AST in XML for any language Kalahan C++ 5 03-20-2010 02:01 AM
Using mandatory libraries (custom class loading vs. expanding libraries) Karsten Wutzke Java 21 06-29-2007 09:25 PM
501 PIX "deny any any" "allow any any" Any Anybody? Networking Student Cisco 4 11-16-2006 10:40 PM
RSS/Atom parsing libraries for Ruby? Jonas Galvez Ruby 3 07-12-2005 01:55 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57