1

I would like to create a Verilog parser written in Ruby for a university project

I know there are parser generators like Bison and Yacc.

Could anyone give me some advice on how to get started?

1
  • 1
    You haven't showed any attempt to provide a solution, which is expected on Stack Overflow. What searches have you done, or what code have you written? Commented May 13, 2013 at 16:02

2 Answers 2

2

I already have a very basic verilog parser (gem) written in ruby called verilog, if you could consider contributing to that instead, or it might give an idea of how to start.

I also have a gem called rubyit, which is command line utility to parse files with erb and generate the standard version of the file. Which can be used for extendable verilog templates, similar to generate statements but gives a flexible port list and ability to check the generated code.

Sign up to request clarification or add additional context in comments.

Comments

1

There do exist parser generators for Ruby too, e.g. racc. Start installing the racc gem and read the included documentation and examples.

1 Comment

Rubygems seems to have the latest version (1.4.9) of racc vs the 1.4.6 version on rubyforge.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.