All Downloads are FREE. Search and download functionalities are using the official Maven repository.

rapture.generated.EntLexer Maven / Gradle / Ivy

// $ANTLR 3.5.2 /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/entparser/EntLexer.g 2016-04-05 10:26:29

   package rapture.generated;


import org.antlr.runtime.*;
import java.util.Stack;
import java.util.List;
import java.util.ArrayList;

@SuppressWarnings("all")
public class EntLexer extends Lexer {
	public static final int EOF=-1;
	public static final int ARG=4;
	public static final int AUTHORITY=5;
	public static final int DOCPATH=6;
	public static final int FULLPATH=7;
	public static final int ID=8;
	public static final int SLASH=9;
	public static final int WS=10;

	// delegates
	// delegators
	public Lexer[] getDelegates() {
		return new Lexer[] {};
	}

	public EntLexer() {} 
	public EntLexer(CharStream input) {
		this(input, new RecognizerSharedState());
	}
	public EntLexer(CharStream input, RecognizerSharedState state) {
		super(input,state);
	}
	@Override public String getGrammarFileName() { return "/Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/entparser/EntLexer.g"; }

	// $ANTLR start "DOCPATH"
	public final void mDOCPATH() throws RecognitionException {
		try {
			int _type = DOCPATH;
			int _channel = DEFAULT_TOKEN_CHANNEL;
			// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/entparser/EntLexer.g:20:9: ( '$d' )
			// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/entparser/EntLexer.g:20:11: '$d'
			{
			match("$d"); 

			}

			state.type = _type;
			state.channel = _channel;
		}
		finally {
			// do for sure before leaving
		}
	}
	// $ANTLR end "DOCPATH"

	// $ANTLR start "AUTHORITY"
	public final void mAUTHORITY() throws RecognitionException {
		try {
			int _type = AUTHORITY;
			int _channel = DEFAULT_TOKEN_CHANNEL;
			// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/entparser/EntLexer.g:21:11: ( '$a' )
			// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/entparser/EntLexer.g:21:13: '$a'
			{
			match("$a"); 

			}

			state.type = _type;
			state.channel = _channel;
		}
		finally {
			// do for sure before leaving
		}
	}
	// $ANTLR end "AUTHORITY"

	// $ANTLR start "FULLPATH"
	public final void mFULLPATH() throws RecognitionException {
		try {
			int _type = FULLPATH;
			int _channel = DEFAULT_TOKEN_CHANNEL;
			// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/entparser/EntLexer.g:22:10: ( '$f' )
			// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/entparser/EntLexer.g:22:12: '$f'
			{
			match("$f"); 

			}

			state.type = _type;
			state.channel = _channel;
		}
		finally {
			// do for sure before leaving
		}
	}
	// $ANTLR end "FULLPATH"

	// $ANTLR start "SLASH"
	public final void mSLASH() throws RecognitionException {
		try {
			int _type = SLASH;
			int _channel = DEFAULT_TOKEN_CHANNEL;
			// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/entparser/EntLexer.g:23:7: ( '/' )
			// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/entparser/EntLexer.g:23:9: '/'
			{
			match('/'); 
			}

			state.type = _type;
			state.channel = _channel;
		}
		finally {
			// do for sure before leaving
		}
	}
	// $ANTLR end "SLASH"

	// $ANTLR start "ARG"
	public final void mARG() throws RecognitionException {
		try {
			int _type = ARG;
			int _channel = DEFAULT_TOKEN_CHANNEL;
			// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/entparser/EntLexer.g:24:5: ( '(' ID ')' )
			// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/entparser/EntLexer.g:24:7: '(' ID ')'
			{
			match('('); 
			mID(); 

			match(')'); 
			}

			state.type = _type;
			state.channel = _channel;
		}
		finally {
			// do for sure before leaving
		}
	}
	// $ANTLR end "ARG"

	// $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/entparser/EntLexer.g:26:4: ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' )* )
			// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/entparser/EntLexer.g:26: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/entparser/EntLexer.g:26: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/entparser/EntLexer.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 "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/entparser/EntLexer.g:28:4: ( ( ' ' ) )
			// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/entparser/EntLexer.g:28:6: ( ' ' )
			{
			// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/entparser/EntLexer.g:28:6: ( ' ' )
			// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/entparser/EntLexer.g:28: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/entparser/EntLexer.g:1:8: ( DOCPATH | AUTHORITY | FULLPATH | SLASH | ARG | ID | WS )
		int alt2=7;
		switch ( input.LA(1) ) {
		case '$':
			{
			switch ( input.LA(2) ) {
			case 'd':
				{
				alt2=1;
				}
				break;
			case 'a':
				{
				alt2=2;
				}
				break;
			case 'f':
				{
				alt2=3;
				}
				break;
			default:
				int nvaeMark = input.mark();
				try {
					input.consume();
					NoViableAltException nvae =
						new NoViableAltException("", 2, 1, input);
					throw nvae;
				} finally {
					input.rewind(nvaeMark);
				}
			}
			}
			break;
		case '/':
			{
			alt2=4;
			}
			break;
		case '(':
			{
			alt2=5;
			}
			break;
		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':
		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':
			{
			alt2=6;
			}
			break;
		case ' ':
			{
			alt2=7;
			}
			break;
		default:
			NoViableAltException nvae =
				new NoViableAltException("", 2, 0, input);
			throw nvae;
		}
		switch (alt2) {
			case 1 :
				// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/entparser/EntLexer.g:1:10: DOCPATH
				{
				mDOCPATH(); 

				}
				break;
			case 2 :
				// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/entparser/EntLexer.g:1:18: AUTHORITY
				{
				mAUTHORITY(); 

				}
				break;
			case 3 :
				// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/entparser/EntLexer.g:1:28: FULLPATH
				{
				mFULLPATH(); 

				}
				break;
			case 4 :
				// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/entparser/EntLexer.g:1:37: SLASH
				{
				mSLASH(); 

				}
				break;
			case 5 :
				// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/entparser/EntLexer.g:1:43: ARG
				{
				mARG(); 

				}
				break;
			case 6 :
				// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/entparser/EntLexer.g:1:47: ID
				{
				mID(); 

				}
				break;
			case 7 :
				// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/entparser/EntLexer.g:1:50: WS
				{
				mWS(); 

				}
				break;

		}
	}



}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy