// $ANTLR 3.0.1 /home/glibersat/FAC/MRI/SEE/STANdsl/STAN/src/fr/lifl/stc/stan/dsl/dsl.g 2008-01-12 11:15:52 package fr.lifl.stc.stan.dsl; import org.antlr.runtime.*; import java.util.Stack; import java.util.List; import java.util.ArrayList; public class dslLexer extends Lexer { public static final int COMMA=5; public static final int T10=10; public static final int T14=14; public static final int LETTER=8; public static final int T11=11; public static final int T15=15; public static final int EOF=-1; public static final int WS=9; public static final int EOL=6; public static final int T12=12; public static final int Tokens=16; public static final int COMMENT=7; public static final int IDENTIFIER=4; public static final int T13=13; public dslLexer() {;} public dslLexer(CharStream input) { super(input); } public String getGrammarFileName() { return "/home/glibersat/FAC/MRI/SEE/STANdsl/STAN/src/fr/lifl/stc/stan/dsl/dsl.g"; } // $ANTLR start T10 public final void mT10() throws RecognitionException { try { int _type = T10; // /home/glibersat/FAC/MRI/SEE/STANdsl/STAN/src/fr/lifl/stc/stan/dsl/dsl.g:6:5: ( 'share with' ) // /home/glibersat/FAC/MRI/SEE/STANdsl/STAN/src/fr/lifl/stc/stan/dsl/dsl.g:6:7: 'share with' { match("share with"); } this.type = _type; } finally { } } // $ANTLR end T10 // $ANTLR start T11 public final void mT11() throws RecognitionException { try { int _type = T11; // /home/glibersat/FAC/MRI/SEE/STANdsl/STAN/src/fr/lifl/stc/stan/dsl/dsl.g:7:5: ( 'secret' ) // /home/glibersat/FAC/MRI/SEE/STANdsl/STAN/src/fr/lifl/stc/stan/dsl/dsl.g:7:7: 'secret' { match("secret"); } this.type = _type; } finally { } } // $ANTLR end T11 // $ANTLR start T12 public final void mT12() throws RecognitionException { try { int _type = T12; // /home/glibersat/FAC/MRI/SEE/STANdsl/STAN/src/fr/lifl/stc/stan/dsl/dsl.g:8:5: ( 'strict secret' ) // /home/glibersat/FAC/MRI/SEE/STANdsl/STAN/src/fr/lifl/stc/stan/dsl/dsl.g:8:7: 'strict secret' { match("strict secret"); } this.type = _type; } finally { } } // $ANTLR end T12 // $ANTLR start T13 public final void mT13() throws RecognitionException { try { int _type = T13; // /home/glibersat/FAC/MRI/SEE/STANdsl/STAN/src/fr/lifl/stc/stan/dsl/dsl.g:9:5: ( 'Static' ) // /home/glibersat/FAC/MRI/SEE/STANdsl/STAN/src/fr/lifl/stc/stan/dsl/dsl.g:9:7: 'Static' { match("Static"); } this.type = _type; } finally { } } // $ANTLR end T13 // $ANTLR start T14 public final void mT14() throws RecognitionException { try { int _type = T14; // /home/glibersat/FAC/MRI/SEE/STANdsl/STAN/src/fr/lifl/stc/stan/dsl/dsl.g:10:5: ( 'IO' ) // /home/glibersat/FAC/MRI/SEE/STANdsl/STAN/src/fr/lifl/stc/stan/dsl/dsl.g:10:7: 'IO' { match("IO"); } this.type = _type; } finally { } } // $ANTLR end T14 // $ANTLR start T15 public final void mT15() throws RecognitionException { try { int _type = T15; // /home/glibersat/FAC/MRI/SEE/STANdsl/STAN/src/fr/lifl/stc/stan/dsl/dsl.g:11:5: ( 'Exception' ) // /home/glibersat/FAC/MRI/SEE/STANdsl/STAN/src/fr/lifl/stc/stan/dsl/dsl.g:11:7: 'Exception' { match("Exception"); } this.type = _type; } finally { } } // $ANTLR end T15 // $ANTLR start COMMENT public final void mCOMMENT() throws RecognitionException { try { int _type = COMMENT; // /home/glibersat/FAC/MRI/SEE/STANdsl/STAN/src/fr/lifl/stc/stan/dsl/dsl.g:116:2: ( '//' ( . )* EOL ) // /home/glibersat/FAC/MRI/SEE/STANdsl/STAN/src/fr/lifl/stc/stan/dsl/dsl.g:116:4: '//' ( . )* EOL { match("//"); // /home/glibersat/FAC/MRI/SEE/STANdsl/STAN/src/fr/lifl/stc/stan/dsl/dsl.g:116:9: ( . )* loop1: do { int alt1=2; int LA1_0 = input.LA(1); if ( (LA1_0==';') ) { alt1=2; } else if ( ((LA1_0>='\u0000' && LA1_0<=':')||(LA1_0>='<' && LA1_0<='\uFFFE')) ) { alt1=1; } switch (alt1) { case 1 : // /home/glibersat/FAC/MRI/SEE/STANdsl/STAN/src/fr/lifl/stc/stan/dsl/dsl.g:116:9: . { matchAny(); } break; default : break loop1; } } while (true); mEOL(); skip(); } this.type = _type; } finally { } } // $ANTLR end COMMENT // $ANTLR start IDENTIFIER public final void mIDENTIFIER() throws RecognitionException { try { int _type = IDENTIFIER; // /home/glibersat/FAC/MRI/SEE/STANdsl/STAN/src/fr/lifl/stc/stan/dsl/dsl.g:123:2: ( LETTER ( LETTER | '.' | '0' .. '9' )* ) // /home/glibersat/FAC/MRI/SEE/STANdsl/STAN/src/fr/lifl/stc/stan/dsl/dsl.g:123:4: LETTER ( LETTER | '.' | '0' .. '9' )* { mLETTER(); // /home/glibersat/FAC/MRI/SEE/STANdsl/STAN/src/fr/lifl/stc/stan/dsl/dsl.g:123:11: ( LETTER | '.' | '0' .. '9' )* loop2: do { int alt2=2; int LA2_0 = input.LA(1); if ( (LA2_0=='$'||LA2_0=='.'||(LA2_0>='0' && LA2_0<='9')||(LA2_0>='A' && LA2_0<='Z')||LA2_0=='_'||(LA2_0>='a' && LA2_0<='z')) ) { alt2=1; } switch (alt2) { case 1 : // /home/glibersat/FAC/MRI/SEE/STANdsl/STAN/src/fr/lifl/stc/stan/dsl/dsl.g: { if ( input.LA(1)=='$'||input.LA(1)=='.'||(input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) { input.consume(); } else { MismatchedSetException mse = new MismatchedSetException(null,input); recover(mse); throw mse; } } break; default : break loop2; } } while (true); } this.type = _type; } finally { } } // $ANTLR end IDENTIFIER // $ANTLR start COMMA public final void mCOMMA() throws RecognitionException { try { int _type = COMMA; // /home/glibersat/FAC/MRI/SEE/STANdsl/STAN/src/fr/lifl/stc/stan/dsl/dsl.g:127:2: ( ',' ) // /home/glibersat/FAC/MRI/SEE/STANdsl/STAN/src/fr/lifl/stc/stan/dsl/dsl.g:127:4: ',' { match(','); } this.type = _type; } finally { } } // $ANTLR end COMMA // $ANTLR start EOL public final void mEOL() throws RecognitionException { try { int _type = EOL; // /home/glibersat/FAC/MRI/SEE/STANdsl/STAN/src/fr/lifl/stc/stan/dsl/dsl.g:131:2: ( ';' ) // /home/glibersat/FAC/MRI/SEE/STANdsl/STAN/src/fr/lifl/stc/stan/dsl/dsl.g:131:4: ';' { match(';'); } this.type = _type; } finally { } } // $ANTLR end EOL // $ANTLR start LETTER public final void mLETTER() throws RecognitionException { try { // /home/glibersat/FAC/MRI/SEE/STANdsl/STAN/src/fr/lifl/stc/stan/dsl/dsl.g:136:2: ( '$' | 'A' .. 'Z' | 'a' .. 'z' | '_' ) // /home/glibersat/FAC/MRI/SEE/STANdsl/STAN/src/fr/lifl/stc/stan/dsl/dsl.g: { if ( input.LA(1)=='$'||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) { input.consume(); } else { MismatchedSetException mse = new MismatchedSetException(null,input); recover(mse); throw mse; } } } finally { } } // $ANTLR end LETTER // $ANTLR start WS public final void mWS() throws RecognitionException { try { int _type = WS; // /home/glibersat/FAC/MRI/SEE/STANdsl/STAN/src/fr/lifl/stc/stan/dsl/dsl.g:144:3: ( ( ' ' | '\\t' | '\\n' )+ ) // /home/glibersat/FAC/MRI/SEE/STANdsl/STAN/src/fr/lifl/stc/stan/dsl/dsl.g:144:5: ( ' ' | '\\t' | '\\n' )+ { // /home/glibersat/FAC/MRI/SEE/STANdsl/STAN/src/fr/lifl/stc/stan/dsl/dsl.g:144:5: ( ' ' | '\\t' | '\\n' )+ int cnt3=0; loop3: do { int alt3=2; int LA3_0 = input.LA(1); if ( ((LA3_0>='\t' && LA3_0<='\n')||LA3_0==' ') ) { alt3=1; } switch (alt3) { case 1 : // /home/glibersat/FAC/MRI/SEE/STANdsl/STAN/src/fr/lifl/stc/stan/dsl/dsl.g: { if ( (input.LA(1)>='\t' && input.LA(1)<='\n')||input.LA(1)==' ' ) { input.consume(); } else { MismatchedSetException mse = new MismatchedSetException(null,input); recover(mse); throw mse; } } break; default : if ( cnt3 >= 1 ) break loop3; EarlyExitException eee = new EarlyExitException(3, input); throw eee; } cnt3++; } while (true); skip(); } this.type = _type; } finally { } } // $ANTLR end WS public void mTokens() throws RecognitionException { // /home/glibersat/FAC/MRI/SEE/STANdsl/STAN/src/fr/lifl/stc/stan/dsl/dsl.g:1:8: ( T10 | T11 | T12 | T13 | T14 | T15 | COMMENT | IDENTIFIER | COMMA | EOL | WS ) int alt4=11; switch ( input.LA(1) ) { case 's': { switch ( input.LA(2) ) { case 'e': { int LA4_10 = input.LA(3); if ( (LA4_10=='c') ) { int LA4_16 = input.LA(4); if ( (LA4_16=='r') ) { int LA4_22 = input.LA(5); if ( (LA4_22=='e') ) { int LA4_27 = input.LA(6); if ( (LA4_27=='t') ) { int LA4_32 = input.LA(7); if ( (LA4_32=='$'||LA4_32=='.'||(LA4_32>='0' && LA4_32<='9')||(LA4_32>='A' && LA4_32<='Z')||LA4_32=='_'||(LA4_32>='a' && LA4_32<='z')) ) { alt4=8; } else { alt4=2;} } else { alt4=8;} } else { alt4=8;} } else { alt4=8;} } else { alt4=8;} } break; case 'h': { int LA4_11 = input.LA(3); if ( (LA4_11=='a') ) { int LA4_17 = input.LA(4); if ( (LA4_17=='r') ) { int LA4_23 = input.LA(5); if ( (LA4_23=='e') ) { int LA4_28 = input.LA(6); if ( (LA4_28==' ') ) { alt4=1; } else { alt4=8;} } else { alt4=8;} } else { alt4=8;} } else { alt4=8;} } break; case 't': { int LA4_12 = input.LA(3); if ( (LA4_12=='r') ) { int LA4_18 = input.LA(4); if ( (LA4_18=='i') ) { int LA4_24 = input.LA(5); if ( (LA4_24=='c') ) { int LA4_29 = input.LA(6); if ( (LA4_29=='t') ) { int LA4_34 = input.LA(7); if ( (LA4_34==' ') ) { alt4=3; } else { alt4=8;} } else { alt4=8;} } else { alt4=8;} } else { alt4=8;} } else { alt4=8;} } break; default: alt4=8;} } break; case 'S': { int LA4_2 = input.LA(2); if ( (LA4_2=='t') ) { int LA4_13 = input.LA(3); if ( (LA4_13=='a') ) { int LA4_19 = input.LA(4); if ( (LA4_19=='t') ) { int LA4_25 = input.LA(5); if ( (LA4_25=='i') ) { int LA4_30 = input.LA(6); if ( (LA4_30=='c') ) { int LA4_35 = input.LA(7); if ( (LA4_35=='$'||LA4_35=='.'||(LA4_35>='0' && LA4_35<='9')||(LA4_35>='A' && LA4_35<='Z')||LA4_35=='_'||(LA4_35>='a' && LA4_35<='z')) ) { alt4=8; } else { alt4=4;} } else { alt4=8;} } else { alt4=8;} } else { alt4=8;} } else { alt4=8;} } else { alt4=8;} } break; case 'I': { int LA4_3 = input.LA(2); if ( (LA4_3=='O') ) { int LA4_14 = input.LA(3); if ( (LA4_14=='$'||LA4_14=='.'||(LA4_14>='0' && LA4_14<='9')||(LA4_14>='A' && LA4_14<='Z')||LA4_14=='_'||(LA4_14>='a' && LA4_14<='z')) ) { alt4=8; } else { alt4=5;} } else { alt4=8;} } break; case 'E': { int LA4_4 = input.LA(2); if ( (LA4_4=='x') ) { int LA4_15 = input.LA(3); if ( (LA4_15=='c') ) { int LA4_21 = input.LA(4); if ( (LA4_21=='e') ) { int LA4_26 = input.LA(5); if ( (LA4_26=='p') ) { int LA4_31 = input.LA(6); if ( (LA4_31=='t') ) { int LA4_36 = input.LA(7); if ( (LA4_36=='i') ) { int LA4_40 = input.LA(8); if ( (LA4_40=='o') ) { int LA4_41 = input.LA(9); if ( (LA4_41=='n') ) { int LA4_42 = input.LA(10); if ( (LA4_42=='$'||LA4_42=='.'||(LA4_42>='0' && LA4_42<='9')||(LA4_42>='A' && LA4_42<='Z')||LA4_42=='_'||(LA4_42>='a' && LA4_42<='z')) ) { alt4=8; } else { alt4=6;} } else { alt4=8;} } else { alt4=8;} } else { alt4=8;} } else { alt4=8;} } else { alt4=8;} } else { alt4=8;} } else { alt4=8;} } else { alt4=8;} } break; case '/': { alt4=7; } break; case '$': case 'A': case 'B': case 'C': case 'D': case 'F': case 'G': case 'H': case 'J': case 'K': case 'L': case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': case 'T': case 'U': case 'V': case 'W': case 'X': case 'Y': case 'Z': case '_': case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': case 't': case 'u': case 'v': case 'w': case 'x': case 'y': case 'z': { alt4=8; } break; case ',': { alt4=9; } break; case ';': { alt4=10; } break; case '\t': case '\n': case ' ': { alt4=11; } break; default: NoViableAltException nvae = new NoViableAltException("1:1: Tokens : ( T10 | T11 | T12 | T13 | T14 | T15 | COMMENT | IDENTIFIER | COMMA | EOL | WS );", 4, 0, input); throw nvae; } switch (alt4) { case 1 : // /home/glibersat/FAC/MRI/SEE/STANdsl/STAN/src/fr/lifl/stc/stan/dsl/dsl.g:1:10: T10 { mT10(); } break; case 2 : // /home/glibersat/FAC/MRI/SEE/STANdsl/STAN/src/fr/lifl/stc/stan/dsl/dsl.g:1:14: T11 { mT11(); } break; case 3 : // /home/glibersat/FAC/MRI/SEE/STANdsl/STAN/src/fr/lifl/stc/stan/dsl/dsl.g:1:18: T12 { mT12(); } break; case 4 : // /home/glibersat/FAC/MRI/SEE/STANdsl/STAN/src/fr/lifl/stc/stan/dsl/dsl.g:1:22: T13 { mT13(); } break; case 5 : // /home/glibersat/FAC/MRI/SEE/STANdsl/STAN/src/fr/lifl/stc/stan/dsl/dsl.g:1:26: T14 { mT14(); } break; case 6 : // /home/glibersat/FAC/MRI/SEE/STANdsl/STAN/src/fr/lifl/stc/stan/dsl/dsl.g:1:30: T15 { mT15(); } break; case 7 : // /home/glibersat/FAC/MRI/SEE/STANdsl/STAN/src/fr/lifl/stc/stan/dsl/dsl.g:1:34: COMMENT { mCOMMENT(); } break; case 8 : // /home/glibersat/FAC/MRI/SEE/STANdsl/STAN/src/fr/lifl/stc/stan/dsl/dsl.g:1:42: IDENTIFIER { mIDENTIFIER(); } break; case 9 : // /home/glibersat/FAC/MRI/SEE/STANdsl/STAN/src/fr/lifl/stc/stan/dsl/dsl.g:1:53: COMMA { mCOMMA(); } break; case 10 : // /home/glibersat/FAC/MRI/SEE/STANdsl/STAN/src/fr/lifl/stc/stan/dsl/dsl.g:1:59: EOL { mEOL(); } break; case 11 : // /home/glibersat/FAC/MRI/SEE/STANdsl/STAN/src/fr/lifl/stc/stan/dsl/dsl.g:1:63: WS { mWS(); } break; } } }