--- Phil Tomson <ptkwt / aracnet.com> wrote:

> In article
> <20050801125951.14936.qmail / web41103.mail.yahoo.com>,
> Eric Mahurin  <eric_mahurin / yahoo.com> wrote:
> >I'd be interested.  I'm in the IC design industry.  I wrote
> a
> >verilog-2005 parser using antlr/java about a year ago (never
> >released it).  Now I'm into ruby and writing a general
> parser
> >that has a superset of the features in antlr.  Here is my
> first
> >cut at it:
> >
>
>http://www.ruby-talk.org/cgi-bin/scat.rb/ruby/ruby-talk/138450
> >
> >Now that my cursor package (using this for both my character
> >and token streams) is to a good point, I'm back to working
> on
> >my grammar package (renamed because of another rubyforge
> >"syntax" project).
> >
> 
> I see a file that is downloadable (syntax.rb) on the RAA
> link,  but 
> there are no downloadable files at the grammar page on
> RubyForge.  Will 
> you be releasing an update soon?

within the next few weeks.

> >I wouldn't mind making a verilog parser the first target of
> >this.
> 
> 
> How close is it to EBNF?  I'm interested in doing a VHDL
> parser - how much 
> tweaking would I need to do to the VHDL EBNF to get something
> working?

The grammar is specified in pure ruby using operators to
combine grammars ("|": alternation, "+": sequence, etc).  It
looks kind of like BNF, but you are really just building ruby
objects using methods.


> After we've got Verilog and VHDL parsers working would anyone
> be 
> interested in a RubySynthesis package?  Maybe verification? 
> Or perhaps 
> more realistically just translation between VHDL <-> Verilog?
>  An 
> automatic testbench generator would be nice (and certainly
> doable) as 
> well.  


dream on :)

> >
> >--- Kev Jackson <kevin.jackson / it.fts-vn.com> wrote:
> >
> >> Hi all,
> >>=20
> >> We're about to start a project and we need to be able to
> >> parse RTL=20
> >> files.  We want to use ruby, but to save effort we're
> looking
> >> for a=20
> >> pre-built open-source parser for RTL grammar.  If not
> we'll
> >> have to=20
> >> write our own (no big problem - it'd be an interesting
> >> learning=20
> >> experience at least!).
> >>=20
> >> So first, are there any tools we should be looking at to
> help
> >> us out? =20
> >> (we're looking at coco-ruby and parsetree at the moment)
> >> Second, if there are no tools currently available and we
> can
> >> build a=20
> >> Ruby RTL parser would anyone be interested in us releasing
> >> it? (I only=20
> >> work here, I'm not sure if the company would allow us to,
> but
> >> if it's=20
> >> possible would people be interested?)
> >>=20
> >> Kev
> >>=20
> >>=20
> >
> >
> >
> >	=09
> >____________________________________________________
> >Start your day with Yahoo! - make it your home page=20
> >http://www.yahoo.com/r/hs=20
> >=20
> >
> >
> 
> 
> 
> 



		
____________________________________________________
Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs