
rapture.generated.RelationshipLexer Maven / Gradle / Ivy
// $ANTLR 3.5.2 /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/relationship/RelationshipLexer.g 2016-04-15 08:33:46
package rapture.generated;
import org.antlr.runtime.*;
import java.util.Stack;
import java.util.List;
import java.util.ArrayList;
@SuppressWarnings("all")
public class RelationshipLexer extends Lexer {
public static final int EOF=-1;
public static final int CASSANDRA=4;
public static final int COMMA=5;
public static final int EQUALS=6;
public static final int ID=7;
public static final int LBRACE=8;
public static final int MEMORY=9;
public static final int RBRACE=10;
public static final int RREP=11;
public static final int STRING=12;
public static final int USING=13;
public static final int WS=14;
// delegates
// delegators
public Lexer[] getDelegates() {
return new Lexer[] {};
}
public RelationshipLexer() {}
public RelationshipLexer(CharStream input) {
this(input, new RecognizerSharedState());
}
public RelationshipLexer(CharStream input, RecognizerSharedState state) {
super(input,state);
}
@Override public String getGrammarFileName() { return "/Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/relationship/RelationshipLexer.g"; }
// $ANTLR start "MEMORY"
public final void mMEMORY() throws RecognitionException {
try {
int _type = MEMORY;
int _channel = DEFAULT_TOKEN_CHANNEL;
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/relationship/RelationshipLexer.g:18:8: ( 'MEMORY' )
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/relationship/RelationshipLexer.g:18:10: 'MEMORY'
{
match("MEMORY");
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "MEMORY"
// $ANTLR start "CASSANDRA"
public final void mCASSANDRA() throws RecognitionException {
try {
int _type = CASSANDRA;
int _channel = DEFAULT_TOKEN_CHANNEL;
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/relationship/RelationshipLexer.g:19:11: ( 'CASSANDRA' )
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/relationship/RelationshipLexer.g:19:13: 'CASSANDRA'
{
match("CASSANDRA");
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "CASSANDRA"
// $ANTLR start "RREP"
public final void mRREP() throws RecognitionException {
try {
int _type = RREP;
int _channel = DEFAULT_TOKEN_CHANNEL;
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/relationship/RelationshipLexer.g:21:6: ( 'RREP' )
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/relationship/RelationshipLexer.g:21:8: 'RREP'
{
match("RREP");
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "RREP"
// $ANTLR start "LBRACE"
public final void mLBRACE() throws RecognitionException {
try {
int _type = LBRACE;
int _channel = DEFAULT_TOKEN_CHANNEL;
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/relationship/RelationshipLexer.g:24:8: ( '{' )
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/relationship/RelationshipLexer.g:24:10: '{'
{
match('{');
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "LBRACE"
// $ANTLR start "RBRACE"
public final void mRBRACE() throws RecognitionException {
try {
int _type = RBRACE;
int _channel = DEFAULT_TOKEN_CHANNEL;
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/relationship/RelationshipLexer.g:25:8: ( '}' )
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/relationship/RelationshipLexer.g:25:10: '}'
{
match('}');
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "RBRACE"
// $ANTLR start "COMMA"
public final void mCOMMA() throws RecognitionException {
try {
int _type = COMMA;
int _channel = DEFAULT_TOKEN_CHANNEL;
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/relationship/RelationshipLexer.g:26:7: ( ',' )
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/relationship/RelationshipLexer.g:26:9: ','
{
match(',');
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "COMMA"
// $ANTLR start "EQUALS"
public final void mEQUALS() throws RecognitionException {
try {
int _type = EQUALS;
int _channel = DEFAULT_TOKEN_CHANNEL;
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/relationship/RelationshipLexer.g:27:8: ( '=' )
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/relationship/RelationshipLexer.g:27:10: '='
{
match('=');
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "EQUALS"
// $ANTLR start "USING"
public final void mUSING() throws RecognitionException {
try {
int _type = USING;
int _channel = DEFAULT_TOKEN_CHANNEL;
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/relationship/RelationshipLexer.g:28:7: ( 'USING' )
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/relationship/RelationshipLexer.g:28:9: 'USING'
{
match("USING");
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "USING"
// $ANTLR start "ID"
public final void mID() throws RecognitionException {
try {
int _type = ID;
int _channel = DEFAULT_TOKEN_CHANNEL;
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/relationship/RelationshipLexer.g:31:4: ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' )* )
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/relationship/RelationshipLexer.g:31:6: ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' )*
{
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;
}
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/relationship/RelationshipLexer.g:31:30: ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' )*
loop1:
while (true) {
int alt1=2;
int LA1_0 = input.LA(1);
if ( ((LA1_0 >= '0' && LA1_0 <= '9')||(LA1_0 >= 'A' && LA1_0 <= 'Z')||LA1_0=='_'||(LA1_0 >= 'a' && LA1_0 <= 'z')) ) {
alt1=1;
}
switch (alt1) {
case 1 :
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/relationship/RelationshipLexer.g:
{
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 loop1;
}
}
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "ID"
// $ANTLR start "STRING"
public final void mSTRING() throws RecognitionException {
try {
int _type = STRING;
int _channel = DEFAULT_TOKEN_CHANNEL;
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/relationship/RelationshipLexer.g:32:8: ( '\"' (~ '\"' )* '\"' )
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/relationship/RelationshipLexer.g:32:10: '\"' (~ '\"' )* '\"'
{
match('\"');
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/relationship/RelationshipLexer.g:32:14: (~ '\"' )*
loop2:
while (true) {
int alt2=2;
int LA2_0 = input.LA(1);
if ( ((LA2_0 >= '\u0000' && LA2_0 <= '!')||(LA2_0 >= '#' && LA2_0 <= '\uFFFF')) ) {
alt2=1;
}
switch (alt2) {
case 1 :
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/relationship/RelationshipLexer.g:
{
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 loop2;
}
}
match('\"');
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "STRING"
// $ANTLR start "WS"
public final void mWS() throws RecognitionException {
try {
int _type = WS;
int _channel = DEFAULT_TOKEN_CHANNEL;
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/relationship/RelationshipLexer.g:34:4: ( ( ' ' ) )
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/relationship/RelationshipLexer.g:34:6: ( ' ' )
{
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/relationship/RelationshipLexer.g:34:6: ( ' ' )
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/relationship/RelationshipLexer.g:34:7: ' '
{
match(' ');
}
_channel=HIDDEN;
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "WS"
@Override
public void mTokens() throws RecognitionException {
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/relationship/RelationshipLexer.g:1:8: ( MEMORY | CASSANDRA | RREP | LBRACE | RBRACE | COMMA | EQUALS | USING | ID | STRING | WS )
int alt3=11;
switch ( input.LA(1) ) {
case 'M':
{
int LA3_1 = input.LA(2);
if ( (LA3_1=='E') ) {
int LA3_12 = input.LA(3);
if ( (LA3_12=='M') ) {
int LA3_16 = input.LA(4);
if ( (LA3_16=='O') ) {
int LA3_20 = input.LA(5);
if ( (LA3_20=='R') ) {
int LA3_24 = input.LA(6);
if ( (LA3_24=='Y') ) {
int LA3_28 = input.LA(7);
if ( ((LA3_28 >= '0' && LA3_28 <= '9')||(LA3_28 >= 'A' && LA3_28 <= 'Z')||LA3_28=='_'||(LA3_28 >= 'a' && LA3_28 <= 'z')) ) {
alt3=9;
}
else {
alt3=1;
}
}
else {
alt3=9;
}
}
else {
alt3=9;
}
}
else {
alt3=9;
}
}
else {
alt3=9;
}
}
else {
alt3=9;
}
}
break;
case 'C':
{
int LA3_2 = input.LA(2);
if ( (LA3_2=='A') ) {
int LA3_13 = input.LA(3);
if ( (LA3_13=='S') ) {
int LA3_17 = input.LA(4);
if ( (LA3_17=='S') ) {
int LA3_21 = input.LA(5);
if ( (LA3_21=='A') ) {
int LA3_25 = input.LA(6);
if ( (LA3_25=='N') ) {
int LA3_29 = input.LA(7);
if ( (LA3_29=='D') ) {
int LA3_32 = input.LA(8);
if ( (LA3_32=='R') ) {
int LA3_33 = input.LA(9);
if ( (LA3_33=='A') ) {
int LA3_34 = input.LA(10);
if ( ((LA3_34 >= '0' && LA3_34 <= '9')||(LA3_34 >= 'A' && LA3_34 <= 'Z')||LA3_34=='_'||(LA3_34 >= 'a' && LA3_34 <= 'z')) ) {
alt3=9;
}
else {
alt3=2;
}
}
else {
alt3=9;
}
}
else {
alt3=9;
}
}
else {
alt3=9;
}
}
else {
alt3=9;
}
}
else {
alt3=9;
}
}
else {
alt3=9;
}
}
else {
alt3=9;
}
}
else {
alt3=9;
}
}
break;
case 'R':
{
int LA3_3 = input.LA(2);
if ( (LA3_3=='R') ) {
int LA3_14 = input.LA(3);
if ( (LA3_14=='E') ) {
int LA3_18 = input.LA(4);
if ( (LA3_18=='P') ) {
int LA3_22 = input.LA(5);
if ( ((LA3_22 >= '0' && LA3_22 <= '9')||(LA3_22 >= 'A' && LA3_22 <= 'Z')||LA3_22=='_'||(LA3_22 >= 'a' && LA3_22 <= 'z')) ) {
alt3=9;
}
else {
alt3=3;
}
}
else {
alt3=9;
}
}
else {
alt3=9;
}
}
else {
alt3=9;
}
}
break;
case '{':
{
alt3=4;
}
break;
case '}':
{
alt3=5;
}
break;
case ',':
{
alt3=6;
}
break;
case '=':
{
alt3=7;
}
break;
case 'U':
{
int LA3_8 = input.LA(2);
if ( (LA3_8=='S') ) {
int LA3_15 = input.LA(3);
if ( (LA3_15=='I') ) {
int LA3_19 = input.LA(4);
if ( (LA3_19=='N') ) {
int LA3_23 = input.LA(5);
if ( (LA3_23=='G') ) {
int LA3_27 = input.LA(6);
if ( ((LA3_27 >= '0' && LA3_27 <= '9')||(LA3_27 >= 'A' && LA3_27 <= 'Z')||LA3_27=='_'||(LA3_27 >= 'a' && LA3_27 <= 'z')) ) {
alt3=9;
}
else {
alt3=8;
}
}
else {
alt3=9;
}
}
else {
alt3=9;
}
}
else {
alt3=9;
}
}
else {
alt3=9;
}
}
break;
case 'A':
case 'B':
case 'D':
case 'E':
case 'F':
case 'G':
case 'H':
case 'I':
case 'J':
case 'K':
case 'L':
case 'N':
case 'O':
case 'P':
case 'Q':
case 'S':
case 'T':
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 's':
case 't':
case 'u':
case 'v':
case 'w':
case 'x':
case 'y':
case 'z':
{
alt3=9;
}
break;
case '\"':
{
alt3=10;
}
break;
case ' ':
{
alt3=11;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 3, 0, input);
throw nvae;
}
switch (alt3) {
case 1 :
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/relationship/RelationshipLexer.g:1:10: MEMORY
{
mMEMORY();
}
break;
case 2 :
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/relationship/RelationshipLexer.g:1:17: CASSANDRA
{
mCASSANDRA();
}
break;
case 3 :
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/relationship/RelationshipLexer.g:1:27: RREP
{
mRREP();
}
break;
case 4 :
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/relationship/RelationshipLexer.g:1:32: LBRACE
{
mLBRACE();
}
break;
case 5 :
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/relationship/RelationshipLexer.g:1:39: RBRACE
{
mRBRACE();
}
break;
case 6 :
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/relationship/RelationshipLexer.g:1:46: COMMA
{
mCOMMA();
}
break;
case 7 :
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/relationship/RelationshipLexer.g:1:52: EQUALS
{
mEQUALS();
}
break;
case 8 :
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/relationship/RelationshipLexer.g:1:59: USING
{
mUSING();
}
break;
case 9 :
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/relationship/RelationshipLexer.g:1:65: ID
{
mID();
}
break;
case 10 :
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/relationship/RelationshipLexer.g:1:68: STRING
{
mSTRING();
}
break;
case 11 :
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/relationship/RelationshipLexer.g:1:75: WS
{
mWS();
}
break;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy