/* The following code was generated by JFlex 1.4.1 on 5/19/09 3:42 PM */

//based on http://jflex.de/manual.html

package test.jflex.metalexer;
import static test.jflex.metalexer.LayoutParser.Terminals.*;

import beaver.Symbol;
import beaver.Scanner;

/**
 * This class is a scanner generated by 
 * <a href="http://www.jflex.de/">JFlex</a> 1.4.1
 * on 5/19/09 3:42 PM from the specification file
 * <tt>test/backend-jflex/out/metalexer/layout/layout.flex</tt>
 */
public final class LayoutScanner extends Scanner {

  /** This character denotes the end of file */
  public static final int YYEOF = -1;

  /** initial size of the lookahead buffer */
  private static final int ZZ_BUFFERSIZE = 16384;

  /** lexical states */
  public static final int layout_rule_section_YYINITIAL_STATE = 9;
  public static final int base_YYINITIAL_STATE = 2;
  public static final int string_directive_YYINITIAL_STATE = 14;
  public static final int local_header_YYINITIAL_STATE = 10;
  public static final int decl_region_YYINITIAL_STATE = 4;
  public static final int EXTRA_RETURN = 1;
  public static final int inherited_header_YYINITIAL_STATE = 6;
  public static final int YYINITIAL = 0;
  public static final int layout_option_section_YYINITIAL_STATE = 8;
  public static final int string_YYINITIAL_STATE = 13;
  public static final int bracket_comment_YYINITIAL_STATE = 3;
  public static final int init_region_YYINITIAL_STATE = 7;
  public static final int metapattern_directive_YYINITIAL_STATE = 11;
  public static final int identifier_directive_YYINITIAL_STATE = 5;
  public static final int pair_directive_YYINITIAL_STATE = 12;

  /** 
   * Translates characters to character classes
   */
  private static final String ZZ_CMAP_PACKED = 
    "\11\0\1\7\1\6\1\0\1\7\1\5\22\0\1\7\1\31\1\20"+
    "\1\0\1\31\1\3\2\0\1\62\1\63\1\2\1\67\1\32\1\31"+
    "\1\13\1\1\4\27\4\30\2\11\2\0\1\51\1\0\1\55\1\70"+
    "\1\0\1\52\1\56\2\21\1\61\1\60\7\10\1\53\1\57\11\10"+
    "\1\54\1\10\1\64\1\22\1\65\1\66\1\12\1\0\1\37\1\47"+
    "\1\43\1\45\1\34\1\24\1\50\1\33\1\14\2\10\1\35\1\44"+
    "\1\15\1\41\1\36\1\10\1\23\1\42\1\16\1\26\1\10\1\46"+
    "\1\25\1\40\1\10\1\17\1\71\1\4\1\31\uff81\0";

  /** 
   * Translates characters to character classes
   */
  private static final char [] ZZ_CMAP = zzUnpackCMap(ZZ_CMAP_PACKED);

  /** 
   * Translates DFA states to action switch labels.
   */
  private static final int [] ZZ_ACTION = zzUnpackAction();

  private static final String ZZ_ACTION_PACKED_0 =
    "\17\0\1\1\1\2\3\3\2\4\2\5\2\6\1\7"+
    "\1\10\1\11\2\12\2\13\2\14\1\15\2\16\1\17"+
    "\3\20\2\21\1\22\2\23\2\24\1\25\1\24\2\26"+
    "\1\27\1\30\1\24\1\31\1\32\1\33\1\34\1\35"+
    "\1\36\1\37\1\40\3\41\2\42\1\43\1\44\1\45"+
    "\1\46\2\47\1\50\1\51\2\52\2\53\1\54\1\55"+
    "\1\56\1\57\1\60\1\0\1\61\1\62\1\63\1\0"+
    "\1\64\2\0\1\65\1\66\1\67\1\0\1\70\6\0"+
    "\1\71\1\72\12\0\1\73\1\74\1\75\4\0\1\76"+
    "\1\77\1\0\1\100\1\101\2\100\2\101\1\102\1\103"+
    "\1\104\1\105\25\0\1\106\4\0\1\107\2\0\1\101"+
    "\21\0\1\110\11\0\1\101\14\0\1\111\3\0\1\112"+
    "\1\110\1\0\1\113\3\0\1\114\1\115\1\116\1\117"+
    "\1\120\1\101\1\0\1\121\1\0\1\122\4\0\1\123"+
    "\4\0\1\111\4\0\1\112\1\0\1\113\1\0\1\124"+
    "\1\0\1\125\1\126\1\0\1\127\1\0\1\130\1\131"+
    "\1\123\4\0\1\132\3\0\1\124\1\0\1\133\1\125"+
    "\2\0\1\127\2\0\1\130\1\0\1\131\2\0\1\134"+
    "\1\0\1\132\1\0\1\135\1\136\1\0\1\133\2\0"+
    "\1\137\1\0\1\134\1\0\1\140\1\135\1\0\1\136"+
    "\1\0\1\141\1\142\1\137\1\0\1\143\1\140\1\0"+
    "\1\141\1\0\1\142\1\0\1\143\1\0";

  private static int [] zzUnpackAction() {
    int [] result = new int[310];
    int offset = 0;
    offset = zzUnpackAction(ZZ_ACTION_PACKED_0, offset, result);
    return result;
  }

  private static int zzUnpackAction(String packed, int offset, int [] result) {
    int i = 0;       /* index in packed string  */
    int j = offset;  /* index in unpacked array */
    int l = packed.length();
    while (i < l) {
      int count = packed.charAt(i++);
      int value = packed.charAt(i++);
      do result[j++] = value; while (--count > 0);
    }
    return j;
  }


  /** 
   * Translates a state to a row index in the transition table
   */
  private static final int [] ZZ_ROWMAP = zzUnpackRowMap();

  private static final String ZZ_ROWMAP_PACKED_0 =
    "\0\0\0\72\0\164\0\256\0\350\0\u0122\0\u015c\0\u0196"+
    "\0\u01d0\0\u020a\0\u0244\0\u027e\0\u02b8\0\u02f2\0\u032c\0\0"+
    "\0\0\0\0\0\u0366\0\u03a0\0\0\0\u03da\0\0\0\u0414"+
    "\0\u044e\0\0\0\0\0\u0488\0\0\0\0\0\u04c2\0\0"+
    "\0\u04fc\0\0\0\u0536\0\u0570\0\u05aa\0\0\0\0\0\0"+
    "\0\u05e4\0\u061e\0\u0658\0\0\0\0\0\0\0\u0692\0\0"+
    "\0\u06cc\0\0\0\u0706\0\u0740\0\0\0\0\0\u077a\0\u07b4"+
    "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"+
    "\0\0\0\u07ee\0\u0828\0\u0862\0\0\0\0\0\u089c\0\0"+
    "\0\0\0\u08d6\0\0\0\0\0\u0910\0\0\0\u094a\0\u0984"+
    "\0\0\0\0\0\0\0\0\0\0\0\0\0\u09be\0\0"+
    "\0\u09f8\0\0\0\u0a32\0\0\0\u0a6c\0\u0aa6\0\u0ae0\0\0"+
    "\0\0\0\u0b1a\0\0\0\u0b54\0\u0b8e\0\u0bc8\0\u0c02\0\u0c3c"+
    "\0\u0c76\0\u0cb0\0\0\0\u0cea\0\u0d24\0\u0d5e\0\u0d98\0\u0dd2"+
    "\0\u0e0c\0\u0e46\0\u0e80\0\u0eba\0\u0ef4\0\0\0\u0f2e\0\0"+
    "\0\u0f68\0\u0fa2\0\u0fdc\0\u1016\0\u1050\0\0\0\u108a\0\0"+
    "\0\0\0\u10c4\0\u10fe\0\u1138\0\u1172\0\u11ac\0\0\0\0"+
    "\0\u11e6\0\u1220\0\u125a\0\u1294\0\u12ce\0\u1308\0\u1342\0\u137c"+
    "\0\u13b6\0\u13f0\0\u142a\0\u1464\0\u149e\0\u14d8\0\u1512\0\u154c"+
    "\0\u1586\0\u15c0\0\u15fa\0\u1634\0\u166e\0\u16a8\0\0\0\u16e2"+
    "\0\u171c\0\u1756\0\u1790\0\0\0\u17ca\0\u1804\0\u183e\0\u1878"+
    "\0\u18b2\0\u18ec\0\u1926\0\u1960\0\u199a\0\u19d4\0\u1a0e\0\u1a48"+
    "\0\u1a82\0\u1abc\0\u1af6\0\u1b30\0\u1b6a\0\u1ba4\0\u1bde\0\u1c18"+
    "\0\u1c52\0\u1c8c\0\u1cc6\0\u1d00\0\u1d3a\0\u1d74\0\u1dae\0\u1de8"+
    "\0\u1e22\0\u1e5c\0\u1e96\0\u1ed0\0\u1f0a\0\u1f44\0\u1f7e\0\u1fb8"+
    "\0\u1ff2\0\u202c\0\u2066\0\u20a0\0\u20da\0\u2114\0\u214e\0\u2188"+
    "\0\u21c2\0\u21fc\0\u2236\0\u2270\0\u22aa\0\u22aa\0\u22e4\0\u231e"+
    "\0\u2358\0\u2392\0\0\0\0\0\0\0\0\0\0\0\u1804"+
    "\0\u23cc\0\0\0\u2406\0\0\0\u2440\0\u247a\0\u24b4\0\u24ee"+
    "\0\u2528\0\u2562\0\u259c\0\u25d6\0\u2610\0\u264a\0\u264a\0\u2684"+
    "\0\u26be\0\u26f8\0\u2732\0\u2732\0\u276c\0\u276c\0\u27a6\0\u27e0"+
    "\0\u281a\0\0\0\u2854\0\u288e\0\u28c8\0\u2902\0\u293c\0\u2976"+
    "\0\u2976\0\u29b0\0\u29ea\0\u2a24\0\u2a5e\0\u2a98\0\u2ad2\0\u2b0c"+
    "\0\u2b46\0\u2b46\0\u2b80\0\u2bba\0\u2bba\0\u2bf4\0\u2c2e\0\u2c2e"+
    "\0\u2c68\0\u2ca2\0\u2ca2\0\u2cdc\0\u2cdc\0\u2d16\0\u2d50\0\u2d8a"+
    "\0\u2dc4\0\u2dc4\0\u2dfe\0\u2e38\0\u2e72\0\u2eac\0\u2eac\0\u2ee6"+
    "\0\u2f20\0\u2f5a\0\u2f94\0\u2f94\0\u2fce\0\u3008\0\u3008\0\u3042"+
    "\0\u3042\0\u307c\0\u30b6\0\u30f0\0\u30f0\0\u312a\0\u3164\0\u3164"+
    "\0\u319e\0\u319e\0\u31d8\0\u31d8\0\u3212\0\u3212";

  private static int [] zzUnpackRowMap() {
    int [] result = new int[310];
    int offset = 0;
    offset = zzUnpackRowMap(ZZ_ROWMAP_PACKED_0, offset, result);
    return result;
  }

  private static int zzUnpackRowMap(String packed, int offset, int [] result) {
    int i = 0;  /* index in packed string  */
    int j = offset;  /* index in unpacked array */
    int l = packed.length();
    while (i < l) {
      int high = packed.charAt(i++) << 16;
      result[j++] = high | packed.charAt(i++);
    }
    return j;
  }

  /** 
   * The transition table of the DFA
   */
  private static final int [] ZZ_TRANS = zzUnpackTrans();

  private static final String ZZ_TRANS_PACKED_0 =
    "\72\0\72\20\72\21\1\22\1\23\1\24\67\22\3\25"+
    "\1\26\66\25\1\27\1\30\3\27\1\31\1\32\1\33"+
    "\1\34\3\27\3\34\2\27\1\34\1\27\4\34\3\27"+
    "\1\35\16\34\1\27\3\34\1\27\4\34\10\27\3\36"+
    "\1\37\66\36\3\40\1\41\66\40\1\42\1\43\1\42"+
    "\1\44\1\42\1\45\1\46\1\47\62\42\1\50\1\51"+
    "\1\50\1\52\1\50\1\53\1\54\1\55\62\50\3\56"+
    "\1\57\66\56\1\60\1\61\1\62\1\63\1\60\1\64"+
    "\1\65\1\66\1\67\3\60\3\67\2\60\1\67\1\60"+
    "\4\67\4\60\16\67\1\70\3\67\1\60\4\67\1\71"+
    "\1\72\1\73\1\74\1\75\1\76\1\77\1\100\1\101"+
    "\1\102\1\101\1\103\1\101\1\104\1\105\1\106\1\107"+
    "\3\101\3\107\2\101\1\107\1\101\4\107\3\101\1\110"+
    "\16\107\1\101\3\107\1\101\4\107\10\101\5\111\1\112"+
    "\1\113\11\111\1\114\1\111\1\115\47\111\1\116\1\117"+
    "\3\116\1\120\1\121\1\122\10\116\1\123\11\116\1\124"+
    "\37\116\2\0\1\125\70\0\1\126\73\0\1\127\1\130"+
    "\66\0\1\131\1\132\75\0\1\32\73\0\3\34\1\133"+
    "\3\34\2\0\1\34\1\0\6\34\2\0\16\34\1\0"+
    "\3\34\1\0\4\34\13\0\1\134\71\0\1\135\10\0"+
    "\1\136\56\0\1\137\1\140\72\0\1\141\10\0\1\142"+
    "\2\0\1\143\13\0\1\144\1\0\1\145\3\0\1\146"+
    "\1\147\1\150\1\0\1\151\32\0\1\46\64\0\1\152"+
    "\1\153\72\0\1\154\11\0\1\155\5\0\1\156\2\0"+
    "\1\157\4\0\1\160\1\161\1\0\1\162\3\0\1\163"+
    "\2\0\1\164\2\0\1\165\27\0\1\54\66\0\1\166"+
    "\67\0\1\167\1\170\77\0\1\171\3\0\3\171\2\0"+
    "\1\171\1\0\4\171\4\0\16\171\1\0\3\171\1\0"+
    "\4\171\16\0\1\65\73\0\3\67\1\0\3\67\2\0"+
    "\1\67\1\0\6\67\2\0\16\67\1\0\3\67\1\0"+
    "\4\67\62\0\1\172\3\0\1\173\2\0\1\174\11\0"+
    "\1\175\1\176\77\0\1\177\3\0\3\177\2\0\1\177"+
    "\1\0\4\177\4\0\16\177\1\0\3\177\1\0\4\177"+
    "\16\0\1\105\73\0\3\107\1\0\3\107\2\0\1\107"+
    "\1\0\6\107\2\0\16\107\1\0\3\107\1\0\4\107"+
    "\16\0\1\113\63\0\1\200\2\201\1\200\1\201\2\0"+
    "\4\200\1\201\1\200\4\201\1\200\3\201\1\202\1\203"+
    "\1\204\1\205\1\201\15\200\1\201\1\200\1\201\3\200"+
    "\1\201\4\200\10\201\1\0\1\206\1\207\75\0\1\121"+
    "\67\0\1\210\65\0\5\131\2\0\63\131\10\0\1\211"+
    "\3\0\3\211\2\0\1\211\1\0\4\211\4\0\16\211"+
    "\1\0\3\211\1\0\4\211\24\0\1\212\72\0\1\213"+
    "\54\0\5\137\2\0\63\137\15\0\1\214\110\0\1\215"+
    "\71\0\1\216\2\0\1\217\70\0\1\220\51\0\1\221"+
    "\114\0\1\222\64\0\1\223\35\0\5\152\2\0\63\152"+
    "\14\0\1\224\17\0\1\225\74\0\1\226\66\0\1\227"+
    "\52\0\1\230\115\0\1\231\45\0\1\232\113\0\1\233"+
    "\50\0\1\234\107\0\1\235\63\0\1\236\43\0\5\167"+
    "\2\0\63\167\3\0\1\237\4\0\3\171\1\240\3\171"+
    "\2\0\1\171\1\0\6\171\2\0\16\171\1\0\3\171"+
    "\1\0\4\171\63\0\1\241\75\0\1\242\71\0\1\243"+
    "\12\0\5\175\2\0\63\175\3\0\1\244\4\0\3\177"+
    "\1\245\3\177\2\0\1\177\1\0\6\177\2\0\16\177"+
    "\1\0\3\177\1\0\4\177\21\0\1\246\7\0\1\246"+
    "\2\0\1\246\2\0\2\246\3\0\1\246\2\0\1\246"+
    "\3\0\1\246\1\0\1\246\1\0\1\246\2\0\1\246"+
    "\3\0\1\246\1\0\2\246\21\0\1\247\7\0\1\247"+
    "\2\0\1\247\2\0\2\247\3\0\1\247\2\0\1\247"+
    "\3\0\1\247\1\0\1\247\1\0\1\247\2\0\1\247"+
    "\3\0\1\247\1\0\2\247\37\0\2\205\70\0\2\201"+
    "\41\0\5\206\2\0\63\206\10\0\3\211\1\133\3\211"+
    "\2\0\1\211\1\0\6\211\2\0\16\211\1\0\3\211"+
    "\1\0\4\211\25\0\1\250\70\0\1\251\71\0\1\252"+
    "\112\0\1\253\61\0\1\254\104\0\1\255\47\0\1\256"+
    "\112\0\1\257\76\0\1\260\70\0\1\261\43\0\1\262"+
    "\120\0\1\263\71\0\1\264\63\0\1\265\67\0\1\266"+
    "\4\0\1\267\72\0\1\270\74\0\1\271\40\0\1\272"+
    "\114\0\1\273\67\0\1\274\70\0\1\275\45\0\1\276"+
    "\3\0\3\276\2\0\1\276\1\0\4\276\4\0\16\276"+
    "\1\0\3\276\1\0\4\276\64\0\1\277\75\0\1\300"+
    "\71\0\1\301\21\0\1\302\3\0\3\302\2\0\1\302"+
    "\1\0\4\302\4\0\16\302\1\0\3\302\1\0\4\302"+
    "\21\0\1\201\7\0\1\201\2\0\1\201\2\0\2\201"+
    "\3\0\1\201\2\0\1\201\3\0\1\201\1\0\1\201"+
    "\1\0\1\201\2\0\1\201\3\0\1\201\1\0\2\201"+
    "\21\0\1\303\7\0\1\303\2\0\1\303\2\0\2\303"+
    "\3\0\1\303\2\0\1\303\3\0\1\303\1\0\1\303"+
    "\1\0\1\303\2\0\1\303\3\0\1\303\1\0\2\303"+
    "\24\0\1\304\73\0\1\305\71\0\1\306\111\0\1\307"+
    "\51\0\1\310\114\0\1\311\44\0\1\312\100\0\1\313"+
    "\104\0\1\314\70\0\1\315\67\0\1\316\105\0\1\317"+
    "\56\0\1\320\72\0\1\321\100\0\1\322\63\0\1\323"+
    "\51\0\1\324\53\0\10\325\3\326\1\325\3\326\2\325"+
    "\1\326\1\325\6\326\2\325\16\326\1\325\3\326\1\325"+
    "\4\326\10\325\23\0\1\327\71\0\1\330\102\0\1\331"+
    "\77\0\1\332\32\0\1\333\4\0\3\276\1\240\3\276"+
    "\2\0\1\276\1\0\6\276\2\0\16\276\1\0\3\276"+
    "\1\0\4\276\65\0\1\334\71\0\1\335\71\0\1\336"+
    "\17\0\1\337\4\0\3\302\1\245\3\302\2\0\1\302"+
    "\1\0\6\302\2\0\16\302\1\0\3\302\1\0\4\302"+
    "\21\0\1\340\7\0\1\340\2\0\1\340\2\0\2\340"+
    "\3\0\1\340\2\0\1\340\3\0\1\340\1\0\1\340"+
    "\1\0\1\340\2\0\1\340\3\0\1\340\1\0\2\340"+
    "\26\0\1\341\57\0\1\342\103\0\1\343\1\344\106\0"+
    "\1\345\70\0\1\346\64\0\1\347\104\0\1\350\46\0"+
    "\1\351\114\0\1\352\67\0\1\353\66\0\1\354\71\0"+
    "\1\355\35\0\10\356\3\357\1\356\3\357\2\356\1\357"+
    "\1\356\6\357\2\356\16\357\1\356\3\357\1\356\4\357"+
    "\10\356\37\0\1\360\101\0\1\361\40\0\1\362\53\0"+
    "\10\363\3\364\1\363\3\364\2\363\1\364\1\363\6\364"+
    "\2\363\16\364\1\363\3\364\1\363\4\364\10\363\72\325"+
    "\10\365\3\366\1\365\3\366\2\365\1\366\1\365\6\366"+
    "\2\365\16\366\1\365\3\366\1\365\4\366\10\365\16\0"+
    "\1\367\71\0\1\370\71\0\1\371\57\0\1\372\120\0"+
    "\1\373\61\0\1\374\71\0\1\375\64\0\1\376\70\0"+
    "\1\377\54\0\10\u0100\3\u0101\1\u0100\3\u0101\2\u0100\1\u0101"+
    "\1\u0100\6\u0101\2\u0100\16\u0101\1\u0100\3\u0101\1\u0100\4\u0101"+
    "\10\u0100\15\0\1\u0102\77\0\1\u0103\71\0\1\u0104\113\0"+
    "\1\u0105\24\0\72\356\43\0\1\u0106\62\0\1\u0107\51\0"+
    "\1\u0108\55\0\72\363\72\365\10\u0109\3\u010a\1\u0109\3\u010a"+
    "\2\u0109\1\u010a\1\u0109\6\u010a\2\u0109\16\u010a\1\u0109\3\u010a"+
    "\1\u0109\4\u010a\10\u0109\34\0\1\u010b\35\0\10\u010c\3\u010d"+
    "\1\u010c\3\u010d\2\u010c\1\u010d\1\u010c\6\u010d\2\u010c\16\u010d"+
    "\1\u010c\3\u010d\1\u010c\4\u010d\10\u010c\23\0\1\u010e\46\0"+
    "\10\u010f\3\u0110\1\u010f\3\u0110\2\u010f\1\u0110\1\u010f\6\u0110"+
    "\2\u010f\16\u0110\1\u010f\3\u0110\1\u010f\4\u0110\10\u010f\41\0"+
    "\1\u0111\30\0\10\u0112\3\u0113\1\u0112\3\u0113\2\u0112\1\u0113"+
    "\1\u0112\6\u0113\2\u0112\16\u0113\1\u0112\3\u0113\1\u0112\4\u0113"+
    "\10\u0112\10\u0114\3\u0115\1\u0114\3\u0115\2\u0114\1\u0115\1\u0114"+
    "\6\u0115\2\u0114\16\u0115\1\u0114\3\u0115\1\u0114\4\u0115\10\u0114"+
    "\72\u0100\34\0\1\u0116\71\0\1\u0117\51\0\1\u0118\55\0"+
    "\10\u0119\3\u011a\1\u0119\3\u011a\2\u0119\1\u011a\1\u0119\6\u011a"+
    "\2\u0119\16\u011a\1\u0119\3\u011a\1\u0119\4\u011a\10\u0119\34\0"+
    "\1\u011b\102\0\1\u011c\65\0\1\u011d\30\0\72\u0109\10\u011e"+
    "\3\u011f\1\u011e\3\u011f\2\u011e\1\u011f\1\u011e\6\u011f\2\u011e"+
    "\16\u011f\1\u011e\3\u011f\1\u011e\4\u011f\10\u011e\72\u010c\41\0"+
    "\1\u0120\30\0\72\u010f\46\0\1\u0121\23\0\72\u0112\72\u0114"+
    "\15\0\1\u0122\54\0\10\u0123\3\u0124\1\u0123\3\u0124\2\u0123"+
    "\1\u0124\1\u0123\6\u0124\2\u0123\16\u0124\1\u0123\3\u0124\1\u0123"+
    "\4\u0124\10\u0123\16\0\1\u0125\53\0\72\u0119\10\u0126\3\u0127"+
    "\1\u0126\3\u0127\2\u0126\1\u0127\1\u0126\6\u0127\2\u0126\16\u0127"+
    "\1\u0126\3\u0127\1\u0126\4\u0127\10\u0126\10\u0128\3\u0129\1\u0128"+
    "\3\u0129\2\u0128\1\u0129\1\u0128\6\u0129\2\u0128\16\u0129\1\u0128"+
    "\3\u0129\1\u0128\4\u0129\10\u0128\15\0\1\u012a\54\0\72\u011e"+
    "\46\0\1\u012b\23\0\10\u012c\3\u012d\1\u012c\3\u012d\2\u012c"+
    "\1\u012d\1\u012c\6\u012d\2\u012c\16\u012d\1\u012c\3\u012d\1\u012c"+
    "\4\u012d\10\u012c\16\0\1\u012e\53\0\72\u0123\10\u012f\3\u0130"+
    "\1\u012f\3\u0130\2\u012f\1\u0130\1\u012f\6\u0130\2\u012f\16\u0130"+
    "\1\u012f\3\u0130\1\u012f\4\u0130\10\u012f\72\u0126\72\u0128\10\u0131"+
    "\3\u0132\1\u0131\3\u0132\2\u0131\1\u0132\1\u0131\6\u0132\2\u0131"+
    "\16\u0132\1\u0131\3\u0132\1\u0131\4\u0132\10\u0131\10\u0133\3\u0134"+
    "\1\u0133\3\u0134\2\u0133\1\u0134\1\u0133\6\u0134\2\u0133\16\u0134"+
    "\1\u0133\3\u0134\1\u0133\4\u0134\10\u0133\72\u012c\10\u0135\3\u0136"+
    "\1\u0135\3\u0136\2\u0135\1\u0136\1\u0135\6\u0136\2\u0135\16\u0136"+
    "\1\u0135\3\u0136\1\u0135\4\u0136\10\u0135\72\u012f\72\u0131\72\u0133"+
    "\72\u0135";

  private static int [] zzUnpackTrans() {
    int [] result = new int[12876];
    int offset = 0;
    offset = zzUnpackTrans(ZZ_TRANS_PACKED_0, offset, result);
    return result;
  }

  private static int zzUnpackTrans(String packed, int offset, int [] result) {
    int i = 0;       /* index in packed string  */
    int j = offset;  /* index in unpacked array */
    int l = packed.length();
    while (i < l) {
      int count = packed.charAt(i++);
      int value = packed.charAt(i++);
      value--;
      do result[j++] = value; while (--count > 0);
    }
    return j;
  }


  /* error codes */
  private static final int ZZ_UNKNOWN_ERROR = 0;
  private static final int ZZ_NO_MATCH = 1;
  private static final int ZZ_PUSHBACK_2BIG = 2;

  /* error messages for the codes above */
  private static final String ZZ_ERROR_MSG[] = {
    "Unkown internal scanner error",
    "Error: could not match input",
    "Error: pushback value was too large"
  };

  /**
   * ZZ_ATTRIBUTE[aState] contains the attributes of state <code>aState</code>
   */
  private static final int [] ZZ_ATTRIBUTE = zzUnpackAttribute();

  private static final String ZZ_ATTRIBUTE_PACKED_0 =
    "\1\10\16\0\3\11\2\1\1\11\1\1\1\11\2\1"+
    "\2\11\1\1\2\11\1\1\1\11\1\1\1\11\3\1"+
    "\3\11\3\1\3\11\1\1\1\11\1\1\1\11\2\1"+
    "\2\11\2\1\11\11\3\1\2\11\1\1\2\11\1\1"+
    "\2\11\1\1\1\11\2\1\6\11\1\0\1\11\1\1"+
    "\1\11\1\0\1\11\2\0\1\1\2\11\1\0\1\11"+
    "\6\0\1\1\1\11\12\0\1\11\1\1\1\11\4\0"+
    "\1\1\1\11\1\0\2\11\5\1\2\11\1\1\25\0"+
    "\1\11\4\0\1\11\2\0\1\1\21\0\1\7\11\0"+
    "\1\1\14\0\1\7\3\0\1\7\1\5\1\0\1\7"+
    "\3\0\5\11\1\1\1\0\1\11\1\0\1\11\4\0"+
    "\1\7\4\0\1\5\4\0\1\5\1\0\1\5\1\0"+
    "\1\7\1\0\1\7\1\11\1\0\1\7\1\0\2\7"+
    "\1\5\4\0\1\7\3\0\1\5\1\0\1\7\1\5"+
    "\2\0\1\5\2\0\1\5\1\0\1\5\2\0\1\7"+
    "\1\0\1\5\1\0\2\7\1\0\1\5\2\0\1\7"+
    "\1\0\1\5\1\0\1\7\1\5\1\0\1\5\1\0"+
    "\2\7\1\5\1\0\1\7\1\5\1\0\1\5\1\0"+
    "\1\5\1\0\1\5\1\0";

  private static int [] zzUnpackAttribute() {
    int [] result = new int[310];
    int offset = 0;
    offset = zzUnpackAttribute(ZZ_ATTRIBUTE_PACKED_0, offset, result);
    return result;
  }

  private static int zzUnpackAttribute(String packed, int offset, int [] result) {
    int i = 0;       /* index in packed string  */
    int j = offset;  /* index in unpacked array */
    int l = packed.length();
    while (i < l) {
      int count = packed.charAt(i++);
      int value = packed.charAt(i++);
      do result[j++] = value; while (--count > 0);
    }
    return j;
  }

  /** the input device */
  private java.io.Reader zzReader;

  /** the current state of the DFA */
  private int zzState;

  /** the current lexical state */
  private int zzLexicalState = YYINITIAL;

  /** this buffer contains the current text to be matched and is
      the source of the yytext() string */
  private char zzBuffer[] = new char[ZZ_BUFFERSIZE];

  /** the textposition at the last accepting state */
  private int zzMarkedPos;

  /** the textposition at the last state to be included in yytext */
  private int zzPushbackPos;

  /** the current text position in the buffer */
  private int zzCurrentPos;

  /** startRead marks the beginning of the yytext() string in the buffer */
  private int zzStartRead;

  /** endRead marks the last character in the buffer, that has been read
      from input */
  private int zzEndRead;

  /** number of newlines encountered up to the start of the matched text */
  private int yyline;

  /** the number of characters up to the start of the matched text */
  private int yychar;

  /**
   * the number of characters from the last newline up to the start of the 
   * matched text
   */
  private int yycolumn;

  /** 
   * zzAtBOL == true <=> the scanner is currently at the beginning of a line
   */
  private boolean zzAtBOL = true;

  /** zzAtEOF == true <=> the scanner is at the EOF */
  private boolean zzAtEOF;

  /* user code: */

  //Create a symbol using the current line and column number, as computed by JFlex
  //No attached value
  //Symbol is assumed to start and end on the same line
  //e.g. symbol(SEMICOLON)
  private Symbol symbol(short type) {
    return symbol(type, null);
  }
  
  //Create a symbol using the current line and column number, as computed by JFlex
  //Attached value gives content information
  //Symbol is assumed to start and end on the same line
  //e.g. symbol(IDENTIFIER, "x")
  private Symbol symbol(short type, Object value) {
    //NB: JFlex is zero-indexed, but we want one-indexed
    int startLine = yyline + 1;
    int startCol = yycolumn + 1;
    int endLine = startLine;
    int endCol = startCol + yylength() - 1;
    return symbol(type, value, startLine, startCol, endLine, endCol);
  }
  
  //Create a symbol using explicit position information (one-indexed)
  private Symbol symbol(short type, Object value, int startLine, int startCol, int endLine, int endCol) {
    int startPos = Symbol.makePosition(startLine, startCol);
    int endPos = Symbol.makePosition(endLine, endCol);
    return new Symbol(type, startPos, endPos, value);
  }
  
  //throw an exceptions with position information from JFlex
  private void error(String msg) throws Scanner.Exception {
    //correct to one-indexed
    throw new Scanner.Exception(yyline + 1, yycolumn + 1, msg);
  }
  
  //throw an exceptions with position information from JFlex
  //columnOffset is added to the column
  private void error(String msg, int columnOffset) throws Scanner.Exception {
  //correct to one-indexed
    throw new Scanner.Exception(yyline + 1, yycolumn + 1 + columnOffset, msg);
  }
    private final StateClass_layout state_layout = new StateClass_layout();
    private class StateClass_layout {
        private StateClass_layout() {
            //from test/backend-jflex/in/metalexer/layout.mll [101, 1]
            embeddingRecordArray[0] = new EmbeddingRecord("local_header_section", inst_local_header, PairFilter.EMPTY);
            //from test/backend-jflex/in/metalexer/layout.mll [110, 1]
            embeddingRecordArray[1] = new EmbeddingRecord("inherited_header_section", inst_inherited_header, PairFilter.EMPTY);
            //from test/backend-jflex/in/metalexer/layout.mll [119, 1]
            embeddingRecordArray[2] = new EmbeddingRecord("option_section", inst_layout_option_section, PairFilter.EMPTY);
            //from test/backend-jflex/in/metalexer/layout.mll [126, 1]
            embeddingRecordArray[3] = new EmbeddingRecord("option_decl", inst_decl_region, PairFilter.EMPTY);
            //from test/backend-jflex/in/metalexer/layout.mll [133, 1]
            embeddingRecordArray[4] = new EmbeddingRecord("option_init", inst_init_region, PairFilter.EMPTY);
            //from test/backend-jflex/in/metalexer/layout.mll [140, 1]
            embeddingRecordArray[5] = new EmbeddingRecord("option_string_directive", inst_string_directive, PairFilter.EMPTY);
            //from test/backend-jflex/in/metalexer/layout.mll [149, 1]
            embeddingRecordArray[6] = new EmbeddingRecord("rule_section", inst_layout_rule_section, PairFilter.EMPTY);
            //from test/backend-jflex/in/metalexer/layout.mll [156, 1]
            embeddingRecordArray[7] = new EmbeddingRecord("metapattern_directive", inst_metapattern_directive, PairFilter.EMPTY);
            //from test/backend-jflex/in/metalexer/layout.mll [163, 1]
            embeddingRecordArray[8] = new EmbeddingRecord("pair_directive", inst_pair_directive, PairFilter.EMPTY);
            //from test/backend-jflex/in/metalexer/layout.mll [172, 1]
            embeddingRecordArray[9] = new EmbeddingRecord("comments", inst_bracket_comment, PairFilter.EMPTY);
            //from test/backend-jflex/in/metalexer/layout.mll [181, 1]
            embeddingRecordArray[10] = new EmbeddingRecord("identifier_directive", inst_identifier_directive, PairFilter.EMPTY);
            //from test/backend-jflex/in/metalexer/layout.mll [190, 1]
            embeddingRecordArray[11] = new EmbeddingRecord("string", inst_string, PairFilter.EMPTY);
            
            //from test/backend-jflex/in/metalexer/layout.mll [95, 8]
            yybegin(base_YYINITIAL_STATE);
            
            embeddingStack.push(new EmbeddingRecord(null, inst_base, PairFilter.EMPTY));
            
            //Transition through states reachable by pure BOF patterns
            //NB: append actions will not be performed
            startEmbedding(/*local_header_section*/ 0); 
            
            restartAppendBuf();
            restartDelimBuf(false);
            
            //NB: Send <BOF> immediately.  Don't check for a return, because pure BOFs are handled above.
            sendMTok(/*BOF*/ 0);
        }
        
        private final EmbeddingRecord[] embeddingRecordArray = new EmbeddingRecord[12];
        private final CompClass_base inst_base = new CompClass_base();
        private final CompClass_bracket_comment inst_bracket_comment = new CompClass_bracket_comment();
        private final CompClass_decl_region inst_decl_region = new CompClass_decl_region();
        private final CompClass_identifier_directive inst_identifier_directive = new CompClass_identifier_directive();
        private final CompClass_inherited_header inst_inherited_header = new CompClass_inherited_header();
        private final CompClass_init_region inst_init_region = new CompClass_init_region();
        private final CompClass_layout_option_section inst_layout_option_section = new CompClass_layout_option_section();
        private final CompClass_layout_rule_section inst_layout_rule_section = new CompClass_layout_rule_section();
        private final CompClass_local_header inst_local_header = new CompClass_local_header();
        private final CompClass_metapattern_directive inst_metapattern_directive = new CompClass_metapattern_directive();
        private final CompClass_pair_directive inst_pair_directive = new CompClass_pair_directive();
        private final CompClass_string inst_string = new CompClass_string();
        private final CompClass_string_directive inst_string_directive = new CompClass_string_directive();
        private java.util.Stack<EmbeddingRecord> embeddingStack = new java.util.Stack<EmbeddingRecord>();
        
        private void startEmbedding(int newEmbeddingNum) {
            EmbeddingRecord newEmbedding = embeddingRecordArray[newEmbeddingNum];
            newEmbedding.getFilter().reset();
            embeddingStack.push(newEmbedding);
            yybegin(newEmbedding.getComp().getStartState());
        }
        private void endEmbedding() {
            embeddingStack.pop();
            EmbeddingRecord newEmbedding = embeddingStack.peek();
            yybegin(newEmbedding.getComp().getStartState());
        }
        private ComponentInnerClass getCurrComp() {
            return embeddingStack.peek().getComp();
        }
        private PairFilter getCurrFilter() {
            return embeddingStack.peek().getFilter();
        }
        
        private int delimStartLine = -1;
        private int delimStartCol = -1;
        private StringBuffer delimBuf = null;
        
        private void restartDelimBuf(boolean copyToAppendBuf) {
            if(copyToAppendBuf && delimBuf.length() > 0) {
                startLine = delimStartLine;
                startCol = delimStartCol;
                appendBuf.append(delimBuf);
            }
            delimStartLine = -1;
            delimStartCol = -1;
            delimBuf = new StringBuffer();
        }
        private <T> void appendToStartDelim(T t) {
            if(delimStartLine < 0) {
                delimStartLine = yyline + 1;
                delimStartCol = yycolumn + 1;
            }
            delimBuf.append(t);
        }
        
        private int startLine = -1;
        private int startCol = -1;
        private StringBuffer appendBuf = null;
        
        private void restartAppendBuf() {
            startLine = yyline + 1;
            startCol = yycolumn + 1;
            appendBuf = new StringBuffer();
        }
        private int getStartLine() {
            return startLine;
        }
        private int getStartColumn() {
            return startCol;
        }
        private String getAppendText() {
            return appendBuf.toString();
        }
        private <T> void append(T t) {
            appendBuf.append(t);
        }
        
        private Symbol extraReturn = null;
        private int prevState = -1;
        
        public Symbol getExtraReturn() {
            return extraReturn;
        }
        public int getPrevState() {
            return prevState;
        }
        private void returnExtraValue(Symbol value) {
            extraReturn = value;
            prevState = yystate();
            if(yylength() > 0) {
                yypushback(1); //to ensure that at least one char is available
            }
            yybegin(EXTRA_RETURN);
        }
        
        private final MetaLexerClass_layout metalexer_layout = new MetaLexerClass_layout();
        private MetaLexerClass_layout.Transition sendMTok(int mtok) {
            return metalexer_layout.processSymbol(mtok);
        }
        
        public void processMTok(int mtok)  throws Scanner.Exception{
            if(!getCurrFilter().test(mtok)) {
                return; //don't send symbol if it gets filtered out
            }
            Maybe<? extends Symbol> maybeReturn = Maybe.Nothing();
            ComponentInnerClass currComp = getCurrComp();
            boolean appendActionPerformed = false;
            MetaLexerClass_layout.Transition next = sendMTok(mtok);
            while(next != null) {
                boolean endOfEmbedding = next.getEmbeddingNum() < 0;
                if(endOfEmbedding) {
                    endEmbedding();
                } else {
                    //NB: update filter in the OLD embedding and only in start case
                    getCurrFilter().clean(next.getMatch());
                    startEmbedding(next.getEmbeddingNum());
                }
                ComponentInnerClass nextComp = getCurrComp();
                //NB: only one append action can meaningfully be performed since
                //  no input can be consumed while in this loop
                if(!appendActionPerformed && currComp.isAppend() && !nextComp.isAppend()) {
                    int endLine = yyline + 1;
                    int endCol = yycolumn; //+1 handled by increment below
                    
                    final String yytext = yytext();
                    final int yylength = yylength();
                    boolean prevWasNewline = false;
                    for(int i = 0; i < yylength; i++) {
                        if(prevWasNewline) {
                            endLine++;
                            endCol = 0;
                        }
                        switch(yytext.charAt(i)) {
                        case '\r':
                            if(i + 1 < yylength && yytext.charAt(i+1) == '\n') {
                                i++;
                            }
                            //NB: fall through
                        case '\n':
                            prevWasNewline = true;
                            break;
                        default:
                            prevWasNewline = false;
                            break;
                        }
                        endCol++;
                    }
                    maybeReturn = currComp.performAppendAction(getStartLine(), getStartColumn(), endLine, endCol, getAppendText());
                    appendActionPerformed = true;
                }
                
                if(currComp.isAppend() != nextComp.isAppend()) {
                    restartAppendBuf();
                }
                
                restartDelimBuf(nextComp.expectsStartDelim());
                
                next = null;
                if(endOfEmbedding) {
                    int regionSym = currComp.getSymbolValue();
                    if(getCurrFilter().test(regionSym)) {
                        next = sendMTok(regionSym);
                    } else {
                    }
                }
            }
            if(maybeReturn.isJust()) {
                returnExtraValue(maybeReturn.fromJust());
            }
        }
    }
    private static abstract class ComponentInnerClass {
        public boolean isAppend() {
            return false;
        }
        public boolean expectsStartDelim() {
            return false;
        }
        public Maybe<? extends Symbol> performAppendAction(int startLine, int startCol, int endLine, int endCol, String text) throws Scanner.Exception {
            throw new UnsupportedOperationException(getClass().getName() + ".performAppendAction has not been implemented.");
        }
        public abstract int getStartState();
        public abstract int getSymbolValue();
    }
    //from test/backend-jflex/in/metalexer/base.mlc [1, 1]
    private class CompClass_base extends ComponentInnerClass {
        
        public CompClass_base() {
        }
        
        private static final int YYINITIAL = base_YYINITIAL_STATE; //from test/backend-jflex/in/metalexer/base.mlc [1, 1]
        
        public <T> void appendToStartDelim(T t) {
            state_layout.appendToStartDelim(t);
        }
        
        
        public int getStartState() {
            //from test/backend-jflex/in/metalexer/base.mlc [1, 1]
            return YYINITIAL;
        }
        
        public int getSymbolValue() {
            return 1;
        }
        
        public Maybe<? extends Symbol> base_action_1() throws Scanner.Exception {
            //System.err.println("state_layout.inst_base.base_action_1()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/base.mlc [9, 9]
                error("Unexpected character: " + yytext());
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> base_action_2() throws Scanner.Exception {
            //System.err.println("state_layout.inst_base.base_action_2()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/base.mlc [10, 9]
                return Maybe.Just(symbol(EOF));
            }
            return Maybe.Nothing();
        }
    }
    //from test/backend-jflex/in/metalexer/bracket_comment.mlc [1, 1]
    private class CompClass_bracket_comment extends ComponentInnerClass {
        
        public CompClass_bracket_comment() {
        }
        
        private static final int YYINITIAL = bracket_comment_YYINITIAL_STATE; //from test/backend-jflex/in/metalexer/bracket_comment.mlc [1, 1]
        
        public <T> void appendToStartDelim(T t) {
            state_layout.appendToStartDelim(t);
        }
        
        
        public int getStartState() {
            //from test/backend-jflex/in/metalexer/bracket_comment.mlc [1, 1]
            return YYINITIAL;
        }
        
        public int getSymbolValue() {
            return 2;
        }
        
        public Maybe<? extends Symbol> bracket_comment_action_1() throws Scanner.Exception {
            //System.err.println("state_layout.inst_bracket_comment.bracket_comment_action_1()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/bracket_comment.mlc [15, 22]
                //append(yytext());
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> bracket_comment_action_2() throws Scanner.Exception {
            //System.err.println("state_layout.inst_bracket_comment.bracket_comment_action_2()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/bracket_comment.mlc [16, 23]
                //append(yytext());
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> bracket_comment_action_3() throws Scanner.Exception {
            //System.err.println("state_layout.inst_bracket_comment.bracket_comment_action_3()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/bracket_comment.mlc [19, 9]
                //append(yytext());
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> bracket_comment_action_4() throws Scanner.Exception {
            //System.err.println("state_layout.inst_bracket_comment.bracket_comment_action_4()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/bracket_comment.mlc [20, 9]
                error("Unterminated bracket comment");
            }
            return Maybe.Nothing();
        }
    }
    //from test/backend-jflex/in/metalexer/decl_region.mlc [1, 1]
    private class CompClass_decl_region extends ComponentInnerClass {
        
        public CompClass_decl_region() {
        }
        
        private static final int YYINITIAL = decl_region_YYINITIAL_STATE; //from test/backend-jflex/in/metalexer/decl_region.mlc [1, 1]
        
        public <T> void appendToStartDelim(T t) {
            state_layout.appendToStartDelim(t);
        }
        
        public boolean isAppend() {
            return true;
        }
        public Maybe<? extends Symbol> performAppendAction(int startLine, int startCol, int endLine, int endCol, String text) throws Scanner.Exception {
            if(Object.class != null) {
                //from null [6, 1]
                /*(int startLine, int startCol, int endLine, int endCol, String text)*/
    //TODO-AC: inserting delimiters is hackish
    return Maybe.Just(symbol(DECL_REGION, "%{" + text + "%}", startLine, startCol, endLine, endCol));
            }
            return Maybe.Nothing();
        }
        public <T> void append(T t) {
            state_layout.append(t);
        }
        
        public int getStartState() {
            //from test/backend-jflex/in/metalexer/decl_region.mlc [1, 1]
            return YYINITIAL;
        }
        
        public int getSymbolValue() {
            return 3;
        }
        
        public Maybe<? extends Symbol> decl_region_action_1() throws Scanner.Exception {
            //System.err.println("state_layout.inst_decl_region.decl_region_action_1()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/decl_region.mlc [14, 20]
                append(yytext().substring(1));
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> decl_region_action_2() throws Scanner.Exception {
            //System.err.println("state_layout.inst_decl_region.decl_region_action_2()");
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> decl_region_action_3() throws Scanner.Exception {
            //System.err.println("state_layout.inst_decl_region.decl_region_action_3()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/decl_region.mlc [18, 9]
                append(yytext());
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> decl_region_action_4() throws Scanner.Exception {
            //System.err.println("state_layout.inst_decl_region.decl_region_action_4()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/decl_region.mlc [19, 9]
                error("Unterminated declaration region");
            }
            return Maybe.Nothing();
        }
    }
    //from test/backend-jflex/in/metalexer/identifier_directive.mlc [1, 1]
    private class CompClass_identifier_directive extends ComponentInnerClass {
        
        public CompClass_identifier_directive() {
        }
        
        private static final int YYINITIAL = identifier_directive_YYINITIAL_STATE; //from test/backend-jflex/in/metalexer/identifier_directive.mlc [1, 1]
        
        public <T> void appendToStartDelim(T t) {
            state_layout.appendToStartDelim(t);
        }
        
        
        public int getStartState() {
            //from test/backend-jflex/in/metalexer/identifier_directive.mlc [1, 1]
            return YYINITIAL;
        }
        
        public int getSymbolValue() {
            return 4;
        }
        
        public Maybe<? extends Symbol> identifier_directive_action_1() throws Scanner.Exception {
            //System.err.println("state_layout.inst_identifier_directive.identifier_directive_action_1()");
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> identifier_directive_action_2() throws Scanner.Exception {
            //System.err.println("state_layout.inst_identifier_directive.identifier_directive_action_2()");
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> identifier_directive_action_3() throws Scanner.Exception {
            //System.err.println("state_layout.inst_identifier_directive.identifier_directive_action_3()");
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> identifier_directive_action_4() throws Scanner.Exception {
            //System.err.println("state_layout.inst_identifier_directive.identifier_directive_action_4()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/identifier_directive.mlc [21, 3]
                return Maybe.Just(symbol(COMMA));
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> identifier_directive_action_5() throws Scanner.Exception {
            //System.err.println("state_layout.inst_identifier_directive.identifier_directive_action_5()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/abstract_comment.mlc [10, 11]
                /* ignore */
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> identifier_directive_action_6() throws Scanner.Exception {
            //System.err.println("state_layout.inst_identifier_directive.identifier_directive_action_6()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/identifier_directive.mlc [23, 14]
                return Maybe.Just(symbol(IDENTIFIER, yytext()));
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> identifier_directive_action_7() throws Scanner.Exception {
            //System.err.println("state_layout.inst_identifier_directive.identifier_directive_action_7()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/identifier_directive.mlc [24, 23]
                return Maybe.Just(symbol(QUALIFIED_IDENTIFIER, yytext()));
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> identifier_directive_action_8() throws Scanner.Exception {
            //System.err.println("state_layout.inst_identifier_directive.identifier_directive_action_8()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/identifier_directive.mlc [26, 9]
                error("Unexpected character in identifier list: " + yytext());
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> identifier_directive_action_9() throws Scanner.Exception {
            //System.err.println("state_layout.inst_identifier_directive.identifier_directive_action_9()");
            return Maybe.Nothing();
        }
    }
    //from test/backend-jflex/in/metalexer/inherited_header.mlc [1, 1]
    private class CompClass_inherited_header extends ComponentInnerClass {
        
        public CompClass_inherited_header() {
        }
        
        private static final int YYINITIAL = inherited_header_YYINITIAL_STATE; //from test/backend-jflex/in/metalexer/inherited_header.mlc [1, 1]
        
        public <T> void appendToStartDelim(T t) {
            state_layout.appendToStartDelim(t);
        }
        
        public boolean isAppend() {
            return true;
        }
        public Maybe<? extends Symbol> performAppendAction(int startLine, int startCol, int endLine, int endCol, String text) throws Scanner.Exception {
            if(Object.class != null) {
                //from null [6, 1]
                /*(int startLine, int startCol, int endLine, int endCol, String text)*/
    if(text.startsWith("\r\n")) {
        text = text.substring(2);
    } else if(text.startsWith("\n") || text.startsWith("\r")) {
        text = text.substring(1);
    }
    return Maybe.Just(symbol(INHERITED_HEADER, text, startLine, startCol, endLine, endCol));
            }
            return Maybe.Nothing();
        }
        public <T> void append(T t) {
            state_layout.append(t);
        }
        
        public int getStartState() {
            //from test/backend-jflex/in/metalexer/inherited_header.mlc [1, 1]
            return YYINITIAL;
        }
        
        public int getSymbolValue() {
            return 5;
        }
        
        public Maybe<? extends Symbol> inherited_header_action_1() throws Scanner.Exception {
            //System.err.println("state_layout.inst_inherited_header.inherited_header_action_1()");
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> inherited_header_action_2() throws Scanner.Exception {
            //System.err.println("state_layout.inst_inherited_header.inherited_header_action_2()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/inherited_header.mlc [21, 9]
                append(yytext());
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> inherited_header_action_3() throws Scanner.Exception {
            //System.err.println("state_layout.inst_inherited_header.inherited_header_action_3()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/inherited_header.mlc [22, 9]
                error("Unterminated inherited header section.");
            }
            return Maybe.Nothing();
        }
    }
    //from test/backend-jflex/in/metalexer/init_region.mlc [1, 1]
    private class CompClass_init_region extends ComponentInnerClass {
        
        public CompClass_init_region() {
        }
        
        private static final int YYINITIAL = init_region_YYINITIAL_STATE; //from test/backend-jflex/in/metalexer/init_region.mlc [1, 1]
        
        public <T> void appendToStartDelim(T t) {
            state_layout.appendToStartDelim(t);
        }
        
        public boolean isAppend() {
            return true;
        }
        public boolean expectsStartDelim() {
            return true;
        }
        public Maybe<? extends Symbol> performAppendAction(int startLine, int startCol, int endLine, int endCol, String text) throws Scanner.Exception {
            if(Object.class != null) {
                //from null [6, 1]
                /*(int startLine, int startCol, int endLine, int endCol, String text)*/
    return Maybe.Just(symbol(INIT_REGION, text, startLine, startCol, endLine, endCol));
            }
            return Maybe.Nothing();
        }
        public <T> void append(T t) {
            state_layout.append(t);
        }
        
        public int getStartState() {
            //from test/backend-jflex/in/metalexer/init_region.mlc [1, 1]
            return YYINITIAL;
        }
        
        public int getSymbolValue() {
            return 6;
        }
        
        public Maybe<? extends Symbol> init_region_action_1() throws Scanner.Exception {
            //System.err.println("state_layout.inst_init_region.init_region_action_1()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/init_region.mlc [13, 20]
                append(yytext().substring(1));
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> init_region_action_2() throws Scanner.Exception {
            //System.err.println("state_layout.inst_init_region.init_region_action_2()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/init_region.mlc [14, 19]
                append(yytext());
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> init_region_action_3() throws Scanner.Exception {
            //System.err.println("state_layout.inst_init_region.init_region_action_3()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/init_region.mlc [17, 9]
                append(yytext());
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> init_region_action_4() throws Scanner.Exception {
            //System.err.println("state_layout.inst_init_region.init_region_action_4()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/init_region.mlc [18, 9]
                error("Unterminated init region");
            }
            return Maybe.Nothing();
        }
    }
    //from test/backend-jflex/in/metalexer/layout_option_section.mlc [1, 1]
    private class CompClass_layout_option_section extends ComponentInnerClass {
        
        public CompClass_layout_option_section() {
        }
        
        private static final int YYINITIAL = layout_option_section_YYINITIAL_STATE; //from test/backend-jflex/in/metalexer/layout_option_section.mlc [1, 1]
        
        public <T> void appendToStartDelim(T t) {
            state_layout.appendToStartDelim(t);
        }
        
        
        public int getStartState() {
            //from test/backend-jflex/in/metalexer/layout_option_section.mlc [1, 1]
            return YYINITIAL;
        }
        
        public int getSymbolValue() {
            return 7;
        }
        
        public Maybe<? extends Symbol> layout_option_section_action_1() throws Scanner.Exception {
            //System.err.println("state_layout.inst_layout_option_section.layout_option_section_action_1()");
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> layout_option_section_action_2() throws Scanner.Exception {
            //System.err.println("state_layout.inst_layout_option_section.layout_option_section_action_2()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/layout_option_section.mlc [26, 18]
                /* ignore */
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> layout_option_section_action_3() throws Scanner.Exception {
            //System.err.println("state_layout.inst_layout_option_section.layout_option_section_action_3()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/layout_option_section.mlc [27, 19]
                /* ignore */
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> layout_option_section_action_4() throws Scanner.Exception {
            //System.err.println("state_layout.inst_layout_option_section.layout_option_section_action_4()");
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> layout_option_section_action_5() throws Scanner.Exception {
            //System.err.println("state_layout.inst_layout_option_section.layout_option_section_action_5()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/layout_option_section.mlc [30, 18]
                appendToStartDelim(yytext());
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> layout_option_section_action_6() throws Scanner.Exception {
            //System.err.println("state_layout.inst_layout_option_section.layout_option_section_action_6()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/layout_option_section.mlc [33, 34]
                return Maybe.Just(symbol(HELPER_DIRECTIVE));
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> layout_option_section_action_7() throws Scanner.Exception {
            //System.err.println("state_layout.inst_layout_option_section.layout_option_section_action_7()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/layout_option_section.mlc [36, 34]
                return Maybe.Just(symbol(LAYOUT_DIRECTIVE));
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> layout_option_section_action_8() throws Scanner.Exception {
            //System.err.println("state_layout.inst_layout_option_section.layout_option_section_action_8()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/layout_option_section.mlc [37, 33]
                return Maybe.Just(symbol(START_DIRECTIVE));
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> layout_option_section_action_9() throws Scanner.Exception {
            //System.err.println("state_layout.inst_layout_option_section.layout_option_section_action_9()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/layout_option_section.mlc [38, 37]
                return Maybe.Just(symbol(COMPONENT_DIRECTIVE));
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> layout_option_section_action_10() throws Scanner.Exception {
            //System.err.println("state_layout.inst_layout_option_section.layout_option_section_action_10()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/layout_option_section.mlc [41, 35]
                return Maybe.Just(symbol(DECLARE_DIRECTIVE));
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> layout_option_section_action_11() throws Scanner.Exception {
            //System.err.println("state_layout.inst_layout_option_section.layout_option_section_action_11()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/layout_option_section.mlc [42, 34]
                return Maybe.Just(symbol(OPTION_DIRECTIVE));
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> layout_option_section_action_12() throws Scanner.Exception {
            //System.err.println("state_layout.inst_layout_option_section.layout_option_section_action_12()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/layout_option_section.mlc [43, 37]
                return Maybe.Just(symbol(INITTHROW_DIRECTIVE));
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> layout_option_section_action_13() throws Scanner.Exception {
            //System.err.println("state_layout.inst_layout_option_section.layout_option_section_action_13()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/layout_option_section.mlc [44, 36]
                return Maybe.Just(symbol(LEXTHROW_DIRECTIVE));
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> layout_option_section_action_14() throws Scanner.Exception {
            //System.err.println("state_layout.inst_layout_option_section.layout_option_section_action_14()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/layout_option_section.mlc [47, 5]
                error("Invalid directive");
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> layout_option_section_action_15() throws Scanner.Exception {
            //System.err.println("state_layout.inst_layout_option_section.layout_option_section_action_15()");
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> layout_option_section_action_16() throws Scanner.Exception {
            //System.err.println("state_layout.inst_layout_option_section.layout_option_section_action_16()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/abstract_comment.mlc [10, 11]
                /* ignore */
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> layout_option_section_action_17() throws Scanner.Exception {
            //System.err.println("state_layout.inst_layout_option_section.layout_option_section_action_17()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/layout_option_section.mlc [56, 9]
                error("Unexpected character in option section: " + yytext());
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> layout_option_section_action_18() throws Scanner.Exception {
            //System.err.println("state_layout.inst_layout_option_section.layout_option_section_action_18()");
            return Maybe.Nothing();
        }
    }
    //from test/backend-jflex/in/metalexer/layout_rule_section.mlc [1, 1]
    private class CompClass_layout_rule_section extends ComponentInnerClass {
        
        public CompClass_layout_rule_section() {
        }
        
        private static final int YYINITIAL = layout_rule_section_YYINITIAL_STATE; //from test/backend-jflex/in/metalexer/layout_rule_section.mlc [1, 1]
        
        public <T> void appendToStartDelim(T t) {
            state_layout.appendToStartDelim(t);
        }
        
        
        public int getStartState() {
            //from test/backend-jflex/in/metalexer/layout_rule_section.mlc [1, 1]
            return YYINITIAL;
        }
        
        public int getSymbolValue() {
            return 8;
        }
        
        public Maybe<? extends Symbol> layout_rule_section_action_1() throws Scanner.Exception {
            //System.err.println("state_layout.inst_layout_rule_section.layout_rule_section_action_1()");
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> layout_rule_section_action_2() throws Scanner.Exception {
            //System.err.println("state_layout.inst_layout_rule_section.layout_rule_section_action_2()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/layout_rule_section.mlc [21, 18]
                /* ignore */
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> layout_rule_section_action_3() throws Scanner.Exception {
            //System.err.println("state_layout.inst_layout_rule_section.layout_rule_section_action_3()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/layout_rule_section.mlc [22, 19]
                /* ignore */
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> layout_rule_section_action_4() throws Scanner.Exception {
            //System.err.println("state_layout.inst_layout_rule_section.layout_rule_section_action_4()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/layout_rule_section.mlc [24, 34]
                return Maybe.Just(symbol(START_EMBED_GROUP));
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> layout_rule_section_action_5() throws Scanner.Exception {
            //System.err.println("state_layout.inst_layout_rule_section.layout_rule_section_action_5()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/layout_rule_section.mlc [26, 35]
                return Maybe.Just(symbol(INHERIT_UNEMBED));
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> layout_rule_section_action_6() throws Scanner.Exception {
            //System.err.println("state_layout.inst_layout_rule_section.layout_rule_section_action_6()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/layout_rule_section.mlc [27, 35]
                return Maybe.Just(symbol(INHERIT_REPLACE));
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> layout_rule_section_action_7() throws Scanner.Exception {
            //System.err.println("state_layout.inst_layout_rule_section.layout_rule_section_action_7()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/layout_rule_section.mlc [28, 36]
                return Maybe.Just(symbol(INHERIT_UNOPTION));
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> layout_rule_section_action_8() throws Scanner.Exception {
            //System.err.println("state_layout.inst_layout_rule_section.layout_rule_section_action_8()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/layout_rule_section.mlc [30, 32]
                return Maybe.Just(symbol(EMBEDDING_NAME));
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> layout_rule_section_action_9() throws Scanner.Exception {
            //System.err.println("state_layout.inst_layout_rule_section.layout_rule_section_action_9()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/layout_rule_section.mlc [31, 32]
                return Maybe.Just(symbol(EMBEDDING_HOST));
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> layout_rule_section_action_10() throws Scanner.Exception {
            //System.err.println("state_layout.inst_layout_rule_section.layout_rule_section_action_10()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/layout_rule_section.mlc [32, 33]
                return Maybe.Just(symbol(EMBEDDING_GUEST));
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> layout_rule_section_action_11() throws Scanner.Exception {
            //System.err.println("state_layout.inst_layout_rule_section.layout_rule_section_action_11()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/layout_rule_section.mlc [33, 32]
                return Maybe.Just(symbol(EMBEDDING_PAIR));
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> layout_rule_section_action_12() throws Scanner.Exception {
            //System.err.println("state_layout.inst_layout_rule_section.layout_rule_section_action_12()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/layout_rule_section.mlc [35, 33]
                return Maybe.Just(symbol(EMBEDDING_START));
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> layout_rule_section_action_13() throws Scanner.Exception {
            //System.err.println("state_layout.inst_layout_rule_section.layout_rule_section_action_13()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/layout_rule_section.mlc [36, 31]
                return Maybe.Just(symbol(EMBEDDING_END));
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> layout_rule_section_action_14() throws Scanner.Exception {
            //System.err.println("state_layout.inst_layout_rule_section.layout_rule_section_action_14()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/layout_rule_section.mlc [38, 36]
                return Maybe.Just(symbol(START_INHERIT_GROUP));
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> layout_rule_section_action_15() throws Scanner.Exception {
            //System.err.println("state_layout.inst_layout_rule_section.layout_rule_section_action_15()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/layout_rule_section.mlc [39, 34]
                return Maybe.Just(symbol(DELETION_DELETE));
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> layout_rule_section_action_16() throws Scanner.Exception {
            //System.err.println("state_layout.inst_layout_rule_section.layout_rule_section_action_16()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/abstract_comment.mlc [10, 11]
                /* ignore */
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> layout_rule_section_action_17() throws Scanner.Exception {
            //System.err.println("state_layout.inst_layout_rule_section.layout_rule_section_action_17()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/layout_rule_section.mlc [44, 9]
                error("Unexpected character in rule section: " + yytext());
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> layout_rule_section_action_18() throws Scanner.Exception {
            //System.err.println("state_layout.inst_layout_rule_section.layout_rule_section_action_18()");
            return Maybe.Nothing();
        }
    }
    //from test/backend-jflex/in/metalexer/local_header.mlc [1, 1]
    private class CompClass_local_header extends ComponentInnerClass {
        
        public CompClass_local_header() {
        }
        
        private static final int YYINITIAL = local_header_YYINITIAL_STATE; //from test/backend-jflex/in/metalexer/local_header.mlc [1, 1]
        
        public <T> void appendToStartDelim(T t) {
            state_layout.appendToStartDelim(t);
        }
        
        public boolean isAppend() {
            return true;
        }
        public Maybe<? extends Symbol> performAppendAction(int startLine, int startCol, int endLine, int endCol, String text) throws Scanner.Exception {
            if(Object.class != null) {
                //from null [6, 1]
                /*(int startLine, int startCol, int endLine, int endCol, String text)*/
    return Maybe.Just(symbol(LOCAL_HEADER, text, startLine, startCol, endLine, endCol));
            }
            return Maybe.Nothing();
        }
        public <T> void append(T t) {
            state_layout.append(t);
        }
        
        public int getStartState() {
            //from test/backend-jflex/in/metalexer/local_header.mlc [1, 1]
            return YYINITIAL;
        }
        
        public int getSymbolValue() {
            return 9;
        }
        
        public Maybe<? extends Symbol> local_header_action_1() throws Scanner.Exception {
            //System.err.println("state_layout.inst_local_header.local_header_action_1()");
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> local_header_action_2() throws Scanner.Exception {
            //System.err.println("state_layout.inst_local_header.local_header_action_2()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/local_header.mlc [16, 9]
                append(yytext());
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> local_header_action_3() throws Scanner.Exception {
            //System.err.println("state_layout.inst_local_header.local_header_action_3()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/local_header.mlc [17, 9]
                error("Unterminated local header section.");
            }
            return Maybe.Nothing();
        }
    }
    //from test/backend-jflex/in/metalexer/metapattern_directive.mlc [1, 1]
    private class CompClass_metapattern_directive extends ComponentInnerClass {
        
        public CompClass_metapattern_directive() {
        }
        
        private static final int YYINITIAL = metapattern_directive_YYINITIAL_STATE; //from test/backend-jflex/in/metalexer/metapattern_directive.mlc [1, 1]
        
        public <T> void appendToStartDelim(T t) {
            state_layout.appendToStartDelim(t);
        }
        
        
        public int getStartState() {
            //from test/backend-jflex/in/metalexer/metapattern_directive.mlc [1, 1]
            return YYINITIAL;
        }
        
        public int getSymbolValue() {
            return 10;
        }
        
        public Maybe<? extends Symbol> metapattern_directive_action_1() throws Scanner.Exception {
            //System.err.println("state_layout.inst_metapattern_directive.metapattern_directive_action_1()");
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> metapattern_directive_action_2() throws Scanner.Exception {
            //System.err.println("state_layout.inst_metapattern_directive.metapattern_directive_action_2()");
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> metapattern_directive_action_3() throws Scanner.Exception {
            //System.err.println("state_layout.inst_metapattern_directive.metapattern_directive_action_3()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/metapattern_directive.mlc [20, 19]
                /* ignore */
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> metapattern_directive_action_4() throws Scanner.Exception {
            //System.err.println("state_layout.inst_metapattern_directive.metapattern_directive_action_4()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/metapattern_directive.mlc [22, 9]
                return Maybe.Just(symbol(MP_ANY));
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> metapattern_directive_action_5() throws Scanner.Exception {
            //System.err.println("state_layout.inst_metapattern_directive.metapattern_directive_action_5()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/metapattern_directive.mlc [23, 9]
                return Maybe.Just(symbol(MP_BOF));
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> metapattern_directive_action_6() throws Scanner.Exception {
            //System.err.println("state_layout.inst_metapattern_directive.metapattern_directive_action_6()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/metapattern_directive.mlc [24, 9]
                return Maybe.Just(symbol(MP_EOF));
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> metapattern_directive_action_7() throws Scanner.Exception {
            //System.err.println("state_layout.inst_metapattern_directive.metapattern_directive_action_7()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/metapattern_directive.mlc [26, 5]
                return Maybe.Just(symbol(MP_LPAREN));
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> metapattern_directive_action_8() throws Scanner.Exception {
            //System.err.println("state_layout.inst_metapattern_directive.metapattern_directive_action_8()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/metapattern_directive.mlc [27, 5]
                return Maybe.Just(symbol(MP_RPAREN));
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> metapattern_directive_action_9() throws Scanner.Exception {
            //System.err.println("state_layout.inst_metapattern_directive.metapattern_directive_action_9()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/metapattern_directive.mlc [28, 5]
                return Maybe.Just(symbol(MP_LSQUARE));
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> metapattern_directive_action_10() throws Scanner.Exception {
            //System.err.println("state_layout.inst_metapattern_directive.metapattern_directive_action_10()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/metapattern_directive.mlc [29, 5]
                return Maybe.Just(symbol(MP_RSQUARE));
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> metapattern_directive_action_11() throws Scanner.Exception {
            //System.err.println("state_layout.inst_metapattern_directive.metapattern_directive_action_11()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/metapattern_directive.mlc [30, 5]
                return Maybe.Just(symbol(MP_CARET));
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> metapattern_directive_action_12() throws Scanner.Exception {
            //System.err.println("state_layout.inst_metapattern_directive.metapattern_directive_action_12()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/metapattern_directive.mlc [31, 5]
                return Maybe.Just(symbol(MP_STAR));
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> metapattern_directive_action_13() throws Scanner.Exception {
            //System.err.println("state_layout.inst_metapattern_directive.metapattern_directive_action_13()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/metapattern_directive.mlc [32, 5]
                return Maybe.Just(symbol(MP_PLUS));
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> metapattern_directive_action_14() throws Scanner.Exception {
            //System.err.println("state_layout.inst_metapattern_directive.metapattern_directive_action_14()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/metapattern_directive.mlc [33, 5]
                return Maybe.Just(symbol(MP_OPT));
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> metapattern_directive_action_15() throws Scanner.Exception {
            //System.err.println("state_layout.inst_metapattern_directive.metapattern_directive_action_15()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/metapattern_directive.mlc [34, 5]
                return Maybe.Just(symbol(MP_OR));
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> metapattern_directive_action_16() throws Scanner.Exception {
            //System.err.println("state_layout.inst_metapattern_directive.metapattern_directive_action_16()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/abstract_comment.mlc [10, 11]
                /* ignore */
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> metapattern_directive_action_17() throws Scanner.Exception {
            //System.err.println("state_layout.inst_metapattern_directive.metapattern_directive_action_17()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/metapattern_directive.mlc [38, 20]
                return Maybe.Just(symbol(MP_REGION, yytext().substring(1, yylength() - 1)));
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> metapattern_directive_action_18() throws Scanner.Exception {
            //System.err.println("state_layout.inst_metapattern_directive.metapattern_directive_action_18()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/metapattern_directive.mlc [39, 29]
                return Maybe.Just(symbol(MP_REGION, yytext().substring(1, yylength() - 1)));
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> metapattern_directive_action_19() throws Scanner.Exception {
            //System.err.println("state_layout.inst_metapattern_directive.metapattern_directive_action_19()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/metapattern_directive.mlc [40, 14]
                return Maybe.Just(symbol(MP_SYM, yytext()));
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> metapattern_directive_action_20() throws Scanner.Exception {
            //System.err.println("state_layout.inst_metapattern_directive.metapattern_directive_action_20()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/metapattern_directive.mlc [44, 9]
                error("Unexpected character in meta-pattern: " + yytext());
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> metapattern_directive_action_21() throws Scanner.Exception {
            //System.err.println("state_layout.inst_metapattern_directive.metapattern_directive_action_21()");
            return Maybe.Nothing();
        }
    }
    //from test/backend-jflex/in/metalexer/pair_directive.mlc [1, 1]
    private class CompClass_pair_directive extends ComponentInnerClass {
        
        public CompClass_pair_directive() {
        }
        
        private static final int YYINITIAL = pair_directive_YYINITIAL_STATE; //from test/backend-jflex/in/metalexer/pair_directive.mlc [1, 1]
        
        public <T> void appendToStartDelim(T t) {
            state_layout.appendToStartDelim(t);
        }
        
        
        public int getStartState() {
            //from test/backend-jflex/in/metalexer/pair_directive.mlc [1, 1]
            return YYINITIAL;
        }
        
        public int getSymbolValue() {
            return 11;
        }
        
        public Maybe<? extends Symbol> pair_directive_action_1() throws Scanner.Exception {
            //System.err.println("state_layout.inst_pair_directive.pair_directive_action_1()");
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> pair_directive_action_2() throws Scanner.Exception {
            //System.err.println("state_layout.inst_pair_directive.pair_directive_action_2()");
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> pair_directive_action_3() throws Scanner.Exception {
            //System.err.println("state_layout.inst_pair_directive.pair_directive_action_3()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/pair_directive.mlc [20, 19]
                /* ignore */
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> pair_directive_action_4() throws Scanner.Exception {
            //System.err.println("state_layout.inst_pair_directive.pair_directive_action_4()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/pair_directive.mlc [22, 5]
                return Maybe.Just(symbol(COMMA));
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> pair_directive_action_5() throws Scanner.Exception {
            //System.err.println("state_layout.inst_pair_directive.pair_directive_action_5()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/abstract_comment.mlc [10, 11]
                /* ignore */
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> pair_directive_action_6() throws Scanner.Exception {
            //System.err.println("state_layout.inst_pair_directive.pair_directive_action_6()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/pair_directive.mlc [26, 20]
                return Maybe.Just(symbol(MP_REGION, yytext().substring(1, yylength() - 1)));
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> pair_directive_action_7() throws Scanner.Exception {
            //System.err.println("state_layout.inst_pair_directive.pair_directive_action_7()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/pair_directive.mlc [27, 29]
                return Maybe.Just(symbol(MP_REGION, yytext().substring(1, yylength() - 1)));
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> pair_directive_action_8() throws Scanner.Exception {
            //System.err.println("state_layout.inst_pair_directive.pair_directive_action_8()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/pair_directive.mlc [28, 14]
                return Maybe.Just(symbol(MP_SYM, yytext()));
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> pair_directive_action_9() throws Scanner.Exception {
            //System.err.println("state_layout.inst_pair_directive.pair_directive_action_9()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/pair_directive.mlc [32, 9]
                error("Unexpected character in pair item: " + yytext());
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> pair_directive_action_10() throws Scanner.Exception {
            //System.err.println("state_layout.inst_pair_directive.pair_directive_action_10()");
            return Maybe.Nothing();
        }
    }
    //from test/backend-jflex/in/metalexer/string.mlc [1, 1]
    private class CompClass_string extends ComponentInnerClass {
        
        public CompClass_string() {
        }
        
        private static final int YYINITIAL = string_YYINITIAL_STATE; //from test/backend-jflex/in/metalexer/string.mlc [1, 1]
        
        public <T> void appendToStartDelim(T t) {
            state_layout.appendToStartDelim(t);
        }
        
        public boolean isAppend() {
            return true;
        }
        public Maybe<? extends Symbol> performAppendAction(int startLine, int startCol, int endLine, int endCol, String text) throws Scanner.Exception {
            if(Object.class != null) {
                //from null [6, 1]
                /*(int startLine, int startCol, int endLine, int endCol, String text)*/
    //TODO-AC: inserting delimiters is hackish
    return Maybe.Just(symbol(STRING, "\"" + text + "\"", startLine, startCol, endLine, endCol));
            }
            return Maybe.Nothing();
        }
        public <T> void append(T t) {
            state_layout.append(t);
        }
        
        public int getStartState() {
            //from test/backend-jflex/in/metalexer/string.mlc [1, 1]
            return YYINITIAL;
        }
        
        public int getSymbolValue() {
            return 12;
        }
        
        public Maybe<? extends Symbol> string_action_1() throws Scanner.Exception {
            //System.err.println("state_layout.inst_string.string_action_1()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/string.mlc [22, 9]
                /*just end string - %append will handle token*/
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> string_action_2() throws Scanner.Exception {
            //System.err.println("state_layout.inst_string.string_action_2()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/string.mlc [23, 18]
                append(yytext());
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> string_action_3() throws Scanner.Exception {
            //System.err.println("state_layout.inst_string.string_action_3()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/string.mlc [24, 11]
                error("Invalid escape sequence: '" + yytext() + "'");
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> string_action_4() throws Scanner.Exception {
            //System.err.println("state_layout.inst_string.string_action_4()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/string.mlc [25, 4]
                error("Incomplete escape sequence");
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> string_action_5() throws Scanner.Exception {
            //System.err.println("state_layout.inst_string.string_action_5()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/string.mlc [26, 18]
                error("Unterminated string literal");
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> string_action_6() throws Scanner.Exception {
            //System.err.println("state_layout.inst_string.string_action_6()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/string.mlc [29, 9]
                append(yytext());
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> string_action_7() throws Scanner.Exception {
            //System.err.println("state_layout.inst_string.string_action_7()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/string.mlc [30, 9]
                error("Unterminated string literal");
            }
            return Maybe.Nothing();
        }
    }
    //from test/backend-jflex/in/metalexer/string_directive.mlc [1, 1]
    private class CompClass_string_directive extends ComponentInnerClass {
        
        public CompClass_string_directive() {
        }
        
        private static final int YYINITIAL = string_directive_YYINITIAL_STATE; //from test/backend-jflex/in/metalexer/string_directive.mlc [1, 1]
        
        public <T> void appendToStartDelim(T t) {
            state_layout.appendToStartDelim(t);
        }
        
        
        public int getStartState() {
            //from test/backend-jflex/in/metalexer/string_directive.mlc [1, 1]
            return YYINITIAL;
        }
        
        public int getSymbolValue() {
            return 13;
        }
        
        public Maybe<? extends Symbol> string_directive_action_1() throws Scanner.Exception {
            //System.err.println("state_layout.inst_string_directive.string_directive_action_1()");
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> string_directive_action_2() throws Scanner.Exception {
            //System.err.println("state_layout.inst_string_directive.string_directive_action_2()");
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> string_directive_action_3() throws Scanner.Exception {
            //System.err.println("state_layout.inst_string_directive.string_directive_action_3()");
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> string_directive_action_4() throws Scanner.Exception {
            //System.err.println("state_layout.inst_string_directive.string_directive_action_4()");
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> string_directive_action_5() throws Scanner.Exception {
            //System.err.println("state_layout.inst_string_directive.string_directive_action_5()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/string_directive.mlc [18, 3]
                return Maybe.Just(symbol(COMMA));
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> string_directive_action_6() throws Scanner.Exception {
            //System.err.println("state_layout.inst_string_directive.string_directive_action_6()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/abstract_comment.mlc [10, 11]
                /* ignore */
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> string_directive_action_7() throws Scanner.Exception {
            //System.err.println("state_layout.inst_string_directive.string_directive_action_7()");
            if(Object.class != null) {
                //from test/backend-jflex/in/metalexer/string_directive.mlc [21, 9]
                error("Unexpected character in string list: " + yytext());
            }
            return Maybe.Nothing();
        }
        public Maybe<? extends Symbol> string_directive_action_8() throws Scanner.Exception {
            //System.err.println("state_layout.inst_string_directive.string_directive_action_8()");
            return Maybe.Nothing();
        }
    }
    public static class MetaLexerClass_layout {
        
        //// Symbols ////
        // <BOF>
        // %base%
        // %bracket_comment%
        // %decl_region%
        // %identifier_directive%
        // %inherited_header%
        // %init_region%
        // %layout_option_section%
        // %layout_rule_section%
        // %local_header%
        // %metapattern_directive%
        // %pair_directive%
        // %string%
        // %string_directive%
        // START_BRACKET_COMMENT
        // END_BRACKET_COMMENT
        // END_DECL_REGION
        // END_IDENTIFIER_DIRECTIVE
        // END_INHERITED_HEADER
        // END_INIT_REGION
        // START_DECL_REGION
        // START_INIT_REGION
        // START_IDENTIFIER_DIRECTIVE
        // START_STRING_DIRECTIVE
        // END_OPTION_SECTION
        // START_PAIR_DIRECTIVE
        // START_METAPATTERN_DIRECTIVE
        // END_RULE_SECTION
        // END_LOCAL_HEADER
        // END_METAPATTERN_DIRECTIVE
        // END_PAIR_DIRECTIVE
        // END_STRING
        // END_STRING_DIRECTIVE
        // START_STRING
        
        private static final Integer[][] trans_BASE = new Integer[][] {
            {0,0,0,0,0,1,0,2,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,},
        };
        private static final Integer[] act_BASE = new Integer[] {null,1,2,0,};
        
        private static final Integer[][] trans_pair_directive = new Integer[][] {
            {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,},
        };
        private static final Integer[] act_pair_directive = new Integer[] {null,19,};
        
        private static final Integer[][] trans_rule_section = new Integer[][] {
            {0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,2,0,0,3,4,5,0,0,0,0,0,0,},
        };
        private static final Integer[] act_rule_section = new Integer[] {null,5,6,4,3,17,};
        
        private static final Integer[][] trans_local_header_section = new Integer[][] {
            {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,},
        };
        private static final Integer[] act_local_header_section = new Integer[] {null,11,};
        
        private static final Integer[][] trans_identifier_directive = new Integer[][] {
            {0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,},
        };
        private static final Integer[] act_identifier_directive = new Integer[] {null,5,21,};
        
        private static final Integer[][] trans_option_init = new Integer[][] {
            {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,},
        };
        private static final Integer[] act_option_init = new Integer[] {null,15,};
        
        private static final Integer[][] trans_comments = new Integer[][] {
            {0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,},
        };
        private static final Integer[] act_comments = new Integer[] {null,5,20,};
        
        private static final Integer[][] trans_inherited_header_section = new Integer[][] {
            {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,},
        };
        private static final Integer[] act_inherited_header_section = new Integer[] {null,12,};
        
        private static final Integer[][] trans_metapattern_directive = new Integer[][] {
            {0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,},
        };
        private static final Integer[] act_metapattern_directive = new Integer[] {null,5,18,};
        
        private static final Integer[][] trans_option_decl = new Integer[][] {
            {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,},
        };
        private static final Integer[] act_option_decl = new Integer[] {null,14,};
        
        private static final Integer[][] trans_option_string_directive = new Integer[][] {
            {0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,},
        };
        private static final Integer[] act_option_string_directive = new Integer[] {null,5,16,10,};
        
        private static final Integer[][] trans_option_section = new Integer[][] {
            {0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,2,3,4,5,6,0,0,0,0,0,0,0,0,0,},
        };
        private static final Integer[] act_option_section = new Integer[] {null,5,7,8,6,9,13,};
        
        private static final Integer[][] trans_string = new Integer[][] {
            {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,},
        };
        private static final Integer[] act_string = new Integer[] {null,22,};
        
        private static final Integer[][][] transitionTables = new Integer[][][] {
            trans_local_header_section,
            trans_inherited_header_section,
            trans_option_section,
            trans_option_decl,
            trans_option_init,
            trans_option_string_directive,
            trans_rule_section,
            trans_metapattern_directive,
            trans_pair_directive,
            trans_comments,
            trans_identifier_directive,
            trans_string,
        };
        
        private static final Integer[][] actionTables = new Integer[][] {
            act_local_header_section,
            act_inherited_header_section,
            act_option_section,
            act_option_decl,
            act_option_init,
            act_option_string_directive,
            act_rule_section,
            act_metapattern_directive,
            act_pair_directive,
            act_comments,
            act_identifier_directive,
            act_string,
        };
        
        private static final Integer[][] rev_trans_inherited_header_section = new Integer[][] {
            {1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,},
            {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,},
        };
        private static final Integer[] rev_act_inherited_header_section = new Integer[] {null,null,1,};
        
        private static final Integer[][] rev_trans_option_section = new Integer[][] {
            {1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,},
            {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,},
        };
        private static final Integer[] rev_act_option_section = new Integer[] {null,null,1,};
        
        private static final Integer[][] rev_trans_option_decl = new Integer[][] {
            {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,},
            {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,},
        };
        private static final Integer[] rev_act_option_decl = new Integer[] {null,null,1,};
        
        private static final Integer[][] rev_trans_option_init = new Integer[][] {
            {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,},
            {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,},
        };
        private static final Integer[] rev_act_option_init = new Integer[] {null,null,1,};
        
        private static final Integer[][] rev_trans_option_string_directive = new Integer[][] {
            {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,},
            {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,},
        };
        private static final Integer[] rev_act_option_string_directive = new Integer[] {null,null,1,};
        
        private static final Integer[][] rev_trans_rule_section = new Integer[][] {
            {1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,},
            {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,},
        };
        private static final Integer[] rev_act_rule_section = new Integer[] {null,null,1,};
        
        private static final Integer[][] rev_trans_metapattern_directive = new Integer[][] {
            {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,},
            {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,},
        };
        private static final Integer[] rev_act_metapattern_directive = new Integer[] {null,null,1,};
        
        private static final Integer[][] rev_trans_pair_directive = new Integer[][] {
            {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,},
            {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,},
        };
        private static final Integer[] rev_act_pair_directive = new Integer[] {null,null,1,};
        
        private static final Integer[][] rev_trans_comments = new Integer[][] {
            {1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,},
            {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,},
        };
        private static final Integer[] rev_act_comments = new Integer[] {null,null,1,};
        
        private static final Integer[][] rev_trans_identifier_directive = new Integer[][] {
            {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,},
            {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,},
        };
        private static final Integer[] rev_act_identifier_directive = new Integer[] {null,null,1,};
        
        private static final Integer[][] rev_trans_string = new Integer[][] {
            {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,},
            {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,},
        };
        private static final Integer[] rev_act_string = new Integer[] {null,null,1,};
        
        private static final Integer[][][] reverseTransitionTables = new Integer[][][] {
            rev_trans_inherited_header_section,
            rev_trans_option_section,
            rev_trans_rule_section,
            rev_trans_metapattern_directive,
            rev_trans_pair_directive,
            rev_trans_comments,
            rev_trans_identifier_directive,
            rev_trans_option_decl,
            rev_trans_option_init,
            rev_trans_option_string_directive,
            rev_trans_string,
        };
        
        private static final Integer[][] reverseActionTables = new Integer[][] {
            rev_act_inherited_header_section,
            rev_act_option_section,
            rev_act_rule_section,
            rev_act_metapattern_directive,
            rev_act_pair_directive,
            rev_act_comments,
            rev_act_identifier_directive,
            rev_act_option_decl,
            rev_act_option_init,
            rev_act_option_string_directive,
            rev_act_string,
        };
        
        private static final int[] actionMap = new int[] {1,2,6,7,8,9,10,3,4,5,11,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,};
        
        private final java.util.Stack<Integer> stateStack = new java.util.Stack<Integer>();
        
        private java.util.List<Integer> currentMatch = new java.util.ArrayList<Integer>();
        private int currentState = 0;
        private Integer[][] currentTransitionTable = trans_BASE;
        private Integer[] currentActionTable = act_BASE;
        
        public MetaLexerClass_layout() {
            //Transition through states reachable by pure BOF patterns
            switchDFAs(/*local_header_section*/ 0); 
        }
        
        public Transition processSymbol(int sym) {
            currentMatch.add(sym);
            currentState = currentTransitionTable[currentState][sym];
            Integer mpatNum = currentActionTable[currentState];
            if(mpatNum == null) {
                return null;
            }
            int action = actionMap[mpatNum];
            Transition transition = new Transition(action, cleanMatch(mpatNum, currentMatch));
            switchDFAs(action);
            return transition;
        }
        
        private void switchDFAs(int action) {
            currentState = 0;
            currentMatch.clear();
            
            int nextEmbedding;
            if(action < 0) {
                stateStack.pop();
                nextEmbedding = stateStack.isEmpty() ? -1 : stateStack.peek();
            } else {
                stateStack.push(action);
                nextEmbedding = action;
            }
            
            if(nextEmbedding < 0) {
                currentTransitionTable = trans_BASE;
                currentActionTable = act_BASE;
            } else {
                currentTransitionTable = transitionTables[nextEmbedding];
                currentActionTable = actionTables[nextEmbedding];
            }
        }
        
        private java.util.List<Integer> cleanMatch(int mpatNum, java.util.List<Integer> rawMatch) {
            if(mpatNum >= reverseTransitionTables.length) {
                //don't need to clean end pattern matches - they aren't looked at
                return new java.util.ArrayList<Integer>(rawMatch);
            }
            
            java.util.List<Integer> cleanMatch = new java.util.ArrayList<Integer>();
            Integer[][] transitions = reverseTransitionTables[mpatNum];
            Integer[] actions = reverseActionTables[mpatNum];
            int dfaState = 0;
            for(int i = rawMatch.size() - 1; (i >= 0) && (actions[dfaState] == null); i--) {
                int sym = rawMatch.get(i);
                cleanMatch.add(sym);
                dfaState = transitions[dfaState][sym];
            }
            java.util.Collections.reverse(cleanMatch);
            return cleanMatch;
        }
        
        public static class Transition {
            private final int embeddingNum;
            private final java.util.List<Integer> match;
            
            public Transition(int embeddingNum, java.util.List<Integer> match) {
                this.embeddingNum = embeddingNum;
                this.match = new java.util.ArrayList<Integer>(match);
            }
            
            public int getEmbeddingNum() { return embeddingNum; }
            
            public java.util.List<Integer> getMatch() { return match; }
        }
        
    }
    private static class PairFilter {
        public static final PairFilter EMPTY = new PairFilter.Builder().build();
        
        private final java.util.Map<Integer, java.util.Set<Integer>> pairMap; //close -> open
        private final java.util.Set<Integer> allOpenSymbols;
        private final java.util.List<Integer> unclosedOpenSymbols; //really a stack, but then the iterator would go backwards
        
        private PairFilter(java.util.Map<Integer, java.util.Set<Integer>> pairMap, java.util.Set<Integer> allOpenSymbols) {
            this.pairMap = pairMap;
            this.allOpenSymbols = allOpenSymbols;
            this.unclosedOpenSymbols = new java.util.ArrayList<Integer>();
        }
        
        public static class Builder {
            private final java.util.Map<Integer, java.util.Set<Integer>> pairMap; //close -> open
            private final java.util.Set<Integer> allOpenSymbols;
            
            public Builder() {
                this.pairMap = new java.util.HashMap<Integer, java.util.Set<Integer>>();
                this.allOpenSymbols = new java.util.HashSet<Integer>();
            }
            
            public Builder add(int open, int close) {
                allOpenSymbols.add(open);
                java.util.Set<Integer> list = pairMap.get(close);
                if(list == null) {
                    list = new java.util.HashSet<Integer>();
                    pairMap.put(close, list);
                }
                list.add(open);
                return this;
            }
            
            public PairFilter build() {
                return new PairFilter(pairMap, allOpenSymbols);
            }
        }
        
        public boolean test(int sym) {
            //NB: closing-ness takes precedence over opening-ness
            java.util.Set<Integer> correspondingOpens = pairMap.get(sym);
            if(correspondingOpens != null) { //implies closing
                for(java.util.Iterator<Integer> it = unclosedOpenSymbols.iterator(); it.hasNext(); ) {
                    int open = it.next();
                    if(correspondingOpens.contains(open)) {
                        //if closing and have seen corresponding open, then close open and reject
                        it.remove();
                        return false;
                    }
                }
                //if closing and have not seen corresponding open, then accept
            }
            if(allOpenSymbols.contains(sym)) { //implies opening
                unclosedOpenSymbols.add(0, sym); //insert at beginning
            }
            return true;
        }
        
        public void clean(java.util.List<Integer> match) {
            java.util.Collections.reverse(match);
            for(int sym : match) {
                if(unclosedOpenSymbols.isEmpty()) {
                    return;
                }
                
                if(unclosedOpenSymbols.get(0) == sym) {
                    unclosedOpenSymbols.remove(0);
                }
            }
        }
        
        public void reset() {
            unclosedOpenSymbols.clear();
        }
    }
    public class EmbeddingRecord {
        private final String name;
        private final ComponentInnerClass comp;
        private final PairFilter filter;
        
        public EmbeddingRecord(String name, ComponentInnerClass comp, PairFilter filter) {
            this.name = name;
            this.comp = comp;
            this.filter = filter;
        }
        
        public String getName() {
            return name;
        }
        
        public ComponentInnerClass getComp() {
            return comp;
        }
        
        public PairFilter getFilter() {
            return filter;
        }
    }
    private static abstract class Maybe<T> {
        @SuppressWarnings("unchecked")
        private final static Maybe NOTHING = new Nothing();
        
        private Maybe() {}
        
        public final boolean isNothing() {
            return !isJust();
        }
        public abstract boolean isJust();
        
        public abstract T fromJust();
        
        public static <S> Maybe<S> Just(S value) {
            return new Just<S>(value);
        }
        
        @SuppressWarnings("unchecked")
        public static <S> Maybe<S> Nothing() {
            return (Nothing<S>) NOTHING;
        }
        
        private static class Just<T> extends Maybe<T> {
            private T value;
            
            private Just(T value) {
                this.value = value;
            }
            
            public boolean isJust() {
                return true;
            }
            
            public T fromJust() {
                return value;
            }
            
            public String toString() { 
                return "Just " + value;
            }
        }
        
        private static class Nothing<T> extends Maybe<T> {
            private Nothing() {}
            
            public boolean isJust() {
                return false;
            }
            
            public T fromJust() {
                throw new UnsupportedOperationException("Cannot extract value from Nothing");
            }
            
            public String toString() {
                return "Nothing";
            }
        }
    }


  /**
   * Creates a new scanner
   * There is also a java.io.InputStream version of this constructor.
   *
   * @param   in  the java.io.Reader to read input from.
   */
  public LayoutScanner(java.io.Reader in) {
    this.zzReader = in;
  }

  /**
   * Creates a new scanner.
   * There is also java.io.Reader version of this constructor.
   *
   * @param   in  the java.io.Inputstream to read input from.
   */
  public LayoutScanner(java.io.InputStream in) {
    this(new java.io.InputStreamReader(in));
  }

  /** 
   * Unpacks the compressed character translation table.
   *
   * @param packed   the packed character translation table
   * @return         the unpacked character translation table
   */
  private static char [] zzUnpackCMap(String packed) {
    char [] map = new char[0x10000];
    int i = 0;  /* index in packed string  */
    int j = 0;  /* index in unpacked array */
    while (i < 156) {
      int  count = packed.charAt(i++);
      char value = packed.charAt(i++);
      do map[j++] = value; while (--count > 0);
    }
    return map;
  }


  /**
   * Refills the input buffer.
   *
   * @return      <code>false</code>, iff there was new input.
   * 
   * @exception   java.io.IOException  if any I/O-Error occurs
   */
  private boolean zzRefill() throws java.io.IOException {

    /* first: make room (if you can) */
    if (zzStartRead > 0) {
      System.arraycopy(zzBuffer, zzStartRead,
                       zzBuffer, 0,
                       zzEndRead-zzStartRead);

      /* translate stored positions */
      zzEndRead-= zzStartRead;
      zzCurrentPos-= zzStartRead;
      zzMarkedPos-= zzStartRead;
      zzPushbackPos-= zzStartRead;
      zzStartRead = 0;
    }

    /* is the buffer big enough? */
    if (zzCurrentPos >= zzBuffer.length) {
      /* if not: blow it up */
      char newBuffer[] = new char[zzCurrentPos*2];
      System.arraycopy(zzBuffer, 0, newBuffer, 0, zzBuffer.length);
      zzBuffer = newBuffer;
    }

    /* finally: fill the buffer with new input */
    int numRead = zzReader.read(zzBuffer, zzEndRead,
                                            zzBuffer.length-zzEndRead);

    if (numRead < 0) {
      return true;
    }
    else {
      zzEndRead+= numRead;
      return false;
    }
  }

    
  /**
   * Closes the input stream.
   */
  public final void yyclose() throws java.io.IOException {
    zzAtEOF = true;            /* indicate end of file */
    zzEndRead = zzStartRead;  /* invalidate buffer    */

    if (zzReader != null)
      zzReader.close();
  }


  /**
   * Resets the scanner to read from a new input stream.
   * Does not close the old reader.
   *
   * All internal variables are reset, the old input stream 
   * <b>cannot</b> be reused (internal buffer is discarded and lost).
   * Lexical state is set to <tt>ZZ_INITIAL</tt>.
   *
   * @param reader   the new input stream 
   */
  public final void yyreset(java.io.Reader reader) {
    zzReader = reader;
    zzAtBOL  = true;
    zzAtEOF  = false;
    zzEndRead = zzStartRead = 0;
    zzCurrentPos = zzMarkedPos = zzPushbackPos = 0;
    yyline = yychar = yycolumn = 0;
    zzLexicalState = YYINITIAL;
  }


  /**
   * Returns the current lexical state.
   */
  public final int yystate() {
    return zzLexicalState;
  }


  /**
   * Enters a new lexical state
   *
   * @param newState the new lexical state
   */
  public final void yybegin(int newState) {
    zzLexicalState = newState;
  }


  /**
   * Returns the text matched by the current regular expression.
   */
  public final String yytext() {
    return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );
  }


  /**
   * Returns the character at position <tt>pos</tt> from the 
   * matched text. 
   * 
   * It is equivalent to yytext().charAt(pos), but faster
   *
   * @param pos the position of the character to fetch. 
   *            A value from 0 to yylength()-1.
   *
   * @return the character at position pos
   */
  public final char yycharat(int pos) {
    return zzBuffer[zzStartRead+pos];
  }


  /**
   * Returns the length of the matched text region.
   */
  public final int yylength() {
    return zzMarkedPos-zzStartRead;
  }


  /**
   * Reports an error that occured while scanning.
   *
   * In a wellformed scanner (no or only correct usage of 
   * yypushback(int) and a match-all fallback rule) this method 
   * will only be called with things that "Can't Possibly Happen".
   * If this method is called, something is seriously wrong
   * (e.g. a JFlex bug producing a faulty scanner etc.).
   *
   * Usual syntax/scanner level error handling should be done
   * in error fallback rules.
   *
   * @param   errorCode  the code of the errormessage to display
   */
  private void zzScanError(int errorCode) {
    String message;
    try {
      message = ZZ_ERROR_MSG[errorCode];
    }
    catch (ArrayIndexOutOfBoundsException e) {
      message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];
    }

    throw new Error(message);
  } 


  /**
   * Pushes the specified amount of characters back into the input stream.
   *
   * They will be read again by then next call of the scanning method
   *
   * @param number  the number of characters to be read again.
   *                This number must not be greater than yylength()!
   */
  public void yypushback(int number)  {
    if ( number > yylength() )
      zzScanError(ZZ_PUSHBACK_2BIG);

    zzMarkedPos -= number;
  }


  /**
   * Resumes scanning until the next regular expression is matched,
   * the end of input is encountered or an I/O-Error occurs.
   *
   * @return      the next token
   * @exception   java.io.IOException  if any I/O-Error occurs
   */
  public Symbol nextToken() throws java.io.IOException, Scanner.Exception {
    int zzInput;
    int zzAction;

    // cached fields:
    int zzCurrentPosL;
    int zzMarkedPosL;
    int zzEndReadL = zzEndRead;
    char [] zzBufferL = zzBuffer;
    char [] zzCMapL = ZZ_CMAP;

    int [] zzTransL = ZZ_TRANS;
    int [] zzRowMapL = ZZ_ROWMAP;
    int [] zzAttrL = ZZ_ATTRIBUTE;
    int zzPushbackPosL = zzPushbackPos = -1;
    boolean zzWasPushback;

    while (true) {
      zzMarkedPosL = zzMarkedPos;

      boolean zzR = false;
      for (zzCurrentPosL = zzStartRead; zzCurrentPosL < zzMarkedPosL;
                                                             zzCurrentPosL++) {
        switch (zzBufferL[zzCurrentPosL]) {
        case '\u000B':
        case '\u000C':
        case '\u0085':
        case '\u2028':
        case '\u2029':
          yyline++;
          yycolumn = 0;
          zzR = false;
          break;
        case '\r':
          yyline++;
          yycolumn = 0;
          zzR = true;
          break;
        case '\n':
          if (zzR)
            zzR = false;
          else {
            yyline++;
            yycolumn = 0;
          }
          break;
        default:
          zzR = false;
          yycolumn++;
        }
      }

      if (zzR) {
        // peek one character ahead if it is \n (if we have counted one line too much)
        boolean zzPeek;
        if (zzMarkedPosL < zzEndReadL)
          zzPeek = zzBufferL[zzMarkedPosL] == '\n';
        else if (zzAtEOF)
          zzPeek = false;
        else {
          boolean eof = zzRefill();
          zzEndReadL = zzEndRead;
          zzMarkedPosL = zzMarkedPos;
          zzBufferL = zzBuffer;
          if (eof) 
            zzPeek = false;
          else 
            zzPeek = zzBufferL[zzMarkedPosL] == '\n';
        }
        if (zzPeek) yyline--;
      }
      zzAction = -1;

      zzCurrentPosL = zzCurrentPos = zzStartRead = zzMarkedPosL;
  
      zzState = zzLexicalState;

      zzWasPushback = false;

      zzForAction: {
        while (true) {
    
          if (zzCurrentPosL < zzEndReadL)
            zzInput = zzBufferL[zzCurrentPosL++];
          else if (zzAtEOF) {
            zzInput = YYEOF;
            break zzForAction;
          }
          else {
            // store back cached positions
            zzCurrentPos  = zzCurrentPosL;
            zzMarkedPos   = zzMarkedPosL;
            zzPushbackPos = zzPushbackPosL;
            boolean eof = zzRefill();
            // get translated positions and possibly new buffer
            zzCurrentPosL  = zzCurrentPos;
            zzMarkedPosL   = zzMarkedPos;
            zzBufferL      = zzBuffer;
            zzEndReadL     = zzEndRead;
            zzPushbackPosL = zzPushbackPos;
            if (eof) {
              zzInput = YYEOF;
              break zzForAction;
            }
            else {
              zzInput = zzBufferL[zzCurrentPosL++];
            }
          }
          int zzNext = zzTransL[ zzRowMapL[zzState] + zzCMapL[zzInput] ];
          if (zzNext == -1) break zzForAction;
          zzState = zzNext;

          int zzAttributes = zzAttrL[zzState];
          if ( (zzAttributes & 2) == 2 )
            zzPushbackPosL = zzCurrentPosL;

          if ( (zzAttributes & 1) == 1 ) {
            zzWasPushback = (zzAttributes & 4) == 4;
            zzAction = zzState;
            zzMarkedPosL = zzCurrentPosL;
            if ( (zzAttributes & 8) == 8 ) break zzForAction;
          }

        }
      }

      // store back cached position
      zzMarkedPos = zzMarkedPosL;
      if (zzWasPushback)
        zzMarkedPos = zzPushbackPosL;

      switch (zzAction < 0 ? zzAction : ZZ_ACTION[zzAction]) {
        case 12: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_layout_option_section.layout_option_section_action_17();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 100: break;
        case 89: 
          { Maybe<? extends Symbol> maybeResult;
        try {
            maybeResult = state_layout.inst_layout_option_section.layout_option_section_action_11();
        } finally {
            state_layout.processMTok(23); //START_STRING_DIRECTIVE
        }
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 101: break;
        case 81: 
          { Maybe<? extends Symbol> maybeResult;
        try {
            maybeResult = state_layout.inst_init_region.init_region_action_2();
        } finally {
            state_layout.processMTok(19); //END_INIT_REGION
        }
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 102: break;
        case 68: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_decl_region.decl_region_action_1();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 103: break;
        case 86: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_init_region.init_region_action_1();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 104: break;
        case 47: 
          { Maybe<? extends Symbol> maybeResult;
        try {
            maybeResult = state_layout.inst_bracket_comment.bracket_comment_action_1();
        } finally {
            state_layout.processMTok(14); //START_BRACKET_COMMENT
        }
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 105: break;
        case 88: 
          { Maybe<? extends Symbol> maybeResult;
        try {
            maybeResult = state_layout.inst_layout_option_section.layout_option_section_action_7();
        } finally {
            state_layout.processMTok(22); //START_IDENTIFIER_DIRECTIVE
        }
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 106: break;
        case 32: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_metapattern_directive.metapattern_directive_action_15();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 107: break;
        case 43: 
          { Maybe<? extends Symbol> maybeResult;
        try {
            maybeResult = state_layout.inst_string_directive.string_directive_action_2();
        } finally {
            state_layout.processMTok(32); //END_STRING_DIRECTIVE
        }
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 108: break;
        case 39: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_string.string_action_5();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 109: break;
        case 97: 
          { Maybe<? extends Symbol> maybeResult;
        try {
            maybeResult = state_layout.inst_layout_rule_section.layout_rule_section_action_7();
        } finally {
            state_layout.processMTok(22); //START_IDENTIFIER_DIRECTIVE
        }
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 110: break;
        case 19: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_local_header.local_header_action_2();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 111: break;
        case 98: 
          { Maybe<? extends Symbol> maybeResult;
        try {
            maybeResult = state_layout.inst_layout_option_section.layout_option_section_action_12();
        } finally {
            state_layout.processMTok(23); //START_STRING_DIRECTIVE
        }
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 112: break;
        case 60: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_metapattern_directive.metapattern_directive_action_16();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 113: break;
        case 38: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_string.string_action_6();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 114: break;
        case 22: 
          { Maybe<? extends Symbol> maybeResult;
        try {
            maybeResult = state_layout.inst_metapattern_directive.metapattern_directive_action_2();
        } finally {
            state_layout.processMTok(29); //END_METAPATTERN_DIRECTIVE
        }
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 115: break;
        case 40: 
          { Maybe<? extends Symbol> maybeResult;
        try {
            maybeResult = state_layout.inst_string.string_action_1();
        } finally {
            state_layout.processMTok(31); //END_STRING
        }
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 116: break;
        case 35: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_pair_directive.pair_directive_action_3();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 117: break;
        case 67: 
          { Maybe<? extends Symbol> maybeResult;
        try {
            maybeResult = state_layout.inst_string_directive.string_directive_action_1();
        } finally {
            state_layout.processMTok(14); //START_BRACKET_COMMENT
        }
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 118: break;
        case 75: 
          { Maybe<? extends Symbol> maybeResult;
        try {
            maybeResult = state_layout.inst_layout_rule_section.layout_rule_section_action_11();
        } finally {
            state_layout.processMTok(25); //START_PAIR_DIRECTIVE
        }
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 119: break;
        case 45: 
          { Maybe<? extends Symbol> maybeResult;
        try {
            maybeResult = state_layout.inst_string_directive.string_directive_action_4();
        } finally {
            state_layout.processMTok(33); //START_STRING
        }
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 120: break;
        case 4: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_decl_region.decl_region_action_3();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 121: break;
        case 11: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_init_region.init_region_action_3();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 122: break;
        case 72: 
          { Maybe<? extends Symbol> maybeResult;
        try {
            maybeResult = state_layout.inst_layout_rule_section.layout_rule_section_action_13();
        } finally {
            state_layout.processMTok(26); //START_METAPATTERN_DIRECTIVE
        }
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 123: break;
        case 73: 
          { Maybe<? extends Symbol> maybeResult;
        try {
            maybeResult = state_layout.inst_layout_rule_section.layout_rule_section_action_8();
        } finally {
            state_layout.processMTok(22); //START_IDENTIFIER_DIRECTIVE
        }
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 124: break;
        case 70: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_metapattern_directive.metapattern_directive_action_17();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 125: break;
        case 95: 
          { Maybe<? extends Symbol> maybeResult;
        try {
            maybeResult = state_layout.inst_layout_option_section.layout_option_section_action_13();
        } finally {
            state_layout.processMTok(23); //START_STRING_DIRECTIVE
        }
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 126: break;
        case 14: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_layout_option_section.layout_option_section_action_2();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 127: break;
        case 17: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_layout_rule_section.layout_rule_section_action_2();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 128: break;
        case 37: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_pair_directive.pair_directive_action_4();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 129: break;
        case 58: 
          { Maybe<? extends Symbol> maybeResult;
        try {
            maybeResult = state_layout.inst_layout_rule_section.layout_rule_section_action_1();
        } finally {
            state_layout.processMTok(14); //START_BRACKET_COMMENT
        }
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 130: break;
        case 83: 
          { Maybe<? extends Symbol> maybeResult;
        try {
            maybeResult = state_layout.inst_layout_option_section.layout_option_section_action_8();
        } finally {
            state_layout.processMTok(22); //START_IDENTIFIER_DIRECTIVE
        }
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 131: break;
        case 7: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_identifier_directive.identifier_directive_action_3();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 132: break;
        case 82: 
          { Maybe<? extends Symbol> maybeResult;
        try {
            maybeResult = state_layout.inst_layout_option_section.layout_option_section_action_5();
        } finally {
            state_layout.processMTok(21); //START_INIT_REGION
        }
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 133: break;
        case 34: 
          { Maybe<? extends Symbol> maybeResult;
        try {
            maybeResult = state_layout.inst_pair_directive.pair_directive_action_2();
        } finally {
            state_layout.processMTok(30); //END_PAIR_DIRECTIVE
        }
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 134: break;
        case 61: 
          { Maybe<? extends Symbol> maybeResult;
        try {
            maybeResult = state_layout.inst_metapattern_directive.metapattern_directive_action_1();
        } finally {
            state_layout.processMTok(14); //START_BRACKET_COMMENT
        }
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 135: break;
        case 76: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_metapattern_directive.metapattern_directive_action_18();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 136: break;
        case 15: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_layout_option_section.layout_option_section_action_3();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 137: break;
        case 18: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_layout_rule_section.layout_rule_section_action_3();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 138: break;
        case 62: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_pair_directive.pair_directive_action_5();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 139: break;
        case 20: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_metapattern_directive.metapattern_directive_action_20();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 140: break;
        case 23: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_metapattern_directive.metapattern_directive_action_3();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 141: break;
        case 9: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_identifier_directive.identifier_directive_action_4();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 142: break;
        case 99: 
          { Maybe<? extends Symbol> maybeResult;
        try {
            maybeResult = state_layout.inst_layout_option_section.layout_option_section_action_9();
        } finally {
            state_layout.processMTok(22); //START_IDENTIFIER_DIRECTIVE
        }
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 143: break;
        case 24: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_metapattern_directive.metapattern_directive_action_19();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 144: break;
        case 84: 
          { Maybe<? extends Symbol> maybeResult;
        try {
            maybeResult = state_layout.inst_layout_rule_section.layout_rule_section_action_12();
        } finally {
            state_layout.processMTok(26); //START_METAPATTERN_DIRECTIVE
        }
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 145: break;
        case 90: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_layout_rule_section.layout_rule_section_action_4();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 146: break;
        case 71: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_pair_directive.pair_directive_action_6();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 147: break;
        case 59: 
          { Maybe<? extends Symbol> maybeResult;
        try {
            maybeResult = state_layout.inst_local_header.local_header_action_1();
        } finally {
            state_layout.processMTok(28); //END_LOCAL_HEADER
        }
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 148: break;
        case 1: 
          { yybegin(state_layout.getPrevState());
        return state_layout.getExtraReturn();
          }
        case 149: break;
        case 3: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_bracket_comment.bracket_comment_action_3();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 150: break;
        case 44: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_string_directive.string_directive_action_3();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 151: break;
        case 77: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_metapattern_directive.metapattern_directive_action_4();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 152: break;
        case 50: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_identifier_directive.identifier_directive_action_5();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 153: break;
        case 74: 
          { Maybe<? extends Symbol> maybeResult;
        try {
            maybeResult = state_layout.inst_layout_rule_section.layout_rule_section_action_9();
        } finally {
            state_layout.processMTok(22); //START_IDENTIFIER_DIRECTIVE
        }
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 154: break;
        case 52: 
          { Maybe<? extends Symbol> maybeResult;
        try {
            maybeResult = state_layout.inst_inherited_header.inherited_header_action_1();
        } finally {
            state_layout.processMTok(18); //END_INHERITED_HEADER
        }
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 155: break;
        case 80: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_pair_directive.pair_directive_action_7();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 156: break;
        case 78: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_metapattern_directive.metapattern_directive_action_5();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 157: break;
        case 8: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_identifier_directive.identifier_directive_action_6();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 158: break;
        case 49: 
          { Maybe<? extends Symbol> maybeResult;
        try {
            maybeResult = state_layout.inst_decl_region.decl_region_action_2();
        } finally {
            state_layout.processMTok(16); //END_DECL_REGION
        }
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 159: break;
        case 96: 
          { Maybe<? extends Symbol> maybeResult;
        try {
            maybeResult = state_layout.inst_layout_rule_section.layout_rule_section_action_14();
        } finally {
            state_layout.processMTok(22); //START_IDENTIFIER_DIRECTIVE
        }
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 160: break;
        case 57: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_layout_rule_section.layout_rule_section_action_16();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 161: break;
        case 28: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_metapattern_directive.metapattern_directive_action_10();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 162: break;
        case 87: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_layout_option_section.layout_option_section_action_6();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 163: break;
        case 36: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_pair_directive.pair_directive_action_8();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 164: break;
        case 63: 
          { Maybe<? extends Symbol> maybeResult;
        try {
            maybeResult = state_layout.inst_pair_directive.pair_directive_action_1();
        } finally {
            state_layout.processMTok(14); //START_BRACKET_COMMENT
        }
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 165: break;
        case 46: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_string_directive.string_directive_action_5();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 166: break;
        case 79: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_metapattern_directive.metapattern_directive_action_6();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 167: break;
        case 69: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_identifier_directive.identifier_directive_action_7();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 168: break;
        case 48: 
          { Maybe<? extends Symbol> maybeResult;
        try {
            maybeResult = state_layout.inst_bracket_comment.bracket_comment_action_2();
        } finally {
            state_layout.processMTok(15); //END_BRACKET_COMMENT
        }
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 169: break;
        case 16: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_layout_rule_section.layout_rule_section_action_17();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 170: break;
        case 29: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_metapattern_directive.metapattern_directive_action_11();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 171: break;
        case 51: 
          { Maybe<? extends Symbol> maybeResult;
        try {
            maybeResult = state_layout.inst_identifier_directive.identifier_directive_action_1();
        } finally {
            state_layout.processMTok(14); //START_BRACKET_COMMENT
        }
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 172: break;
        case 33: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_pair_directive.pair_directive_action_9();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 173: break;
        case 94: 
          { Maybe<? extends Symbol> maybeResult;
        try {
            maybeResult = state_layout.inst_layout_rule_section.layout_rule_section_action_5();
        } finally {
            state_layout.processMTok(22); //START_IDENTIFIER_DIRECTIVE
        }
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 174: break;
        case 66: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_string_directive.string_directive_action_6();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 175: break;
        case 91: 
          { Maybe<? extends Symbol> maybeResult;
        try {
            maybeResult = state_layout.inst_layout_rule_section.layout_rule_section_action_15();
        } finally {
            state_layout.processMTok(22); //START_IDENTIFIER_DIRECTIVE
        }
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 176: break;
        case 25: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_metapattern_directive.metapattern_directive_action_7();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 177: break;
        case 13: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_layout_option_section.layout_option_section_action_14();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 178: break;
        case 5: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_identifier_directive.identifier_directive_action_8();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 179: break;
        case 10: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_inherited_header.inherited_header_action_2();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 180: break;
        case 21: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_metapattern_directive.metapattern_directive_action_12();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 181: break;
        case 65: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_string.string_action_2();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 182: break;
        case 42: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_string_directive.string_directive_action_7();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 183: break;
        case 55: 
          { Maybe<? extends Symbol> maybeResult;
        try {
            maybeResult = state_layout.inst_layout_option_section.layout_option_section_action_15();
        } finally {
            state_layout.processMTok(24); //END_OPTION_SECTION
        }
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 184: break;
        case 2: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_base.base_action_1();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 185: break;
        case 26: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_metapattern_directive.metapattern_directive_action_8();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 186: break;
        case 85: 
          { Maybe<? extends Symbol> maybeResult;
        try {
            maybeResult = state_layout.inst_layout_rule_section.layout_rule_section_action_10();
        } finally {
            state_layout.processMTok(22); //START_IDENTIFIER_DIRECTIVE
        }
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 187: break;
        case 93: 
          { Maybe<? extends Symbol> maybeResult;
        try {
            maybeResult = state_layout.inst_layout_rule_section.layout_rule_section_action_6();
        } finally {
            state_layout.processMTok(22); //START_IDENTIFIER_DIRECTIVE
        }
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 188: break;
        case 30: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_metapattern_directive.metapattern_directive_action_13();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 189: break;
        case 92: 
          { Maybe<? extends Symbol> maybeResult;
        try {
            maybeResult = state_layout.inst_layout_option_section.layout_option_section_action_10();
        } finally {
            state_layout.processMTok(23); //START_STRING_DIRECTIVE
        }
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 190: break;
        case 54: 
          { Maybe<? extends Symbol> maybeResult;
        try {
            maybeResult = state_layout.inst_layout_option_section.layout_option_section_action_1();
        } finally {
            state_layout.processMTok(14); //START_BRACKET_COMMENT
        }
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 191: break;
        case 64: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_string.string_action_3();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 192: break;
        case 27: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_metapattern_directive.metapattern_directive_action_9();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 193: break;
        case 6: 
          { Maybe<? extends Symbol> maybeResult;
        try {
            maybeResult = state_layout.inst_identifier_directive.identifier_directive_action_2();
        } finally {
            state_layout.processMTok(17); //END_IDENTIFIER_DIRECTIVE
        }
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 194: break;
        case 53: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_layout_option_section.layout_option_section_action_16();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 195: break;
        case 56: 
          { Maybe<? extends Symbol> maybeResult;
        try {
            maybeResult = state_layout.inst_layout_option_section.layout_option_section_action_4();
        } finally {
            state_layout.processMTok(20); //START_DECL_REGION
        }
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 196: break;
        case 31: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_metapattern_directive.metapattern_directive_action_14();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 197: break;
        case 41: 
          { Maybe<? extends Symbol> maybeResult = state_layout.inst_string.string_action_4();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
          }
        case 198: break;
        default: 
          if (zzInput == YYEOF && zzStartRead == zzCurrentPos) {
            zzAtEOF = true;
            switch (zzLexicalState) {
            case layout_rule_section_YYINITIAL_STATE: {
              Maybe<? extends Symbol> maybeResult;
        try {
            maybeResult = state_layout.inst_layout_rule_section.layout_rule_section_action_18();
        } finally {
            state_layout.processMTok(27); //END_RULE_SECTION
        }
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
            }
            case 311: break;
            case base_YYINITIAL_STATE: {
              Maybe<? extends Symbol> maybeResult = state_layout.inst_base.base_action_2();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
            }
            case 312: break;
            case string_directive_YYINITIAL_STATE: {
              Maybe<? extends Symbol> maybeResult;
        try {
            maybeResult = state_layout.inst_string_directive.string_directive_action_8();
        } finally {
            state_layout.processMTok(32); //END_STRING_DIRECTIVE
        }
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
            }
            case 313: break;
            case local_header_YYINITIAL_STATE: {
              Maybe<? extends Symbol> maybeResult = state_layout.inst_local_header.local_header_action_3();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
            }
            case 314: break;
            case decl_region_YYINITIAL_STATE: {
              Maybe<? extends Symbol> maybeResult = state_layout.inst_decl_region.decl_region_action_4();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
            }
            case 315: break;
            case EXTRA_RETURN: {
              yybegin(state_layout.getPrevState());
        return state_layout.getExtraReturn();
            }
            case 316: break;
            case inherited_header_YYINITIAL_STATE: {
              Maybe<? extends Symbol> maybeResult = state_layout.inst_inherited_header.inherited_header_action_3();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
            }
            case 317: break;
            case layout_option_section_YYINITIAL_STATE: {
              Maybe<? extends Symbol> maybeResult;
        try {
            maybeResult = state_layout.inst_layout_option_section.layout_option_section_action_18();
        } finally {
            state_layout.processMTok(24); //END_OPTION_SECTION
        }
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
            }
            case 318: break;
            case string_YYINITIAL_STATE: {
              Maybe<? extends Symbol> maybeResult = state_layout.inst_string.string_action_7();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
            }
            case 319: break;
            case bracket_comment_YYINITIAL_STATE: {
              Maybe<? extends Symbol> maybeResult = state_layout.inst_bracket_comment.bracket_comment_action_4();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
            }
            case 320: break;
            case init_region_YYINITIAL_STATE: {
              Maybe<? extends Symbol> maybeResult = state_layout.inst_init_region.init_region_action_4();
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
            }
            case 321: break;
            case metapattern_directive_YYINITIAL_STATE: {
              Maybe<? extends Symbol> maybeResult;
        try {
            maybeResult = state_layout.inst_metapattern_directive.metapattern_directive_action_21();
        } finally {
            state_layout.processMTok(29); //END_METAPATTERN_DIRECTIVE
        }
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
            }
            case 322: break;
            case identifier_directive_YYINITIAL_STATE: {
              Maybe<? extends Symbol> maybeResult;
        try {
            maybeResult = state_layout.inst_identifier_directive.identifier_directive_action_9();
        } finally {
            state_layout.processMTok(17); //END_IDENTIFIER_DIRECTIVE
        }
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
            }
            case 323: break;
            case pair_directive_YYINITIAL_STATE: {
              Maybe<? extends Symbol> maybeResult;
        try {
            maybeResult = state_layout.inst_pair_directive.pair_directive_action_10();
        } finally {
            state_layout.processMTok(30); //END_PAIR_DIRECTIVE
        }
        if(maybeResult.isJust()) {
            return maybeResult.fromJust();
        }
            }
            case 324: break;
            default:
            return null;
            }
          } 
          else {
            zzScanError(ZZ_NO_MATCH);
          }
      }
    }
  }


}
