📄 ruleparserlexer.java
字号:
// $ANTLR 3.0ea8 /home/michael/projects/jboss-rules-3.0.x/drools-compiler/src/main/resources/org/drools/lang/drl.g 2006-08-16 14:21:22 package org.drools.lang;import org.antlr.runtime.*;import java.util.Stack;import java.util.List;import java.util.ArrayList;import java.util.Map;import java.util.HashMap;public class RuleParserLexer extends Lexer { public static final int T29=29; public static final int T36=36; public static final int T58=58; public static final int MISC=10; public static final int FLOAT=9; public static final int T35=35; public static final int T61=61; public static final int T45=45; public static final int T20=20; public static final int T34=34; public static final int T25=25; public static final int T18=18; public static final int T37=37; public static final int INT=6; public static final int T26=26; public static final int T32=32; public static final int T17=17; public static final int T51=51; public static final int SH_STYLE_SINGLE_LINE_COMMENT=12; public static final int T46=46; public static final int T16=16; public static final int T38=38; public static final int T41=41; public static final int T24=24; public static final int T19=19; public static final int T39=39; public static final int ID=5; public static final int T21=21; public static final int Synpred1_fragment=63; public static final int T44=44; public static final int T55=55; public static final int BOOL=7; public static final int T33=33; public static final int T22=22; public static final int T50=50; public static final int WS=11; public static final int STRING=8; public static final int T43=43; public static final int T23=23; public static final int T28=28; public static final int T42=42; public static final int T40=40; public static final int T57=57; public static final int T56=56; public static final int T59=59; public static final int T48=48; public static final int T15=15; public static final int T54=54; public static final int EOF=-1; public static final int T47=47; public static final int EOL=4; public static final int Tokens=62; public static final int T53=53; public static final int T60=60; public static final int T31=31; public static final int MULTI_LINE_COMMENT=14; public static final int T49=49; public static final int T27=27; public static final int T52=52; public static final int T30=30; public static final int C_STYLE_SINGLE_LINE_COMMENT=13; public RuleParserLexer() {;} public RuleParserLexer(CharStream input) { super(input); ruleMemo = new Map[60+1]; } // $ANTLR start T15 public void mT15() throws RecognitionException { int T15_StartIndex = input.index(); try { int type = T15; int start = getCharIndex(); int line = getLine(); int charPosition = getCharPositionInLine(); int channel = Token.DEFAULT_CHANNEL; if ( backtracking>0 && alreadyParsedRule(input, 1) ) { return ; } // /home/michael/projects/jboss-rules-3.0.x/drools-compiler/src/main/resources/org/drools/lang/drl.g:6:7: ( ';' ) // /home/michael/projects/jboss-rules-3.0.x/drools-compiler/src/main/resources/org/drools/lang/drl.g:6:7: ';' { match(';'); if (failed) return ; } if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);} } finally { if ( backtracking>0 ) { memoize(input, 1, T15_StartIndex); } } } // $ANTLR end T15 // $ANTLR start T16 public void mT16() throws RecognitionException { int T16_StartIndex = input.index(); try { int type = T16; int start = getCharIndex(); int line = getLine(); int charPosition = getCharPositionInLine(); int channel = Token.DEFAULT_CHANNEL; if ( backtracking>0 && alreadyParsedRule(input, 2) ) { return ; } // /home/michael/projects/jboss-rules-3.0.x/drools-compiler/src/main/resources/org/drools/lang/drl.g:7:7: ( 'package' ) // /home/michael/projects/jboss-rules-3.0.x/drools-compiler/src/main/resources/org/drools/lang/drl.g:7:7: 'package' { match("package"); if (failed) return ; } if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);} } finally { if ( backtracking>0 ) { memoize(input, 2, T16_StartIndex); } } } // $ANTLR end T16 // $ANTLR start T17 public void mT17() throws RecognitionException { int T17_StartIndex = input.index(); try { int type = T17; int start = getCharIndex(); int line = getLine(); int charPosition = getCharPositionInLine(); int channel = Token.DEFAULT_CHANNEL; if ( backtracking>0 && alreadyParsedRule(input, 3) ) { return ; } // /home/michael/projects/jboss-rules-3.0.x/drools-compiler/src/main/resources/org/drools/lang/drl.g:8:7: ( 'import' ) // /home/michael/projects/jboss-rules-3.0.x/drools-compiler/src/main/resources/org/drools/lang/drl.g:8:7: 'import' { match("import"); if (failed) return ; } if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);} } finally { if ( backtracking>0 ) { memoize(input, 3, T17_StartIndex); } } } // $ANTLR end T17 // $ANTLR start T18 public void mT18() throws RecognitionException { int T18_StartIndex = input.index(); try { int type = T18; int start = getCharIndex(); int line = getLine(); int charPosition = getCharPositionInLine(); int channel = Token.DEFAULT_CHANNEL; if ( backtracking>0 && alreadyParsedRule(input, 4) ) { return ; } // /home/michael/projects/jboss-rules-3.0.x/drools-compiler/src/main/resources/org/drools/lang/drl.g:9:7: ( '.' ) // /home/michael/projects/jboss-rules-3.0.x/drools-compiler/src/main/resources/org/drools/lang/drl.g:9:7: '.' { match('.'); if (failed) return ; } if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);} } finally { if ( backtracking>0 ) { memoize(input, 4, T18_StartIndex); } } } // $ANTLR end T18 // $ANTLR start T19 public void mT19() throws RecognitionException { int T19_StartIndex = input.index(); try { int type = T19; int start = getCharIndex(); int line = getLine(); int charPosition = getCharPositionInLine(); int channel = Token.DEFAULT_CHANNEL; if ( backtracking>0 && alreadyParsedRule(input, 5) ) { return ; } // /home/michael/projects/jboss-rules-3.0.x/drools-compiler/src/main/resources/org/drools/lang/drl.g:10:7: ( '.*' ) // /home/michael/projects/jboss-rules-3.0.x/drools-compiler/src/main/resources/org/drools/lang/drl.g:10:7: '.*' { match(".*"); if (failed) return ; } if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);} } finally { if ( backtracking>0 ) { memoize(input, 5, T19_StartIndex); } } } // $ANTLR end T19 // $ANTLR start T20 public void mT20() throws RecognitionException { int T20_StartIndex = input.index(); try { int type = T20; int start = getCharIndex(); int line = getLine(); int charPosition = getCharPositionInLine(); int channel = Token.DEFAULT_CHANNEL; if ( backtracking>0 && alreadyParsedRule(input, 6) ) { return ; } // /home/michael/projects/jboss-rules-3.0.x/drools-compiler/src/main/resources/org/drools/lang/drl.g:11:7: ( 'expander' ) // /home/michael/projects/jboss-rules-3.0.x/drools-compiler/src/main/resources/org/drools/lang/drl.g:11:7: 'expander' { match("expander"); if (failed) return ; } if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);} } finally { if ( backtracking>0 ) { memoize(input, 6, T20_StartIndex); } } } // $ANTLR end T20 // $ANTLR start T21 public void mT21() throws RecognitionException { int T21_StartIndex = input.index(); try { int type = T21; int start = getCharIndex(); int line = getLine(); int charPosition = getCharPositionInLine(); int channel = Token.DEFAULT_CHANNEL; if ( backtracking>0 && alreadyParsedRule(input, 7) ) { return ; } // /home/michael/projects/jboss-rules-3.0.x/drools-compiler/src/main/resources/org/drools/lang/drl.g:12:7: ( 'global' ) // /home/michael/projects/jboss-rules-3.0.x/drools-compiler/src/main/resources/org/drools/lang/drl.g:12:7: 'global' { match("global"); if (failed) return ; } if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);} } finally { if ( backtracking>0 ) { memoize(input, 7, T21_StartIndex); } } } // $ANTLR end T21 // $ANTLR start T22 public void mT22() throws RecognitionException { int T22_StartIndex = input.index(); try { int type = T22; int start = getCharIndex(); int line = getLine(); int charPosition = getCharPositionInLine(); int channel = Token.DEFAULT_CHANNEL; if ( backtracking>0 && alreadyParsedRule(input, 8) ) { return ; } // /home/michael/projects/jboss-rules-3.0.x/drools-compiler/src/main/resources/org/drools/lang/drl.g:13:7: ( 'function' ) // /home/michael/projects/jboss-rules-3.0.x/drools-compiler/src/main/resources/org/drools/lang/drl.g:13:7: 'function' { match("function"); if (failed) return ; } if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);} } finally { if ( backtracking>0 ) { memoize(input, 8, T22_StartIndex); } } } // $ANTLR end T22 // $ANTLR start T23 public void mT23() throws RecognitionException { int T23_StartIndex = input.index(); try { int type = T23; int start = getCharIndex(); int line = getLine(); int charPosition = getCharPositionInLine(); int channel = Token.DEFAULT_CHANNEL; if ( backtracking>0 && alreadyParsedRule(input, 9) ) { return ; } // /home/michael/projects/jboss-rules-3.0.x/drools-compiler/src/main/resources/org/drools/lang/drl.g:14:7: ( '(' ) // /home/michael/projects/jboss-rules-3.0.x/drools-compiler/src/main/resources/org/drools/lang/drl.g:14:7: '(' { match('('); if (failed) return ; } if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);} } finally { if ( backtracking>0 ) { memoize(input, 9, T23_StartIndex); } } } // $ANTLR end T23 // $ANTLR start T24 public void mT24() throws RecognitionException { int T24_StartIndex = input.index(); try { int type = T24; int start = getCharIndex(); int line = getLine(); int charPosition = getCharPositionInLine(); int channel = Token.DEFAULT_CHANNEL; if ( backtracking>0 && alreadyParsedRule(input, 10) ) { return ; } // /home/michael/projects/jboss-rules-3.0.x/drools-compiler/src/main/resources/org/drools/lang/drl.g:15:7: ( ',' ) // /home/michael/projects/jboss-rules-3.0.x/drools-compiler/src/main/resources/org/drools/lang/drl.g:15:7: ',' { match(','); if (failed) return ; } if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);} } finally { if ( backtracking>0 ) { memoize(input, 10, T24_StartIndex); } } } // $ANTLR end T24 // $ANTLR start T25 public void mT25() throws RecognitionException { int T25_StartIndex = input.index(); try { int type = T25; int start = getCharIndex(); int line = getLine();
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -