Create a Verilog Parser with Ruby

删除回忆录丶 提交于 2019-12-23 04:11:50

问题


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:


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.




回答2:


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



来源:https://stackoverflow.com/questions/16524749/create-a-verilog-parser-with-ruby

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!