title: Mibble MIB Parser - extracting comments from the mib
body: <p>I am using the <a href="http://www.mibble.org/" rel="nofollow noreferrer">Mibble MIB Parser</a> to extract all simple data types from an MIB file. I've been successful until my attempt to extract comment text. </p>
  
  <p>Take the following module as an example:</p>
  
  <pre><code>invBookList OBJECT-TYPE
      SYNTAX  INTEGER {
                      mobydick(1),     -- call me ishmael 
                      paradiselost(2), -- aComment
                      1984(3),         -- aComment
                      solaris(4)       -- aComment
              }
      MAX-ACCESS      read-only
      STATUS          current
      DESCRIPTION
              "A few Books for an example."
      ::= { invMasterList 43 }
  </code></pre>
  
  <p>According to Mibble's API, the OBJECT-TYPE can be accessed by extracting an SnmpObjectType and then calling the appropriate getter method. Which I have done, and can successfully extract all of the text <strong><em>except the comments in the INTEGER syntax.</em></strong></p>
  
  <p>I have tried calling getSyntax().getComment() on the SnmpObjectType, but always returns null. getSyntax() will extract the INTEGER syntax, e.g.:</p>
  
  <pre><code>mobydick(1),paradiselist(2),1984(3),solaris(4)
  </code></pre>
  
  <p>but unfortunately strips out the comments.</p>
  
  <p>Any one out there have experience with Mibble Parser who knows how to extract the comments?</p>
  
  <p>Many Thanks.</p>