From: John Balestrieri <[EMAIL PROTECTED]>
Date: Thu, 15 Jun 2006 12:03:35 -0400
Thanks, I took at look at this and it looks promising... although I'm
a bit deterred by the need to learn several new toolsets. Ultimately,
running something outside of Rb is going to have a performance hit
(which until I can prove detrimental, is fine with me), but for the
sake of simplicity, I think I'm going try writing a lexer & parser
that can handle EBNF using REALbasic (and produce XML) -- I'll see
how that goes over the next couple of weeks. :\ If anyone is
interested in working on the project with me, feel free to discuss.
If you are interested in working on parsers, the ElfDataParser makes
a perfect framework :) Especially for more complex formats like this.
For simpler field formats, ElfDataFields is better.
The TinyXML.rb project demonstrates how to make an XML parser/
renderer with my ElfData plugin.
Seriously, my ElfDataParser has a few effects on parsing code:
1) Makes structuring your complex code, much easier and more logical,
it produces a natural structure for your code.
2) Actually speeds things up a lot.
3) Reduces the amount of code needed to get things done.
ElfDataParser is generally too complex for most parsing stuff I do,
most of the time I'll use ElfDataFields, but for EBNF, it's perfect.
See my TinyXML.rb, available within the main plugin download package,
on my website, for an example.
--
http://elfdata.com/plugin/
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>