rubygrammarsnmpmib

Using grammar from a .grammar file with ruby


Looking for a way to parse SNMP Mib Files in Ruby, I found a project written in Java (www.mibble.org) that use two files of Grammar (extension .grammar) to parser Mib files. Is there any way to use grammar files with ruby?


Solution

  • http://grammatica.percederberg.net

    If you dig further you will see the grammar file is for Grammatica, which only supports Java and C#.

    Either you extend Grammatica to support Ruby or you will have to switch to other approaches. Note that Mibble is released GPL and a commercial license. If you are going to reuse the grammar file, make sure you meet the licensing requirements.