title: Ignore whitespace with PEG.js
body: <p>I want to ignore <em>whitespaces</em> and <em>new lines</em> with my grammar so they are missing in the <a href="http://pegjs.majda.cz/online">PEG.js</a> output. Also, a literal within brackets should be returned in a new array.</p>
  
  <p><strong>Grammar</strong></p>
  
  <pre class="lang-js prettyprint-override"><code>start
    = 'a'? sep+ ('cat'/'dog') sep* '(' sep* stmt_list sep* ')'
  
  stmt_list
    = exp: [a-zA-Z]+ { return new Array(exp.join('')) }
  
  sep
    = [' '\t\r\n]
  </code></pre>
  
  <p><strong>Test case</strong></p>
  
  <pre class="lang-none prettyprint-override"><code>a dog( Harry )
  </code></pre>
  
  <p><strong>Output</strong></p>
  
  <pre class="lang-js prettyprint-override"><code>[
     "a",
     [
        " "
     ],
     "dog",
     [],
     "(",
     [
        " "
     ],
     [
         "Harry"
     ],
     [
        " "
     ],
     ")"
  ]
  </code></pre>
  
  <p><strong>Output I want</strong></p>
  
  <pre class="lang-js prettyprint-override"><code>[
     "a",
     "dog",
     [
        "Harry"
     ]
  ]
  </code></pre>