title: Is there a good working tutorial on re2c + lemon?
body: <p>I've tried a couple. And there is only a couple of tutorials in Google for re2c+lemon.<br>
  Currently for all examples I get similar bunch of errors like:</p>
  
  <pre><code>In file included from main.cpp:2:0:
  parser.y:44:5: error: ‘yygotominor’ was not declared in this scope
       A.int_value = B.int_value * C.int_value;
       ^
  In file included from main.cpp:2:0:
  parser.c:770:16: error: ‘YY_MAX_SHIFTREDUCE’ was not declared in this scope
     if( yyact &lt;= YY_MAX_SHIFTREDUCE ){
                  ^
  parser.c:771:15: error: ‘YY_MAX_SHIFT’ was not declared in this scope
       if( yyact&gt;YY_MAX_SHIFT ) yyact += YY_MIN_REDUCE - YY_MIN_SHIFTREDUCE;
                 ^
  </code></pre>
  
  <p>Where is it declared?</p>
  
  <p>PS: don't post 10y old articles (even without code or if the code can't be compiled now). If you can - write an example here. If not - don't post links from Google.</p>