title: Embed Visitor/Listener Options in an ANTLR4 Grammar
body: <p>I want to enable/disable visitor/listener generation from the g4 file.</p>
  
  <p>Is there a way to embed Visitor/Listener options in an ANTLR4 grammar? I'm looking for something like this:</p>
  
  <pre><code>grammar foo;
  
  options {
      visitor=false;
      listener=false;
  }
  
  ...
  </code></pre>