Advertisement
Guest User

LuaTableLexer.java

a guest
Nov 14th, 2013
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 19.60 KB | None | 0 0
  1. // $ANTLR 3.5 /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g 2013-11-14 15:38:26
  2.  
  3. import org.antlr.runtime.*;
  4. import java.util.Stack;
  5. import java.util.List;
  6. import java.util.ArrayList;
  7.  
  8. @SuppressWarnings("all")
  9. public class LuaTableLexer extends Lexer {
  10.     public static final int EOF=-1;
  11.     public static final int T__20=20;
  12.     public static final int T__21=21;
  13.     public static final int T__22=22;
  14.     public static final int T__23=23;
  15.     public static final int T__24=24;
  16.     public static final int T__25=25;
  17.     public static final int COMMA=4;
  18.     public static final int Digit=5;
  19.     public static final int FALSE=6;
  20.     public static final int FIELD=7;
  21.     public static final int IDENT=8;
  22.     public static final int Ident=9;
  23.     public static final int Letter=10;
  24.     public static final int NULL=11;
  25.     public static final int NUMBER=12;
  26.     public static final int Number=13;
  27.     public static final int OBJECT=14;
  28.     public static final int STRING=15;
  29.     public static final int Special=16;
  30.     public static final int String=17;
  31.     public static final int TRUE=18;
  32.     public static final int WS=19;
  33.  
  34.     // delegates
  35.     // delegators
  36.     public Lexer[] getDelegates() {
  37.         return new Lexer[] {};
  38.     }
  39.  
  40.     public LuaTableLexer() {}
  41.     public LuaTableLexer(CharStream input) {
  42.         this(input, new RecognizerSharedState());
  43.     }
  44.     public LuaTableLexer(CharStream input, RecognizerSharedState state) {
  45.         super(input,state);
  46.     }
  47.     @Override public String getGrammarFileName() { return "/Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g"; }
  48.  
  49.     // $ANTLR start "COMMA"
  50.     public final void mCOMMA() throws RecognitionException {
  51.         try {
  52.             int _type = COMMA;
  53.             int _channel = DEFAULT_TOKEN_CHANNEL;
  54.             // /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g:7:7: ( ',' )
  55.             // /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g:7:9: ','
  56.             {
  57.             match(',');
  58.             }
  59.  
  60.             state.type = _type;
  61.             state.channel = _channel;
  62.         }
  63.         finally {
  64.             // do for sure before leaving
  65.         }
  66.     }
  67.     // $ANTLR end "COMMA"
  68.  
  69.     // $ANTLR start "T__20"
  70.     public final void mT__20() throws RecognitionException {
  71.         try {
  72.             int _type = T__20;
  73.             int _channel = DEFAULT_TOKEN_CHANNEL;
  74.             // /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g:8:7: ( '=' )
  75.             // /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g:8:9: '='
  76.             {
  77.             match('=');
  78.             }
  79.  
  80.             state.type = _type;
  81.             state.channel = _channel;
  82.         }
  83.         finally {
  84.             // do for sure before leaving
  85.         }
  86.     }
  87.     // $ANTLR end "T__20"
  88.  
  89.     // $ANTLR start "T__21"
  90.     public final void mT__21() throws RecognitionException {
  91.         try {
  92.             int _type = T__21;
  93.             int _channel = DEFAULT_TOKEN_CHANNEL;
  94.             // /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g:9:7: ( 'false' )
  95.             // /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g:9:9: 'false'
  96.             {
  97.             match("false");
  98.  
  99.             }
  100.  
  101.             state.type = _type;
  102.             state.channel = _channel;
  103.         }
  104.         finally {
  105.             // do for sure before leaving
  106.         }
  107.     }
  108.     // $ANTLR end "T__21"
  109.  
  110.     // $ANTLR start "T__22"
  111.     public final void mT__22() throws RecognitionException {
  112.         try {
  113.             int _type = T__22;
  114.             int _channel = DEFAULT_TOKEN_CHANNEL;
  115.             // /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g:10:7: ( 'null' )
  116.             // /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g:10:9: 'null'
  117.             {
  118.             match("null");
  119.  
  120.             }
  121.  
  122.             state.type = _type;
  123.             state.channel = _channel;
  124.         }
  125.         finally {
  126.             // do for sure before leaving
  127.         }
  128.     }
  129.     // $ANTLR end "T__22"
  130.  
  131.     // $ANTLR start "T__23"
  132.     public final void mT__23() throws RecognitionException {
  133.         try {
  134.             int _type = T__23;
  135.             int _channel = DEFAULT_TOKEN_CHANNEL;
  136.             // /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g:11:7: ( 'true' )
  137.             // /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g:11:9: 'true'
  138.             {
  139.             match("true");
  140.  
  141.             }
  142.  
  143.             state.type = _type;
  144.             state.channel = _channel;
  145.         }
  146.         finally {
  147.             // do for sure before leaving
  148.         }
  149.     }
  150.     // $ANTLR end "T__23"
  151.  
  152.     // $ANTLR start "T__24"
  153.     public final void mT__24() throws RecognitionException {
  154.         try {
  155.             int _type = T__24;
  156.             int _channel = DEFAULT_TOKEN_CHANNEL;
  157.             // /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g:12:7: ( '{' )
  158.             // /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g:12:9: '{'
  159.             {
  160.             match('{');
  161.             }
  162.  
  163.             state.type = _type;
  164.             state.channel = _channel;
  165.         }
  166.         finally {
  167.             // do for sure before leaving
  168.         }
  169.     }
  170.     // $ANTLR end "T__24"
  171.  
  172.     // $ANTLR start "T__25"
  173.     public final void mT__25() throws RecognitionException {
  174.         try {
  175.             int _type = T__25;
  176.             int _channel = DEFAULT_TOKEN_CHANNEL;
  177.             // /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g:13:7: ( '}' )
  178.             // /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g:13:9: '}'
  179.             {
  180.             match('}');
  181.             }
  182.  
  183.             state.type = _type;
  184.             state.channel = _channel;
  185.         }
  186.         finally {
  187.             // do for sure before leaving
  188.         }
  189.     }
  190.     // $ANTLR end "T__25"
  191.  
  192.     // $ANTLR start "Letter"
  193.     public final void mLetter() throws RecognitionException {
  194.         try {
  195.             // /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g:13:17: ( ( 'a' .. 'z' ) | ( 'A' .. 'Z' ) )
  196.             // /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g:
  197.             {
  198.             if ( (input.LA(1) >= 'A' && input.LA(1) <= 'Z')||(input.LA(1) >= 'a' && input.LA(1) <= 'z') ) {
  199.                 input.consume();
  200.             }
  201.             else {
  202.                 MismatchedSetException mse = new MismatchedSetException(null,input);
  203.                 recover(mse);
  204.                 throw mse;
  205.             }
  206.             }
  207.  
  208.         }
  209.         finally {
  210.             // do for sure before leaving
  211.         }
  212.     }
  213.     // $ANTLR end "Letter"
  214.  
  215.     // $ANTLR start "Digit"
  216.     public final void mDigit() throws RecognitionException {
  217.         try {
  218.             // /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g:14:16: ( '0' .. '9' )
  219.             // /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g:
  220.             {
  221.             if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
  222.                 input.consume();
  223.             }
  224.             else {
  225.                 MismatchedSetException mse = new MismatchedSetException(null,input);
  226.                 recover(mse);
  227.                 throw mse;
  228.             }
  229.             }
  230.  
  231.         }
  232.         finally {
  233.             // do for sure before leaving
  234.         }
  235.     }
  236.     // $ANTLR end "Digit"
  237.  
  238.     // $ANTLR start "Special"
  239.     public final void mSpecial() throws RecognitionException {
  240.         try {
  241.             // /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g:15:17: ( ( '_' | '-' ) )
  242.             // /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g:
  243.             {
  244.             if ( input.LA(1)=='-'||input.LA(1)=='_' ) {
  245.                 input.consume();
  246.             }
  247.             else {
  248.                 MismatchedSetException mse = new MismatchedSetException(null,input);
  249.                 recover(mse);
  250.                 throw mse;
  251.             }
  252.             }
  253.  
  254.         }
  255.         finally {
  256.             // do for sure before leaving
  257.         }
  258.     }
  259.     // $ANTLR end "Special"
  260.  
  261.     // $ANTLR start "WS"
  262.     public final void mWS() throws RecognitionException {
  263.         try {
  264.             int _type = WS;
  265.             int _channel = DEFAULT_TOKEN_CHANNEL;
  266.             // /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g:18:5: ( ( ' ' | '\\n' | '\\r' | '\\t' )+ )
  267.             // /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g:18:7: ( ' ' | '\\n' | '\\r' | '\\t' )+
  268.             {
  269.             // /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g:18:7: ( ' ' | '\\n' | '\\r' | '\\t' )+
  270.             int cnt1=0;
  271.             loop1:
  272.             while (true) {
  273.                 int alt1=2;
  274.                 int LA1_0 = input.LA(1);
  275.                 if ( ((LA1_0 >= '\t' && LA1_0 <= '\n')||LA1_0=='\r'||LA1_0==' ') ) {
  276.                     alt1=1;
  277.                 }
  278.  
  279.                 switch (alt1) {
  280.                 case 1 :
  281.                     // /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g:
  282.                     {
  283.                     if ( (input.LA(1) >= '\t' && input.LA(1) <= '\n')||input.LA(1)=='\r'||input.LA(1)==' ' ) {
  284.                         input.consume();
  285.                     }
  286.                     else {
  287.                         MismatchedSetException mse = new MismatchedSetException(null,input);
  288.                         recover(mse);
  289.                         throw mse;
  290.                     }
  291.                     }
  292.                     break;
  293.  
  294.                 default :
  295.                     if ( cnt1 >= 1 ) break loop1;
  296.                     EarlyExitException eee = new EarlyExitException(1, input);
  297.                     throw eee;
  298.                 }
  299.                 cnt1++;
  300.             }
  301.  
  302.             _channel=HIDDEN;
  303.             }
  304.  
  305.             state.type = _type;
  306.             state.channel = _channel;
  307.         }
  308.         finally {
  309.             // do for sure before leaving
  310.         }
  311.     }
  312.     // $ANTLR end "WS"
  313.  
  314.     // $ANTLR start "Ident"
  315.     public final void mIdent() throws RecognitionException {
  316.         try {
  317.             int _type = Ident;
  318.             int _channel = DEFAULT_TOKEN_CHANNEL;
  319.             // /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g:20:8: ( ( Letter | Special )+ )
  320.             // /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g:20:10: ( Letter | Special )+
  321.             {
  322.             // /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g:20:10: ( Letter | Special )+
  323.             int cnt2=0;
  324.             loop2:
  325.             while (true) {
  326.                 int alt2=2;
  327.                 int LA2_0 = input.LA(1);
  328.                 if ( (LA2_0=='-'||(LA2_0 >= 'A' && LA2_0 <= 'Z')||LA2_0=='_'||(LA2_0 >= 'a' && LA2_0 <= 'z')) ) {
  329.                     alt2=1;
  330.                 }
  331.  
  332.                 switch (alt2) {
  333.                 case 1 :
  334.                     // /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g:
  335.                     {
  336.                     if ( input.LA(1)=='-'||(input.LA(1) >= 'A' && input.LA(1) <= 'Z')||input.LA(1)=='_'||(input.LA(1) >= 'a' && input.LA(1) <= 'z') ) {
  337.                         input.consume();
  338.                     }
  339.                     else {
  340.                         MismatchedSetException mse = new MismatchedSetException(null,input);
  341.                         recover(mse);
  342.                         throw mse;
  343.                     }
  344.                     }
  345.                     break;
  346.  
  347.                 default :
  348.                     if ( cnt2 >= 1 ) break loop2;
  349.                     EarlyExitException eee = new EarlyExitException(2, input);
  350.                     throw eee;
  351.                 }
  352.                 cnt2++;
  353.             }
  354.  
  355.             }
  356.  
  357.             state.type = _type;
  358.             state.channel = _channel;
  359.         }
  360.         finally {
  361.             // do for sure before leaving
  362.         }
  363.     }
  364.     // $ANTLR end "Ident"
  365.  
  366.     // $ANTLR start "String"
  367.     public final void mString() throws RecognitionException {
  368.         try {
  369.             int _type = String;
  370.             int _channel = DEFAULT_TOKEN_CHANNEL;
  371.             // /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g:21:10: ( '\"' (~ ( '\\u0000' .. '\\u001f' | '\\\\' | '\\\"' ) )* '\"' )
  372.             // /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g:21:13: '\"' (~ ( '\\u0000' .. '\\u001f' | '\\\\' | '\\\"' ) )* '\"'
  373.             {
  374.             match('\"');
  375.             // /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g:21:17: (~ ( '\\u0000' .. '\\u001f' | '\\\\' | '\\\"' ) )*
  376.             loop3:
  377.             while (true) {
  378.                 int alt3=2;
  379.                 int LA3_0 = input.LA(1);
  380.                 if ( ((LA3_0 >= ' ' && LA3_0 <= '!')||(LA3_0 >= '#' && LA3_0 <= '[')||(LA3_0 >= ']' && LA3_0 <= '\uFFFF')) ) {
  381.                     alt3=1;
  382.                 }
  383.  
  384.                 switch (alt3) {
  385.                 case 1 :
  386.                     // /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g:
  387.                     {
  388.                     if ( (input.LA(1) >= ' ' && input.LA(1) <= '!')||(input.LA(1) >= '#' && input.LA(1) <= '[')||(input.LA(1) >= ']' && input.LA(1) <= '\uFFFF') ) {
  389.                         input.consume();
  390.                     }
  391.                     else {
  392.                         MismatchedSetException mse = new MismatchedSetException(null,input);
  393.                         recover(mse);
  394.                         throw mse;
  395.                     }
  396.                     }
  397.                     break;
  398.  
  399.                 default :
  400.                     break loop3;
  401.                 }
  402.             }
  403.  
  404.             match('\"');
  405.             }
  406.  
  407.             state.type = _type;
  408.             state.channel = _channel;
  409.         }
  410.         finally {
  411.             // do for sure before leaving
  412.         }
  413.     }
  414.     // $ANTLR end "String"
  415.  
  416.     // $ANTLR start "Number"
  417.     public final void mNumber() throws RecognitionException {
  418.         try {
  419.             int _type = Number;
  420.             int _channel = DEFAULT_TOKEN_CHANNEL;
  421.             // /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g:22:10: ( ( '-' )? ( Digit )+ ( '.' ( Digit )* )? )
  422.             // /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g:22:13: ( '-' )? ( Digit )+ ( '.' ( Digit )* )?
  423.             {
  424.             // /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g:22:13: ( '-' )?
  425.             int alt4=2;
  426.             int LA4_0 = input.LA(1);
  427.             if ( (LA4_0=='-') ) {
  428.                 alt4=1;
  429.             }
  430.             switch (alt4) {
  431.                 case 1 :
  432.                     // /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g:22:13: '-'
  433.                     {
  434.                     match('-');
  435.                     }
  436.                     break;
  437.  
  438.             }
  439.  
  440.             // /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g:22:18: ( Digit )+
  441.             int cnt5=0;
  442.             loop5:
  443.             while (true) {
  444.                 int alt5=2;
  445.                 int LA5_0 = input.LA(1);
  446.                 if ( ((LA5_0 >= '0' && LA5_0 <= '9')) ) {
  447.                     alt5=1;
  448.                 }
  449.  
  450.                 switch (alt5) {
  451.                 case 1 :
  452.                     // /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g:
  453.                     {
  454.                     if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
  455.                         input.consume();
  456.                     }
  457.                     else {
  458.                         MismatchedSetException mse = new MismatchedSetException(null,input);
  459.                         recover(mse);
  460.                         throw mse;
  461.                     }
  462.                     }
  463.                     break;
  464.  
  465.                 default :
  466.                     if ( cnt5 >= 1 ) break loop5;
  467.                     EarlyExitException eee = new EarlyExitException(5, input);
  468.                     throw eee;
  469.                 }
  470.                 cnt5++;
  471.             }
  472.  
  473.             // /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g:22:25: ( '.' ( Digit )* )?
  474.             int alt7=2;
  475.             int LA7_0 = input.LA(1);
  476.             if ( (LA7_0=='.') ) {
  477.                 alt7=1;
  478.             }
  479.             switch (alt7) {
  480.                 case 1 :
  481.                     // /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g:22:27: '.' ( Digit )*
  482.                     {
  483.                     match('.');
  484.                     // /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g:22:31: ( Digit )*
  485.                     loop6:
  486.                     while (true) {
  487.                         int alt6=2;
  488.                         int LA6_0 = input.LA(1);
  489.                         if ( ((LA6_0 >= '0' && LA6_0 <= '9')) ) {
  490.                             alt6=1;
  491.                         }
  492.  
  493.                         switch (alt6) {
  494.                         case 1 :
  495.                             // /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g:
  496.                             {
  497.                             if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
  498.                                 input.consume();
  499.                             }
  500.                             else {
  501.                                 MismatchedSetException mse = new MismatchedSetException(null,input);
  502.                                 recover(mse);
  503.                                 throw mse;
  504.                             }
  505.                             }
  506.                             break;
  507.  
  508.                         default :
  509.                             break loop6;
  510.                         }
  511.                     }
  512.  
  513.                     }
  514.                     break;
  515.  
  516.             }
  517.  
  518.             }
  519.  
  520.             state.type = _type;
  521.             state.channel = _channel;
  522.         }
  523.         finally {
  524.             // do for sure before leaving
  525.         }
  526.     }
  527.     // $ANTLR end "Number"
  528.  
  529.     @Override
  530.     public void mTokens() throws RecognitionException {
  531.         // /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g:1:8: ( COMMA | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | WS | Ident | String | Number )
  532.         int alt8=11;
  533.         switch ( input.LA(1) ) {
  534.         case ',':
  535.             {
  536.             alt8=1;
  537.             }
  538.             break;
  539.         case '=':
  540.             {
  541.             alt8=2;
  542.             }
  543.             break;
  544.         case 'f':
  545.             {
  546.             int LA8_3 = input.LA(2);
  547.             if ( (LA8_3=='a') ) {
  548.                 int LA8_13 = input.LA(3);
  549.                 if ( (LA8_13=='l') ) {
  550.                     int LA8_16 = input.LA(4);
  551.                     if ( (LA8_16=='s') ) {
  552.                         int LA8_19 = input.LA(5);
  553.                         if ( (LA8_19=='e') ) {
  554.                             int LA8_22 = input.LA(6);
  555.                             if ( (LA8_22=='-'||(LA8_22 >= 'A' && LA8_22 <= 'Z')||LA8_22=='_'||(LA8_22 >= 'a' && LA8_22 <= 'z')) ) {
  556.                                 alt8=9;
  557.                             }
  558.  
  559.                             else {
  560.                                 alt8=3;
  561.                             }
  562.  
  563.                         }
  564.  
  565.                         else {
  566.                             alt8=9;
  567.                         }
  568.  
  569.                     }
  570.  
  571.                     else {
  572.                         alt8=9;
  573.                     }
  574.  
  575.                 }
  576.  
  577.                 else {
  578.                     alt8=9;
  579.                 }
  580.  
  581.             }
  582.  
  583.             else {
  584.                 alt8=9;
  585.             }
  586.  
  587.             }
  588.             break;
  589.         case 'n':
  590.             {
  591.             int LA8_4 = input.LA(2);
  592.             if ( (LA8_4=='u') ) {
  593.                 int LA8_14 = input.LA(3);
  594.                 if ( (LA8_14=='l') ) {
  595.                     int LA8_17 = input.LA(4);
  596.                     if ( (LA8_17=='l') ) {
  597.                         int LA8_20 = input.LA(5);
  598.                         if ( (LA8_20=='-'||(LA8_20 >= 'A' && LA8_20 <= 'Z')||LA8_20=='_'||(LA8_20 >= 'a' && LA8_20 <= 'z')) ) {
  599.                             alt8=9;
  600.                         }
  601.  
  602.                         else {
  603.                             alt8=4;
  604.                         }
  605.  
  606.                     }
  607.  
  608.                     else {
  609.                         alt8=9;
  610.                     }
  611.  
  612.                 }
  613.  
  614.                 else {
  615.                     alt8=9;
  616.                 }
  617.  
  618.             }
  619.  
  620.             else {
  621.                 alt8=9;
  622.             }
  623.  
  624.             }
  625.             break;
  626.         case 't':
  627.             {
  628.             int LA8_5 = input.LA(2);
  629.             if ( (LA8_5=='r') ) {
  630.                 int LA8_15 = input.LA(3);
  631.                 if ( (LA8_15=='u') ) {
  632.                     int LA8_18 = input.LA(4);
  633.                     if ( (LA8_18=='e') ) {
  634.                         int LA8_21 = input.LA(5);
  635.                         if ( (LA8_21=='-'||(LA8_21 >= 'A' && LA8_21 <= 'Z')||LA8_21=='_'||(LA8_21 >= 'a' && LA8_21 <= 'z')) ) {
  636.                             alt8=9;
  637.                         }
  638.  
  639.                         else {
  640.                             alt8=5;
  641.                         }
  642.  
  643.                     }
  644.  
  645.                     else {
  646.                         alt8=9;
  647.                     }
  648.  
  649.                 }
  650.  
  651.                 else {
  652.                     alt8=9;
  653.                 }
  654.  
  655.             }
  656.  
  657.             else {
  658.                 alt8=9;
  659.             }
  660.  
  661.             }
  662.             break;
  663.         case '{':
  664.             {
  665.             alt8=6;
  666.             }
  667.             break;
  668.         case '}':
  669.             {
  670.             alt8=7;
  671.             }
  672.             break;
  673.         case '\t':
  674.         case '\n':
  675.         case '\r':
  676.         case ' ':
  677.             {
  678.             alt8=8;
  679.             }
  680.             break;
  681.         case '-':
  682.             {
  683.             int LA8_9 = input.LA(2);
  684.             if ( ((LA8_9 >= '0' && LA8_9 <= '9')) ) {
  685.                 alt8=11;
  686.             }
  687.  
  688.             else {
  689.                 alt8=9;
  690.             }
  691.  
  692.             }
  693.             break;
  694.         case '\"':
  695.             {
  696.             alt8=10;
  697.             }
  698.             break;
  699.         case 'A':
  700.         case 'B':
  701.         case 'C':
  702.         case 'D':
  703.         case 'E':
  704.         case 'F':
  705.         case 'G':
  706.         case 'H':
  707.         case 'I':
  708.         case 'J':
  709.         case 'K':
  710.         case 'L':
  711.         case 'M':
  712.         case 'N':
  713.         case 'O':
  714.         case 'P':
  715.         case 'Q':
  716.         case 'R':
  717.         case 'S':
  718.         case 'T':
  719.         case 'U':
  720.         case 'V':
  721.         case 'W':
  722.         case 'X':
  723.         case 'Y':
  724.         case 'Z':
  725.         case '_':
  726.         case 'a':
  727.         case 'b':
  728.         case 'c':
  729.         case 'd':
  730.         case 'e':
  731.         case 'g':
  732.         case 'h':
  733.         case 'i':
  734.         case 'j':
  735.         case 'k':
  736.         case 'l':
  737.         case 'm':
  738.         case 'o':
  739.         case 'p':
  740.         case 'q':
  741.         case 'r':
  742.         case 's':
  743.         case 'u':
  744.         case 'v':
  745.         case 'w':
  746.         case 'x':
  747.         case 'y':
  748.         case 'z':
  749.             {
  750.             alt8=9;
  751.             }
  752.             break;
  753.         case '0':
  754.         case '1':
  755.         case '2':
  756.         case '3':
  757.         case '4':
  758.         case '5':
  759.         case '6':
  760.         case '7':
  761.         case '8':
  762.         case '9':
  763.             {
  764.             alt8=11;
  765.             }
  766.             break;
  767.         default:
  768.             NoViableAltException nvae =
  769.                 new NoViableAltException("", 8, 0, input);
  770.             throw nvae;
  771.         }
  772.         switch (alt8) {
  773.             case 1 :
  774.                 // /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g:1:10: COMMA
  775.                 {
  776.                 mCOMMA();
  777.  
  778.                 }
  779.                 break;
  780.             case 2 :
  781.                 // /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g:1:16: T__20
  782.                 {
  783.                 mT__20();
  784.  
  785.                 }
  786.                 break;
  787.             case 3 :
  788.                 // /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g:1:22: T__21
  789.                 {
  790.                 mT__21();
  791.  
  792.                 }
  793.                 break;
  794.             case 4 :
  795.                 // /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g:1:28: T__22
  796.                 {
  797.                 mT__22();
  798.  
  799.                 }
  800.                 break;
  801.             case 5 :
  802.                 // /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g:1:34: T__23
  803.                 {
  804.                 mT__23();
  805.  
  806.                 }
  807.                 break;
  808.             case 6 :
  809.                 // /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g:1:40: T__24
  810.                 {
  811.                 mT__24();
  812.  
  813.                 }
  814.                 break;
  815.             case 7 :
  816.                 // /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g:1:46: T__25
  817.                 {
  818.                 mT__25();
  819.  
  820.                 }
  821.                 break;
  822.             case 8 :
  823.                 // /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g:1:52: WS
  824.                 {
  825.                 mWS();
  826.  
  827.                 }
  828.                 break;
  829.             case 9 :
  830.                 // /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g:1:55: Ident
  831.                 {
  832.                 mIdent();
  833.  
  834.                 }
  835.                 break;
  836.             case 10 :
  837.                 // /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g:1:61: String
  838.                 {
  839.                 mString();
  840.  
  841.                 }
  842.                 break;
  843.             case 11 :
  844.                 // /Volumes/Data/Users/hickscorp/Desktop/DTS/DTS/Sources/Parsers/LuaTable/LuaTable.g:1:68: Number
  845.                 {
  846.                 mNumber();
  847.  
  848.                 }
  849.                 break;
  850.  
  851.         }
  852.     }
  853.  
  854.  
  855.  
  856. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement