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

mondbranch.command-line-parser.1.2.0.source-code.CmdArgsLexer Maven / Gradle / Ivy

Go to download

Allows a direct call to a main(String[] args) method using an unparsed string containing the arguments.

The newest version!
// Generated from /home/ubuntu/code/command-line-parser/src/main/antlr4/CmdArgs.g4 by ANTLR 4.2.2
package com.github.almondbranch.command_line_parser;
import org.antlr.v4.runtime.Lexer;
import org.antlr.v4.runtime.CharStream;
import org.antlr.v4.runtime.Token;
import org.antlr.v4.runtime.TokenStream;
import org.antlr.v4.runtime.*;
import org.antlr.v4.runtime.atn.*;
import org.antlr.v4.runtime.dfa.DFA;
import org.antlr.v4.runtime.misc.*;

@SuppressWarnings({"all", "warnings", "unchecked", "unused", "cast"})
public class CmdArgsLexer extends Lexer {
	protected static final DFA[] _decisionToDFA;
	protected static final PredictionContextCache _sharedContextCache =
		new PredictionContextCache();
	public static final int
		SPACE=1, REGULAR_ARG=2, DOUBLE_QUOTED_ARG=3, SINGLE_QUOTED_ARG=4;
	public static String[] modeNames = {
		"DEFAULT_MODE"
	};

	public static final String[] tokenNames = {
		"",
		"' '", "REGULAR_ARG", "DOUBLE_QUOTED_ARG", "SINGLE_QUOTED_ARG"
	};
	public static final String[] ruleNames = {
		"SPACE", "REGULAR_ARG", "DOUBLE_QUOTED_ARG", "SINGLE_QUOTED_ARG"
	};


	public CmdArgsLexer(CharStream input) {
		super(input);
		_interp = new LexerATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
	}

	@Override
	public String getGrammarFileName() { return "CmdArgs.g4"; }

	@Override
	public String[] getTokenNames() { return tokenNames; }

	@Override
	public String[] getRuleNames() { return ruleNames; }

	@Override
	public String getSerializedATN() { return _serializedATN; }

	@Override
	public String[] getModeNames() { return modeNames; }

	@Override
	public ATN getATN() { return _ATN; }

	public static final String _serializedATN =
		"\3\u0430\ud6d1\u8206\uad2d\u4417\uaef1\u8d80\uaadd\2\6(\b\1\4\2\t\2\4"+
		"\3\t\3\4\4\t\4\4\5\t\5\3\2\3\2\3\3\3\3\3\3\6\3\21\n\3\r\3\16\3\22\3\4"+
		"\3\4\3\4\3\4\7\4\31\n\4\f\4\16\4\34\13\4\3\4\3\4\3\5\3\5\7\5\"\n\5\f\5"+
		"\16\5%\13\5\3\5\3\5\2\2\6\3\3\5\4\7\5\t\6\3\2\5\5\2\"\"$$))\3\2$$\3\2"+
		")),\2\3\3\2\2\2\2\5\3\2\2\2\2\7\3\2\2\2\2\t\3\2\2\2\3\13\3\2\2\2\5\20"+
		"\3\2\2\2\7\24\3\2\2\2\t\37\3\2\2\2\13\f\7\"\2\2\f\4\3\2\2\2\r\16\7^\2"+
		"\2\16\21\7\"\2\2\17\21\n\2\2\2\20\r\3\2\2\2\20\17\3\2\2\2\21\22\3\2\2"+
		"\2\22\20\3\2\2\2\22\23\3\2\2\2\23\6\3\2\2\2\24\32\7$\2\2\25\26\7^\2\2"+
		"\26\31\7$\2\2\27\31\n\3\2\2\30\25\3\2\2\2\30\27\3\2\2\2\31\34\3\2\2\2"+
		"\32\30\3\2\2\2\32\33\3\2\2\2\33\35\3\2\2\2\34\32\3\2\2\2\35\36\7$\2\2"+
		"\36\b\3\2\2\2\37#\7)\2\2 \"\n\4\2\2! \3\2\2\2\"%\3\2\2\2#!\3\2\2\2#$\3"+
		"\2\2\2$&\3\2\2\2%#\3\2\2\2&\'\7)\2\2\'\n\3\2\2\2\b\2\20\22\30\32#\2";
	public static final ATN _ATN =
		new ATNDeserializer().deserialize(_serializedATN.toCharArray());
	static {
		_decisionToDFA = new DFA[_ATN.getNumberOfDecisions()];
		for (int i = 0; i < _ATN.getNumberOfDecisions(); i++) {
			_decisionToDFA[i] = new DFA(_ATN.getDecisionState(i), i);
		}
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy