Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
rapture.generated.NGenLexer Maven / Gradle / Ivy
package rapture.generated;
import org.antlr.runtime.*;
import java.util.Stack;
import java.util.List;
import java.util.ArrayList;
@SuppressWarnings ("all" )
public class NGenLexer extends Lexer {
public static final int EOF=-1 ;
public static final int COMMA=4 ;
public static final int DUMMY=5 ;
public static final int EQUALS=6 ;
public static final int FILE=7 ;
public static final int ID=8 ;
public static final int LBRACE=9 ;
public static final int MEMORY=10 ;
public static final int MONGODB=11 ;
public static final int NOTIFICATION=12 ;
public static final int RBRACE=13 ;
public static final int REDIS=14 ;
public static final int STRING=15 ;
public static final int USING=16 ;
public static final int WS=17 ;
public Lexer[] getDelegates() {
return new Lexer[] {};
}
public NGenLexer () {}
public NGenLexer (CharStream input) {
this (input, new RecognizerSharedState());
}
public NGenLexer (CharStream input, RecognizerSharedState state) {
super (input,state);
}
@Override public String getGrammarFileName () { return "/Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/ngen/NGenLexer.g" ; }
public final void mNOTIFICATION () throws RecognitionException {
try {
int _type = NOTIFICATION;
int _channel = DEFAULT_TOKEN_CHANNEL;
{
match("NOTIFICATION" );
}
state.type = _type;
state.channel = _channel;
}
finally {
}
}
public final void mMEMORY () throws RecognitionException {
try {
int _type = MEMORY;
int _channel = DEFAULT_TOKEN_CHANNEL;
{
match("MEMORY" );
}
state.type = _type;
state.channel = _channel;
}
finally {
}
}
public final void mFILE () throws RecognitionException {
try {
int _type = FILE;
int _channel = DEFAULT_TOKEN_CHANNEL;
{
match("FILE" );
}
state.type = _type;
state.channel = _channel;
}
finally {
}
}
public final void mREDIS () throws RecognitionException {
try {
int _type = REDIS;
int _channel = DEFAULT_TOKEN_CHANNEL;
{
match("REDIS" );
}
state.type = _type;
state.channel = _channel;
}
finally {
}
}
public final void mMONGODB () throws RecognitionException {
try {
int _type = MONGODB;
int _channel = DEFAULT_TOKEN_CHANNEL;
{
match("MONGODB" );
}
state.type = _type;
state.channel = _channel;
}
finally {
}
}
public final void mDUMMY () throws RecognitionException {
try {
int _type = DUMMY;
int _channel = DEFAULT_TOKEN_CHANNEL;
{
match("DUMMY" );
}
state.type = _type;
state.channel = _channel;
}
finally {
}
}
public final void mLBRACE () throws RecognitionException {
try {
int _type = LBRACE;
int _channel = DEFAULT_TOKEN_CHANNEL;
{
match('{' );
}
state.type = _type;
state.channel = _channel;
}
finally {
}
}
public final void mRBRACE () throws RecognitionException {
try {
int _type = RBRACE;
int _channel = DEFAULT_TOKEN_CHANNEL;
{
match('}' );
}
state.type = _type;
state.channel = _channel;
}
finally {
}
}
public final void mCOMMA () throws RecognitionException {
try {
int _type = COMMA;
int _channel = DEFAULT_TOKEN_CHANNEL;
{
match(',' );
}
state.type = _type;
state.channel = _channel;
}
finally {
}
}
public final void mEQUALS () throws RecognitionException {
try {
int _type = EQUALS;
int _channel = DEFAULT_TOKEN_CHANNEL;
{
match('=' );
}
state.type = _type;
state.channel = _channel;
}
finally {
}
}
public final void mUSING () throws RecognitionException {
try {
int _type = USING;
int _channel = DEFAULT_TOKEN_CHANNEL;
int alt1=2 ;
int LA1_0 = input.LA(1 );
if ( (LA1_0=='u' ) ) {
alt1=1 ;
}
else if ( (LA1_0=='U' ) ) {
alt1=2 ;
}
else {
NoViableAltException nvae =
new NoViableAltException("" , 1 , 0 , input);
throw nvae;
}
switch (alt1) {
case 1 :
{
match("using" );
}
break ;
case 2 :
{
match("USING" );
}
break ;
}
state.type = _type;
state.channel = _channel;
}
finally {
}
}
public final void mID () throws RecognitionException {
try {
int _type = ID;
int _channel = DEFAULT_TOKEN_CHANNEL;
{
if ( (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;
}
loop2:
while (true ) {
int alt2=2 ;
int LA2_0 = input.LA(1 );
if ( ((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 :
{
if ( (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;
}
}
}
state.type = _type;
state.channel = _channel;
}
finally {
}
}
public final void mSTRING () throws RecognitionException {
try {
int _type = STRING;
int _channel = DEFAULT_TOKEN_CHANNEL;
{
match('\"' );
loop3:
while (true ) {
int alt3=2 ;
int LA3_0 = input.LA(1 );
if ( ((LA3_0 >= '\u0000' && LA3_0 <= '!' )||(LA3_0 >= '#' && LA3_0 <= '\uFFFF' )) ) {
alt3=1 ;
}
switch (alt3) {
case 1 :
{
if ( (input.LA(1 ) >= '\u0000' && input.LA(1 ) <= '!' )||(input.LA(1 ) >= '#' && input.LA(1 ) <= '\uFFFF' ) ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null ,input);
recover(mse);
throw mse;
}
}
break ;
default :
break loop3;
}
}
match('\"' );
}
state.type = _type;
state.channel = _channel;
}
finally {
}
}
public final void mWS () throws RecognitionException {
try {
int _type = WS;
int _channel = DEFAULT_TOKEN_CHANNEL;
{
{
match(' ' );
}
_channel=HIDDEN;
}
state.type = _type;
state.channel = _channel;
}
finally {
}
}
@Override
public void mTokens () throws RecognitionException {
int alt4=14 ;
alt4 = dfa4.predict(input);
switch (alt4) {
case 1 :
{
mNOTIFICATION();
}
break ;
case 2 :
{
mMEMORY();
}
break ;
case 3 :
{
mFILE();
}
break ;
case 4 :
{
mREDIS();
}
break ;
case 5 :
{
mMONGODB();
}
break ;
case 6 :
{
mDUMMY();
}
break ;
case 7 :
{
mLBRACE();
}
break ;
case 8 :
{
mRBRACE();
}
break ;
case 9 :
{
mCOMMA();
}
break ;
case 10 :
{
mEQUALS();
}
break ;
case 11 :
{
mUSING();
}
break ;
case 12 :
{
mID();
}
break ;
case 13 :
{
mSTRING();
}
break ;
case 14 :
{
mWS();
}
break ;
}
}
protected DFA4 dfa4 = new DFA4(this );
static final String DFA4_eotS =
"\1\uffff\5\14\4\uffff\2\14\3\uffff\23\14\1\52\7\14\1\uffff\1\62\1\63\2" +
"\64\1\14\1\66\1\14\3\uffff\1\14\1\uffff\1\71\1\14\1\uffff\3\14\1\76\1" +
"\uffff" ;
static final String DFA4_eofS =
"\77\uffff" ;
static final String DFA4_minS =
"\1\40\1\117\1\105\1\111\1\105\1\125\4\uffff\1\163\1\123\3\uffff\1\124" +
"\1\115\1\116\1\114\1\104\1\115\1\151\2\111\1\117\1\107\1\105\1\111\1\115" +
"\1\156\1\116\1\106\1\122\1\117\1\60\1\123\1\131\1\147\1\107\1\111\1\131" +
"\1\104\1\uffff\4\60\1\103\1\60\1\102\3\uffff\1\101\1\uffff\1\60\1\124" +
"\1\uffff\1\111\1\117\1\116\1\60\1\uffff" ;
static final String DFA4_maxS =
"\1\175\2\117\1\111\1\105\1\125\4\uffff\1\163\1\123\3\uffff\1\124\1\115" +
"\1\116\1\114\1\104\1\115\1\151\2\111\1\117\1\107\1\105\1\111\1\115\1\156" +
"\1\116\1\106\1\122\1\117\1\172\1\123\1\131\1\147\1\107\1\111\1\131\1\104" +
"\1\uffff\4\172\1\103\1\172\1\102\3\uffff\1\101\1\uffff\1\172\1\124\1\uffff" +
"\1\111\1\117\1\116\1\172\1\uffff" ;
static final String DFA4_acceptS =
"\6\uffff\1\7\1\10\1\11\1\12\2\uffff\1\14\1\15\1\16\33\uffff\1\3\7\uffff" +
"\1\4\1\6\1\13\1\uffff\1\2\2\uffff\1\5\4\uffff\1\1" ;
static final String DFA4_specialS =
"\77\uffff}>" ;
static final String[] DFA4_transitionS = {
"\1\16\1\uffff\1\15\11\uffff\1\10\20\uffff\1\11\3\uffff\3\14\1\5\1\14" +
"\1\3\6\14\1\2\1\1\3\14\1\4\2\14\1\13\5\14\4\uffff\1\14\1\uffff\24\14" +
"\1\12\5\14\1\6\1\uffff\1\7" ,
"\1\17" ,
"\1\20\11\uffff\1\21" ,
"\1\22" ,
"\1\23" ,
"\1\24" ,
"" ,
"" ,
"" ,
"" ,
"\1\25" ,
"\1\26" ,
"" ,
"" ,
"" ,
"\1\27" ,
"\1\30" ,
"\1\31" ,
"\1\32" ,
"\1\33" ,
"\1\34" ,
"\1\35" ,
"\1\36" ,
"\1\37" ,
"\1\40" ,
"\1\41" ,
"\1\42" ,
"\1\43" ,
"\1\44" ,
"\1\45" ,
"\1\46" ,
"\1\47" ,
"\1\50" ,
"\1\51" ,
"\12\14\7\uffff\32\14\4\uffff\1\14\1\uffff\32\14" ,
"\1\53" ,
"\1\54" ,
"\1\55" ,
"\1\56" ,
"\1\57" ,
"\1\60" ,
"\1\61" ,
"" ,
"\12\14\7\uffff\32\14\4\uffff\1\14\1\uffff\32\14" ,
"\12\14\7\uffff\32\14\4\uffff\1\14\1\uffff\32\14" ,
"\12\14\7\uffff\32\14\4\uffff\1\14\1\uffff\32\14" ,
"\12\14\7\uffff\32\14\4\uffff\1\14\1\uffff\32\14" ,
"\1\65" ,
"\12\14\7\uffff\32\14\4\uffff\1\14\1\uffff\32\14" ,
"\1\67" ,
"" ,
"" ,
"" ,
"\1\70" ,
"" ,
"\12\14\7\uffff\32\14\4\uffff\1\14\1\uffff\32\14" ,
"\1\72" ,
"" ,
"\1\73" ,
"\1\74" ,
"\1\75" ,
"\12\14\7\uffff\32\14\4\uffff\1\14\1\uffff\32\14" ,
""
};
static final short [] DFA4_eot = DFA.unpackEncodedString(DFA4_eotS);
static final short [] DFA4_eof = DFA.unpackEncodedString(DFA4_eofS);
static final char [] DFA4_min = DFA.unpackEncodedStringToUnsignedChars(DFA4_minS);
static final char [] DFA4_max = DFA.unpackEncodedStringToUnsignedChars(DFA4_maxS);
static final short [] DFA4_accept = DFA.unpackEncodedString(DFA4_acceptS);
static final short [] DFA4_special = DFA.unpackEncodedString(DFA4_specialS);
static final short [][] DFA4_transition;
static {
int numStates = DFA4_transitionS.length;
DFA4_transition = new short [numStates][];
for (int i=0 ; i