
rapture.generated.HoseLexer Maven / Gradle / Ivy
// $ANTLR 3.5.2 /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.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 HoseLexer extends Lexer {
public static final int EOF=-1;
public static final int ARG=4;
public static final int ARGLIST=5;
public static final int ARG_D=6;
public static final int ARG_O=7;
public static final int ARG_OD=8;
public static final int ASSIGN=9;
public static final int BODY=10;
public static final int CALL=11;
public static final int CLOSEI=12;
public static final int CLOSEP=13;
public static final int COMMA=14;
public static final int Comment=15;
public static final int DECIMAL_T=16;
public static final int DEREF=17;
public static final int DEREFLIST=18;
public static final int DOT=19;
public static final int Digit=20;
public static final int Double=21;
public static final int EQUALS=22;
public static final int INT_T=23;
public static final int Identifier=24;
public static final int LINK=25;
public static final int LINKS=26;
public static final int Long=27;
public static final int Number=28;
public static final int OPENI=29;
public static final int OPENP=30;
public static final int OUTINDEX=31;
public static final int OUTKEY=32;
public static final int PARM=33;
public static final int PARMLIST=34;
public static final int SEMI=35;
public static final int SIGNATURE=36;
public static final int STREAM_T=37;
public static final int STRING_T=38;
public static final int Space=39;
public static final int String=40;
// delegates
// delegators
public Lexer[] getDelegates() {
return new Lexer[] {};
}
public HoseLexer() {}
public HoseLexer(CharStream input) {
this(input, new RecognizerSharedState());
}
public HoseLexer(CharStream input, RecognizerSharedState state) {
super(input,state);
}
@Override public String getGrammarFileName() { return "/Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g"; }
// $ANTLR start "DOT"
public final void mDOT() throws RecognitionException {
try {
int _type = DOT;
int _channel = DEFAULT_TOKEN_CHANNEL;
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:103:5: ( '.' )
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:103:7: '.'
{
match('.');
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "DOT"
// $ANTLR start "SEMI"
public final void mSEMI() throws RecognitionException {
try {
int _type = SEMI;
int _channel = DEFAULT_TOKEN_CHANNEL;
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:104:6: ( ';' )
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:104:8: ';'
{
match(';');
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "SEMI"
// $ANTLR start "OPENP"
public final void mOPENP() throws RecognitionException {
try {
int _type = OPENP;
int _channel = DEFAULT_TOKEN_CHANNEL;
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:105:7: ( '(' )
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:105:9: '('
{
match('(');
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "OPENP"
// $ANTLR start "CLOSEP"
public final void mCLOSEP() throws RecognitionException {
try {
int _type = CLOSEP;
int _channel = DEFAULT_TOKEN_CHANNEL;
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:106:8: ( ')' )
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:106:10: ')'
{
match(')');
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "CLOSEP"
// $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/serfn/Hose.g:107:7: ( ',' )
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:107: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/serfn/Hose.g:108:8: ( '=' )
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:108:10: '='
{
match('=');
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "EQUALS"
// $ANTLR start "LINKS"
public final void mLINKS() throws RecognitionException {
try {
int _type = LINKS;
int _channel = DEFAULT_TOKEN_CHANNEL;
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:109:7: ( '<-' )
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:109:9: '<-'
{
match("<-");
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "LINKS"
// $ANTLR start "OPENI"
public final void mOPENI() throws RecognitionException {
try {
int _type = OPENI;
int _channel = DEFAULT_TOKEN_CHANNEL;
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:110:7: ( '[' )
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:110:9: '['
{
match('[');
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "OPENI"
// $ANTLR start "CLOSEI"
public final void mCLOSEI() throws RecognitionException {
try {
int _type = CLOSEI;
int _channel = DEFAULT_TOKEN_CHANNEL;
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:111:8: ( ']' )
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:111:10: ']'
{
match(']');
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "CLOSEI"
// $ANTLR start "INT_T"
public final void mINT_T() throws RecognitionException {
try {
int _type = INT_T;
int _channel = DEFAULT_TOKEN_CHANNEL;
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:113:7: ( 'int' )
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:113:9: 'int'
{
match("int");
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "INT_T"
// $ANTLR start "DECIMAL_T"
public final void mDECIMAL_T() throws RecognitionException {
try {
int _type = DECIMAL_T;
int _channel = DEFAULT_TOKEN_CHANNEL;
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:114:11: ( 'decimal' )
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:114:13: 'decimal'
{
match("decimal");
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "DECIMAL_T"
// $ANTLR start "STRING_T"
public final void mSTRING_T() throws RecognitionException {
try {
int _type = STRING_T;
int _channel = DEFAULT_TOKEN_CHANNEL;
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:115:10: ( 'string' )
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:115:12: 'string'
{
match("string");
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "STRING_T"
// $ANTLR start "STREAM_T"
public final void mSTREAM_T() throws RecognitionException {
try {
int _type = STREAM_T;
int _channel = DEFAULT_TOKEN_CHANNEL;
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:116:10: ( 'stream' )
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:116:12: 'stream'
{
match("stream");
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "STREAM_T"
// $ANTLR start "Number"
public final void mNumber() throws RecognitionException {
try {
int _type = Number;
int _channel = DEFAULT_TOKEN_CHANNEL;
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:119:3: ( Long | Long '.' Digit ( Digit )* )
int alt2=2;
alt2 = dfa2.predict(input);
switch (alt2) {
case 1 :
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:119:6: Long
{
mLong();
}
break;
case 2 :
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:120:6: Long '.' Digit ( Digit )*
{
mLong();
match('.');
mDigit();
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:120:21: ( Digit )*
loop1:
while (true) {
int alt1=2;
int LA1_0 = input.LA(1);
if ( ((LA1_0 >= '0' && LA1_0 <= '9')) ) {
alt1=1;
}
switch (alt1) {
case 1 :
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:
{
if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
}
break;
default :
break loop1;
}
}
}
break;
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "Number"
// $ANTLR start "Identifier"
public final void mIdentifier() throws RecognitionException {
try {
int _type = Identifier;
int _channel = DEFAULT_TOKEN_CHANNEL;
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:124:3: ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | Digit )* )
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:124:6: ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | Digit )*
{
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/serfn/Hose.g:124:34: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | Digit )*
loop3:
while (true) {
int alt3=2;
int LA3_0 = input.LA(1);
if ( ((LA3_0 >= '0' && LA3_0 <= '9')||(LA3_0 >= 'A' && LA3_0 <= 'Z')||LA3_0=='_'||(LA3_0 >= 'a' && LA3_0 <= 'z')) ) {
alt3=1;
}
switch (alt3) {
case 1 :
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.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 loop3;
}
}
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "Identifier"
// $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/serfn/Hose.g:131:3: ( '\"' (~ ( '\"' | '\\\\' ) | '\\\\' ( '\\\\' | '\"' ) )* '\"' | '\\'' (~ ( '\\'' | '\\\\' ) | '\\\\' ( '\\\\' | '\\'' ) )* '\\'' )
int alt6=2;
int LA6_0 = input.LA(1);
if ( (LA6_0=='\"') ) {
alt6=1;
}
else if ( (LA6_0=='\'') ) {
alt6=2;
}
else {
NoViableAltException nvae =
new NoViableAltException("", 6, 0, input);
throw nvae;
}
switch (alt6) {
case 1 :
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:131:6: '\"' (~ ( '\"' | '\\\\' ) | '\\\\' ( '\\\\' | '\"' ) )* '\"'
{
match('\"');
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:131:11: (~ ( '\"' | '\\\\' ) | '\\\\' ( '\\\\' | '\"' ) )*
loop4:
while (true) {
int alt4=3;
int LA4_0 = input.LA(1);
if ( ((LA4_0 >= '\u0000' && LA4_0 <= '!')||(LA4_0 >= '#' && LA4_0 <= '[')||(LA4_0 >= ']' && LA4_0 <= '\uFFFF')) ) {
alt4=1;
}
else if ( (LA4_0=='\\') ) {
alt4=2;
}
switch (alt4) {
case 1 :
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:131:12: ~ ( '\"' | '\\\\' )
{
if ( (input.LA(1) >= '\u0000' && input.LA(1) <= '!')||(input.LA(1) >= '#' && input.LA(1) <= '[')||(input.LA(1) >= ']' && input.LA(1) <= '\uFFFF') ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
}
break;
case 2 :
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:131:29: '\\\\' ( '\\\\' | '\"' )
{
match('\\');
if ( input.LA(1)=='\"'||input.LA(1)=='\\' ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
}
break;
default :
break loop4;
}
}
match('\"');
}
break;
case 2 :
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:132:6: '\\'' (~ ( '\\'' | '\\\\' ) | '\\\\' ( '\\\\' | '\\'' ) )* '\\''
{
match('\'');
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:132:11: (~ ( '\\'' | '\\\\' ) | '\\\\' ( '\\\\' | '\\'' ) )*
loop5:
while (true) {
int alt5=3;
int LA5_0 = input.LA(1);
if ( ((LA5_0 >= '\u0000' && LA5_0 <= '&')||(LA5_0 >= '(' && LA5_0 <= '[')||(LA5_0 >= ']' && LA5_0 <= '\uFFFF')) ) {
alt5=1;
}
else if ( (LA5_0=='\\') ) {
alt5=2;
}
switch (alt5) {
case 1 :
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:132:12: ~ ( '\\'' | '\\\\' )
{
if ( (input.LA(1) >= '\u0000' && input.LA(1) <= '&')||(input.LA(1) >= '(' && input.LA(1) <= '[')||(input.LA(1) >= ']' && input.LA(1) <= '\uFFFF') ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
}
break;
case 2 :
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:132:29: '\\\\' ( '\\\\' | '\\'' )
{
match('\\');
if ( input.LA(1)=='\''||input.LA(1)=='\\' ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
}
break;
default :
break loop5;
}
}
match('\'');
}
break;
}
state.type = _type;
state.channel = _channel;
setText(getText().substring(1, getText().length()-1).replaceAll("\\\\(.)", "$1"));
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "String"
// $ANTLR start "Comment"
public final void mComment() throws RecognitionException {
try {
int _type = Comment;
int _channel = DEFAULT_TOKEN_CHANNEL;
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:136:3: ( '//' (~ ( '\\r' | '\\n' ) )* | '/*' ( . )* '*/' )
int alt9=2;
int LA9_0 = input.LA(1);
if ( (LA9_0=='/') ) {
int LA9_1 = input.LA(2);
if ( (LA9_1=='/') ) {
alt9=1;
}
else if ( (LA9_1=='*') ) {
alt9=2;
}
else {
int nvaeMark = input.mark();
try {
input.consume();
NoViableAltException nvae =
new NoViableAltException("", 9, 1, input);
throw nvae;
} finally {
input.rewind(nvaeMark);
}
}
}
else {
NoViableAltException nvae =
new NoViableAltException("", 9, 0, input);
throw nvae;
}
switch (alt9) {
case 1 :
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:136:6: '//' (~ ( '\\r' | '\\n' ) )*
{
match("//");
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:136:11: (~ ( '\\r' | '\\n' ) )*
loop7:
while (true) {
int alt7=2;
int LA7_0 = input.LA(1);
if ( ((LA7_0 >= '\u0000' && LA7_0 <= '\t')||(LA7_0 >= '\u000B' && LA7_0 <= '\f')||(LA7_0 >= '\u000E' && LA7_0 <= '\uFFFF')) ) {
alt7=1;
}
switch (alt7) {
case 1 :
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:
{
if ( (input.LA(1) >= '\u0000' && input.LA(1) <= '\t')||(input.LA(1) >= '\u000B' && input.LA(1) <= '\f')||(input.LA(1) >= '\u000E' && input.LA(1) <= '\uFFFF') ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
}
break;
default :
break loop7;
}
}
skip();
}
break;
case 2 :
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:137:6: '/*' ( . )* '*/'
{
match("/*");
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:137:11: ( . )*
loop8:
while (true) {
int alt8=2;
int LA8_0 = input.LA(1);
if ( (LA8_0=='*') ) {
int LA8_1 = input.LA(2);
if ( (LA8_1=='/') ) {
alt8=2;
}
else if ( ((LA8_1 >= '\u0000' && LA8_1 <= '.')||(LA8_1 >= '0' && LA8_1 <= '\uFFFF')) ) {
alt8=1;
}
}
else if ( ((LA8_0 >= '\u0000' && LA8_0 <= ')')||(LA8_0 >= '+' && LA8_0 <= '\uFFFF')) ) {
alt8=1;
}
switch (alt8) {
case 1 :
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:137:11: .
{
matchAny();
}
break;
default :
break loop8;
}
}
match("*/");
skip();
}
break;
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "Comment"
// $ANTLR start "Space"
public final void mSpace() throws RecognitionException {
try {
int _type = Space;
int _channel = DEFAULT_TOKEN_CHANNEL;
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:141:3: ( ( ' ' | '\\t' | '\\r' | '\\n' | '\\u000C' ) )
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:141:6: ( ' ' | '\\t' | '\\r' | '\\n' | '\\u000C' )
{
if ( (input.LA(1) >= '\t' && input.LA(1) <= '\n')||(input.LA(1) >= '\f' && input.LA(1) <= '\r')||input.LA(1)==' ' ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
skip();
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "Space"
// $ANTLR start "Double"
public final void mDouble() throws RecognitionException {
try {
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:145:3: ( Long . ( Digit )+ )
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:145:5: Long . ( Digit )+
{
mLong();
matchAny();
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:145:12: ( Digit )+
int cnt10=0;
loop10:
while (true) {
int alt10=2;
int LA10_0 = input.LA(1);
if ( ((LA10_0 >= '0' && LA10_0 <= '9')) ) {
alt10=1;
}
switch (alt10) {
case 1 :
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:
{
if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
}
break;
default :
if ( cnt10 >= 1 ) break loop10;
EarlyExitException eee = new EarlyExitException(10, input);
throw eee;
}
cnt10++;
}
}
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "Double"
// $ANTLR start "Long"
public final void mLong() throws RecognitionException {
try {
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:149:3: ( '1' .. '9' ( Digit )* | '0' )
int alt12=2;
int LA12_0 = input.LA(1);
if ( ((LA12_0 >= '1' && LA12_0 <= '9')) ) {
alt12=1;
}
else if ( (LA12_0=='0') ) {
alt12=2;
}
else {
NoViableAltException nvae =
new NoViableAltException("", 12, 0, input);
throw nvae;
}
switch (alt12) {
case 1 :
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:149:6: '1' .. '9' ( Digit )*
{
matchRange('1','9');
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:149:15: ( Digit )*
loop11:
while (true) {
int alt11=2;
int LA11_0 = input.LA(1);
if ( ((LA11_0 >= '0' && LA11_0 <= '9')) ) {
alt11=1;
}
switch (alt11) {
case 1 :
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:
{
if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
}
break;
default :
break loop11;
}
}
}
break;
case 2 :
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:150:6: '0'
{
match('0');
}
break;
}
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "Long"
// $ANTLR start "Digit"
public final void mDigit() throws RecognitionException {
try {
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:154:3: ( '0' .. '9' )
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:
{
if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
}
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "Digit"
@Override
public void mTokens() throws RecognitionException {
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:1:8: ( DOT | SEMI | OPENP | CLOSEP | COMMA | EQUALS | LINKS | OPENI | CLOSEI | INT_T | DECIMAL_T | STRING_T | STREAM_T | Number | Identifier | String | Comment | Space )
int alt13=18;
switch ( input.LA(1) ) {
case '.':
{
alt13=1;
}
break;
case ';':
{
alt13=2;
}
break;
case '(':
{
alt13=3;
}
break;
case ')':
{
alt13=4;
}
break;
case ',':
{
alt13=5;
}
break;
case '=':
{
alt13=6;
}
break;
case '<':
{
alt13=7;
}
break;
case '[':
{
alt13=8;
}
break;
case ']':
{
alt13=9;
}
break;
case 'i':
{
int LA13_10 = input.LA(2);
if ( (LA13_10=='n') ) {
int LA13_18 = input.LA(3);
if ( (LA13_18=='t') ) {
int LA13_21 = input.LA(4);
if ( ((LA13_21 >= '0' && LA13_21 <= '9')||(LA13_21 >= 'A' && LA13_21 <= 'Z')||LA13_21=='_'||(LA13_21 >= 'a' && LA13_21 <= 'z')) ) {
alt13=15;
}
else {
alt13=10;
}
}
else {
alt13=15;
}
}
else {
alt13=15;
}
}
break;
case 'd':
{
int LA13_11 = input.LA(2);
if ( (LA13_11=='e') ) {
int LA13_19 = input.LA(3);
if ( (LA13_19=='c') ) {
int LA13_22 = input.LA(4);
if ( (LA13_22=='i') ) {
int LA13_25 = input.LA(5);
if ( (LA13_25=='m') ) {
int LA13_28 = input.LA(6);
if ( (LA13_28=='a') ) {
int LA13_31 = input.LA(7);
if ( (LA13_31=='l') ) {
int LA13_34 = input.LA(8);
if ( ((LA13_34 >= '0' && LA13_34 <= '9')||(LA13_34 >= 'A' && LA13_34 <= 'Z')||LA13_34=='_'||(LA13_34 >= 'a' && LA13_34 <= 'z')) ) {
alt13=15;
}
else {
alt13=11;
}
}
else {
alt13=15;
}
}
else {
alt13=15;
}
}
else {
alt13=15;
}
}
else {
alt13=15;
}
}
else {
alt13=15;
}
}
else {
alt13=15;
}
}
break;
case 's':
{
int LA13_12 = input.LA(2);
if ( (LA13_12=='t') ) {
int LA13_20 = input.LA(3);
if ( (LA13_20=='r') ) {
switch ( input.LA(4) ) {
case 'i':
{
int LA13_26 = input.LA(5);
if ( (LA13_26=='n') ) {
int LA13_29 = input.LA(6);
if ( (LA13_29=='g') ) {
int LA13_32 = input.LA(7);
if ( ((LA13_32 >= '0' && LA13_32 <= '9')||(LA13_32 >= 'A' && LA13_32 <= 'Z')||LA13_32=='_'||(LA13_32 >= 'a' && LA13_32 <= 'z')) ) {
alt13=15;
}
else {
alt13=12;
}
}
else {
alt13=15;
}
}
else {
alt13=15;
}
}
break;
case 'e':
{
int LA13_27 = input.LA(5);
if ( (LA13_27=='a') ) {
int LA13_30 = input.LA(6);
if ( (LA13_30=='m') ) {
int LA13_33 = input.LA(7);
if ( ((LA13_33 >= '0' && LA13_33 <= '9')||(LA13_33 >= 'A' && LA13_33 <= 'Z')||LA13_33=='_'||(LA13_33 >= 'a' && LA13_33 <= 'z')) ) {
alt13=15;
}
else {
alt13=13;
}
}
else {
alt13=15;
}
}
else {
alt13=15;
}
}
break;
default:
alt13=15;
}
}
else {
alt13=15;
}
}
else {
alt13=15;
}
}
break;
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
{
alt13=14;
}
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 'e':
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':
{
alt13=15;
}
break;
case '\"':
case '\'':
{
alt13=16;
}
break;
case '/':
{
alt13=17;
}
break;
case '\t':
case '\n':
case '\f':
case '\r':
case ' ':
{
alt13=18;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 13, 0, input);
throw nvae;
}
switch (alt13) {
case 1 :
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:1:10: DOT
{
mDOT();
}
break;
case 2 :
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:1:14: SEMI
{
mSEMI();
}
break;
case 3 :
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:1:19: OPENP
{
mOPENP();
}
break;
case 4 :
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:1:25: CLOSEP
{
mCLOSEP();
}
break;
case 5 :
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:1:32: COMMA
{
mCOMMA();
}
break;
case 6 :
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:1:38: EQUALS
{
mEQUALS();
}
break;
case 7 :
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:1:45: LINKS
{
mLINKS();
}
break;
case 8 :
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:1:51: OPENI
{
mOPENI();
}
break;
case 9 :
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:1:57: CLOSEI
{
mCLOSEI();
}
break;
case 10 :
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:1:64: INT_T
{
mINT_T();
}
break;
case 11 :
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:1:70: DECIMAL_T
{
mDECIMAL_T();
}
break;
case 12 :
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:1:80: STRING_T
{
mSTRING_T();
}
break;
case 13 :
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:1:89: STREAM_T
{
mSTREAM_T();
}
break;
case 14 :
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:1:98: Number
{
mNumber();
}
break;
case 15 :
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:1:105: Identifier
{
mIdentifier();
}
break;
case 16 :
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:1:116: String
{
mString();
}
break;
case 17 :
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:1:123: Comment
{
mComment();
}
break;
case 18 :
// /Users/amkimian/Development/cloud/Rapture/Libs/RaptureCore/src/main/antlr3/rapture/dsl/serfn/Hose.g:1:131: Space
{
mSpace();
}
break;
}
}
protected DFA2 dfa2 = new DFA2(this);
static final String DFA2_eotS =
"\1\uffff\3\4\2\uffff";
static final String DFA2_eofS =
"\6\uffff";
static final String DFA2_minS =
"\1\60\3\56\2\uffff";
static final String DFA2_maxS =
"\2\71\1\56\1\71\2\uffff";
static final String DFA2_acceptS =
"\4\uffff\1\1\1\2";
static final String DFA2_specialS =
"\6\uffff}>";
static final String[] DFA2_transitionS = {
"\1\2\11\1",
"\1\5\1\uffff\12\3",
"\1\5",
"\1\5\1\uffff\12\3",
"",
""
};
static final short[] DFA2_eot = DFA.unpackEncodedString(DFA2_eotS);
static final short[] DFA2_eof = DFA.unpackEncodedString(DFA2_eofS);
static final char[] DFA2_min = DFA.unpackEncodedStringToUnsignedChars(DFA2_minS);
static final char[] DFA2_max = DFA.unpackEncodedStringToUnsignedChars(DFA2_maxS);
static final short[] DFA2_accept = DFA.unpackEncodedString(DFA2_acceptS);
static final short[] DFA2_special = DFA.unpackEncodedString(DFA2_specialS);
static final short[][] DFA2_transition;
static {
int numStates = DFA2_transitionS.length;
DFA2_transition = new short[numStates][];
for (int i=0; i
© 2015 - 2025 Weber Informatics LLC | Privacy Policy