mirror of
https://github.com/arduino/Arduino.git
synced 2024-12-04 15:24:12 +01:00
2746 lines
71 KiB
Java
2746 lines
71 KiB
Java
// $ANTLR 2.7.2: "StdCParser.g" -> "StdCLexer.java"$
|
|
|
|
package processing.app.preproc;
|
|
import java.io.*;
|
|
|
|
import antlr.CommonAST;
|
|
import antlr.DumpASTVisitor;
|
|
|
|
import java.io.InputStream;
|
|
import antlr.TokenStreamException;
|
|
import antlr.TokenStreamIOException;
|
|
import antlr.TokenStreamRecognitionException;
|
|
import antlr.CharStreamException;
|
|
import antlr.CharStreamIOException;
|
|
import antlr.ANTLRException;
|
|
import java.io.Reader;
|
|
import java.util.Hashtable;
|
|
import antlr.CharScanner;
|
|
import antlr.InputBuffer;
|
|
import antlr.ByteBuffer;
|
|
import antlr.CharBuffer;
|
|
import antlr.Token;
|
|
import antlr.CommonToken;
|
|
import antlr.RecognitionException;
|
|
import antlr.NoViableAltForCharException;
|
|
import antlr.MismatchedCharException;
|
|
import antlr.TokenStream;
|
|
import antlr.ANTLRHashString;
|
|
import antlr.LexerSharedInputState;
|
|
import antlr.collections.impl.BitSet;
|
|
import antlr.SemanticException;
|
|
|
|
// import CToken;
|
|
import java.io.*;
|
|
// import LineObject;
|
|
import antlr.*;
|
|
|
|
public class StdCLexer extends antlr.CharScanner implements STDCTokenTypes, TokenStream
|
|
{
|
|
|
|
LineObject lineObject = new LineObject();
|
|
String originalSource = "";
|
|
PreprocessorInfoChannel preprocessorInfoChannel = new PreprocessorInfoChannel();
|
|
int tokenNumber = 0;
|
|
boolean countingTokens = true;
|
|
int deferredLineCount = 0;
|
|
|
|
public void setCountingTokens(boolean ct)
|
|
{
|
|
countingTokens = ct;
|
|
if ( countingTokens ) {
|
|
tokenNumber = 0;
|
|
}
|
|
else {
|
|
tokenNumber = 1;
|
|
}
|
|
}
|
|
|
|
public void setOriginalSource(String src)
|
|
{
|
|
originalSource = src;
|
|
lineObject.setSource(src);
|
|
}
|
|
public void setSource(String src)
|
|
{
|
|
lineObject.setSource(src);
|
|
}
|
|
|
|
public PreprocessorInfoChannel getPreprocessorInfoChannel()
|
|
{
|
|
return preprocessorInfoChannel;
|
|
}
|
|
|
|
public void setPreprocessingDirective(String pre)
|
|
{
|
|
preprocessorInfoChannel.addLineForTokenNumber( pre, new Integer(tokenNumber) );
|
|
}
|
|
|
|
protected Token makeToken(int t)
|
|
{
|
|
if ( t != Token.SKIP && countingTokens) {
|
|
tokenNumber++;
|
|
}
|
|
CToken tok = (CToken) super.makeToken(t);
|
|
tok.setLine(lineObject.line);
|
|
tok.setSource(lineObject.source);
|
|
tok.setTokenNumber(tokenNumber);
|
|
|
|
lineObject.line += deferredLineCount;
|
|
deferredLineCount = 0;
|
|
return tok;
|
|
}
|
|
|
|
public void deferredNewline() {
|
|
deferredLineCount++;
|
|
}
|
|
|
|
public void newline() {
|
|
lineObject.newline();
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public StdCLexer(InputStream in) {
|
|
this(new ByteBuffer(in));
|
|
}
|
|
public StdCLexer(Reader in) {
|
|
this(new CharBuffer(in));
|
|
}
|
|
public StdCLexer(InputBuffer ib) {
|
|
this(new LexerSharedInputState(ib));
|
|
}
|
|
public StdCLexer(LexerSharedInputState state) {
|
|
super(state);
|
|
caseSensitiveLiterals = true;
|
|
setCaseSensitive(true);
|
|
literals = new Hashtable();
|
|
literals.put(new ANTLRHashString("switch", this), new Integer(48));
|
|
literals.put(new ANTLRHashString("case", this), new Integer(44));
|
|
literals.put(new ANTLRHashString("for", this), new Integer(39));
|
|
literals.put(new ANTLRHashString("register", this), new Integer(14));
|
|
literals.put(new ANTLRHashString("sizeof", this), new Integer(79));
|
|
literals.put(new ANTLRHashString("auto", this), new Integer(13));
|
|
literals.put(new ANTLRHashString("void", this), new Integer(18));
|
|
literals.put(new ANTLRHashString("float", this), new Integer(23));
|
|
literals.put(new ANTLRHashString("continue", this), new Integer(41));
|
|
literals.put(new ANTLRHashString("long", this), new Integer(22));
|
|
literals.put(new ANTLRHashString("do", this), new Integer(38));
|
|
literals.put(new ANTLRHashString("typedef", this), new Integer(4));
|
|
literals.put(new ANTLRHashString("short", this), new Integer(20));
|
|
literals.put(new ANTLRHashString("signed", this), new Integer(25));
|
|
literals.put(new ANTLRHashString("enum", this), new Integer(12));
|
|
literals.put(new ANTLRHashString("asm", this), new Integer(5));
|
|
literals.put(new ANTLRHashString("static", this), new Integer(16));
|
|
literals.put(new ANTLRHashString("char", this), new Integer(19));
|
|
literals.put(new ANTLRHashString("union", this), new Integer(11));
|
|
literals.put(new ANTLRHashString("while", this), new Integer(37));
|
|
literals.put(new ANTLRHashString("const", this), new Integer(17));
|
|
literals.put(new ANTLRHashString("break", this), new Integer(42));
|
|
literals.put(new ANTLRHashString("extern", this), new Integer(15));
|
|
literals.put(new ANTLRHashString("return", this), new Integer(43));
|
|
literals.put(new ANTLRHashString("if", this), new Integer(46));
|
|
literals.put(new ANTLRHashString("int", this), new Integer(21));
|
|
literals.put(new ANTLRHashString("double", this), new Integer(24));
|
|
literals.put(new ANTLRHashString("volatile", this), new Integer(6));
|
|
literals.put(new ANTLRHashString("default", this), new Integer(45));
|
|
literals.put(new ANTLRHashString("unsigned", this), new Integer(26));
|
|
literals.put(new ANTLRHashString("struct", this), new Integer(10));
|
|
literals.put(new ANTLRHashString("else", this), new Integer(47));
|
|
literals.put(new ANTLRHashString("goto", this), new Integer(40));
|
|
}
|
|
|
|
public Token nextToken() throws TokenStreamException {
|
|
Token theRetToken=null;
|
|
tryAgain:
|
|
for (;;) {
|
|
Token _token = null;
|
|
int _ttype = Token.INVALID_TYPE;
|
|
resetText();
|
|
try { // for char stream error handling
|
|
try { // for lexical error handling
|
|
switch ( LA(1)) {
|
|
case ':':
|
|
{
|
|
mCOLON(true);
|
|
theRetToken=_returnToken;
|
|
break;
|
|
}
|
|
case ',':
|
|
{
|
|
mCOMMA(true);
|
|
theRetToken=_returnToken;
|
|
break;
|
|
}
|
|
case '?':
|
|
{
|
|
mQUESTION(true);
|
|
theRetToken=_returnToken;
|
|
break;
|
|
}
|
|
case ';':
|
|
{
|
|
mSEMI(true);
|
|
theRetToken=_returnToken;
|
|
break;
|
|
}
|
|
case '(':
|
|
{
|
|
mLPAREN(true);
|
|
theRetToken=_returnToken;
|
|
break;
|
|
}
|
|
case ')':
|
|
{
|
|
mRPAREN(true);
|
|
theRetToken=_returnToken;
|
|
break;
|
|
}
|
|
case '[':
|
|
{
|
|
mLBRACKET(true);
|
|
theRetToken=_returnToken;
|
|
break;
|
|
}
|
|
case ']':
|
|
{
|
|
mRBRACKET(true);
|
|
theRetToken=_returnToken;
|
|
break;
|
|
}
|
|
case '{':
|
|
{
|
|
mLCURLY(true);
|
|
theRetToken=_returnToken;
|
|
break;
|
|
}
|
|
case '}':
|
|
{
|
|
mRCURLY(true);
|
|
theRetToken=_returnToken;
|
|
break;
|
|
}
|
|
case '~':
|
|
{
|
|
mBNOT(true);
|
|
theRetToken=_returnToken;
|
|
break;
|
|
}
|
|
case '#':
|
|
{
|
|
mPREPROC_DIRECTIVE(true);
|
|
theRetToken=_returnToken;
|
|
break;
|
|
}
|
|
case '.': case '0': case '1': case '2':
|
|
case '3': case '4': case '5': case '6':
|
|
case '7': case '8': case '9':
|
|
{
|
|
mNumber(true);
|
|
theRetToken=_returnToken;
|
|
break;
|
|
}
|
|
case '"':
|
|
{
|
|
mStringLiteral(true);
|
|
theRetToken=_returnToken;
|
|
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':
|
|
{
|
|
mID(true);
|
|
theRetToken=_returnToken;
|
|
break;
|
|
}
|
|
case '\'':
|
|
{
|
|
mCharLiteral(true);
|
|
theRetToken=_returnToken;
|
|
break;
|
|
}
|
|
default:
|
|
if ((LA(1)=='>') && (LA(2)=='>') && (LA(3)=='=')) {
|
|
mRSHIFT_ASSIGN(true);
|
|
theRetToken=_returnToken;
|
|
}
|
|
else if ((LA(1)=='<') && (LA(2)=='<') && (LA(3)=='=')) {
|
|
mLSHIFT_ASSIGN(true);
|
|
theRetToken=_returnToken;
|
|
}
|
|
else if ((LA(1)=='-') && (LA(2)=='>')) {
|
|
mPTR(true);
|
|
theRetToken=_returnToken;
|
|
}
|
|
else if ((LA(1)=='=') && (LA(2)=='=')) {
|
|
mEQUAL(true);
|
|
theRetToken=_returnToken;
|
|
}
|
|
else if ((LA(1)=='!') && (LA(2)=='=')) {
|
|
mNOT_EQUAL(true);
|
|
theRetToken=_returnToken;
|
|
}
|
|
else if ((LA(1)=='<') && (LA(2)=='=')) {
|
|
mLTE(true);
|
|
theRetToken=_returnToken;
|
|
}
|
|
else if ((LA(1)=='>') && (LA(2)=='=')) {
|
|
mGTE(true);
|
|
theRetToken=_returnToken;
|
|
}
|
|
else if ((LA(1)=='/') && (LA(2)=='=')) {
|
|
mDIV_ASSIGN(true);
|
|
theRetToken=_returnToken;
|
|
}
|
|
else if ((LA(1)=='+') && (LA(2)=='=')) {
|
|
mPLUS_ASSIGN(true);
|
|
theRetToken=_returnToken;
|
|
}
|
|
else if ((LA(1)=='+') && (LA(2)=='+')) {
|
|
mINC(true);
|
|
theRetToken=_returnToken;
|
|
}
|
|
else if ((LA(1)=='-') && (LA(2)=='=')) {
|
|
mMINUS_ASSIGN(true);
|
|
theRetToken=_returnToken;
|
|
}
|
|
else if ((LA(1)=='-') && (LA(2)=='-')) {
|
|
mDEC(true);
|
|
theRetToken=_returnToken;
|
|
}
|
|
else if ((LA(1)=='*') && (LA(2)=='=')) {
|
|
mSTAR_ASSIGN(true);
|
|
theRetToken=_returnToken;
|
|
}
|
|
else if ((LA(1)=='%') && (LA(2)=='=')) {
|
|
mMOD_ASSIGN(true);
|
|
theRetToken=_returnToken;
|
|
}
|
|
else if ((LA(1)=='>') && (LA(2)=='>') && (true)) {
|
|
mRSHIFT(true);
|
|
theRetToken=_returnToken;
|
|
}
|
|
else if ((LA(1)=='<') && (LA(2)=='<') && (true)) {
|
|
mLSHIFT(true);
|
|
theRetToken=_returnToken;
|
|
}
|
|
else if ((LA(1)=='&') && (LA(2)=='&')) {
|
|
mLAND(true);
|
|
theRetToken=_returnToken;
|
|
}
|
|
else if ((LA(1)=='|') && (LA(2)=='|')) {
|
|
mLOR(true);
|
|
theRetToken=_returnToken;
|
|
}
|
|
else if ((LA(1)=='&') && (LA(2)=='=')) {
|
|
mBAND_ASSIGN(true);
|
|
theRetToken=_returnToken;
|
|
}
|
|
else if ((LA(1)=='|') && (LA(2)=='=')) {
|
|
mBOR_ASSIGN(true);
|
|
theRetToken=_returnToken;
|
|
}
|
|
else if ((LA(1)=='^') && (LA(2)=='=')) {
|
|
mBXOR_ASSIGN(true);
|
|
theRetToken=_returnToken;
|
|
}
|
|
else if ((LA(1)=='/') && (LA(2)=='*')) {
|
|
mComment(true);
|
|
theRetToken=_returnToken;
|
|
}
|
|
else if ((LA(1)=='/') && (LA(2)=='/')) {
|
|
mCPPComment(true);
|
|
theRetToken=_returnToken;
|
|
}
|
|
else if ((LA(1)=='=') && (true)) {
|
|
mASSIGN(true);
|
|
theRetToken=_returnToken;
|
|
}
|
|
else if ((LA(1)=='<') && (true)) {
|
|
mLT(true);
|
|
theRetToken=_returnToken;
|
|
}
|
|
else if ((LA(1)=='>') && (true)) {
|
|
mGT(true);
|
|
theRetToken=_returnToken;
|
|
}
|
|
else if ((LA(1)=='/') && (true)) {
|
|
mDIV(true);
|
|
theRetToken=_returnToken;
|
|
}
|
|
else if ((LA(1)=='+') && (true)) {
|
|
mPLUS(true);
|
|
theRetToken=_returnToken;
|
|
}
|
|
else if ((LA(1)=='-') && (true)) {
|
|
mMINUS(true);
|
|
theRetToken=_returnToken;
|
|
}
|
|
else if ((LA(1)=='*') && (true)) {
|
|
mSTAR(true);
|
|
theRetToken=_returnToken;
|
|
}
|
|
else if ((LA(1)=='%') && (true)) {
|
|
mMOD(true);
|
|
theRetToken=_returnToken;
|
|
}
|
|
else if ((LA(1)=='!') && (true)) {
|
|
mLNOT(true);
|
|
theRetToken=_returnToken;
|
|
}
|
|
else if ((LA(1)=='&') && (true)) {
|
|
mBAND(true);
|
|
theRetToken=_returnToken;
|
|
}
|
|
else if ((LA(1)=='|') && (true)) {
|
|
mBOR(true);
|
|
theRetToken=_returnToken;
|
|
}
|
|
else if ((LA(1)=='^') && (true)) {
|
|
mBXOR(true);
|
|
theRetToken=_returnToken;
|
|
}
|
|
else if ((_tokenSet_0.member(LA(1)))) {
|
|
mWhitespace(true);
|
|
theRetToken=_returnToken;
|
|
}
|
|
else {
|
|
if (LA(1)==EOF_CHAR) {uponEOF(); _returnToken = makeToken(Token.EOF_TYPE);}
|
|
else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
|
|
}
|
|
}
|
|
if ( _returnToken==null ) continue tryAgain; // found SKIP token
|
|
_ttype = _returnToken.getType();
|
|
_returnToken.setType(_ttype);
|
|
return _returnToken;
|
|
}
|
|
catch (RecognitionException e) {
|
|
throw new TokenStreamRecognitionException(e);
|
|
}
|
|
}
|
|
catch (CharStreamException cse) {
|
|
if ( cse instanceof CharStreamIOException ) {
|
|
throw new TokenStreamIOException(((CharStreamIOException)cse).io);
|
|
}
|
|
else {
|
|
throw new TokenStreamException(cse.getMessage());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
protected final void mVocabulary(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = Vocabulary;
|
|
int _saveIndex;
|
|
|
|
matchRange('\3','\377');
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
public final void mASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = ASSIGN;
|
|
int _saveIndex;
|
|
|
|
match('=');
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
public final void mCOLON(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = COLON;
|
|
int _saveIndex;
|
|
|
|
match(':');
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
public final void mCOMMA(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = COMMA;
|
|
int _saveIndex;
|
|
|
|
match(',');
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
public final void mQUESTION(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = QUESTION;
|
|
int _saveIndex;
|
|
|
|
match('?');
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
public final void mSEMI(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = SEMI;
|
|
int _saveIndex;
|
|
|
|
match(';');
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
public final void mPTR(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = PTR;
|
|
int _saveIndex;
|
|
|
|
match("->");
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
protected final void mDOT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = DOT;
|
|
int _saveIndex;
|
|
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
protected final void mVARARGS(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = VARARGS;
|
|
int _saveIndex;
|
|
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
public final void mLPAREN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = LPAREN;
|
|
int _saveIndex;
|
|
|
|
match('(');
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
public final void mRPAREN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = RPAREN;
|
|
int _saveIndex;
|
|
|
|
match(')');
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
public final void mLBRACKET(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = LBRACKET;
|
|
int _saveIndex;
|
|
|
|
match('[');
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
public final void mRBRACKET(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = RBRACKET;
|
|
int _saveIndex;
|
|
|
|
match(']');
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
public final void mLCURLY(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = LCURLY;
|
|
int _saveIndex;
|
|
|
|
match('{');
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
public final void mRCURLY(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = RCURLY;
|
|
int _saveIndex;
|
|
|
|
match('}');
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
public final void mEQUAL(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = EQUAL;
|
|
int _saveIndex;
|
|
|
|
match("==");
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
public final void mNOT_EQUAL(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = NOT_EQUAL;
|
|
int _saveIndex;
|
|
|
|
match("!=");
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
public final void mLTE(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = LTE;
|
|
int _saveIndex;
|
|
|
|
match("<=");
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
public final void mLT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = LT;
|
|
int _saveIndex;
|
|
|
|
match("<");
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
public final void mGTE(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = GTE;
|
|
int _saveIndex;
|
|
|
|
match(">=");
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
public final void mGT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = GT;
|
|
int _saveIndex;
|
|
|
|
match(">");
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
public final void mDIV(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = DIV;
|
|
int _saveIndex;
|
|
|
|
match('/');
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
public final void mDIV_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = DIV_ASSIGN;
|
|
int _saveIndex;
|
|
|
|
match("/=");
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
public final void mPLUS(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = PLUS;
|
|
int _saveIndex;
|
|
|
|
match('+');
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
public final void mPLUS_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = PLUS_ASSIGN;
|
|
int _saveIndex;
|
|
|
|
match("+=");
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
public final void mINC(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = INC;
|
|
int _saveIndex;
|
|
|
|
match("++");
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
public final void mMINUS(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = MINUS;
|
|
int _saveIndex;
|
|
|
|
match('-');
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
public final void mMINUS_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = MINUS_ASSIGN;
|
|
int _saveIndex;
|
|
|
|
match("-=");
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
public final void mDEC(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = DEC;
|
|
int _saveIndex;
|
|
|
|
match("--");
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
public final void mSTAR(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = STAR;
|
|
int _saveIndex;
|
|
|
|
match('*');
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
public final void mSTAR_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = STAR_ASSIGN;
|
|
int _saveIndex;
|
|
|
|
match("*=");
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
public final void mMOD(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = MOD;
|
|
int _saveIndex;
|
|
|
|
match('%');
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
public final void mMOD_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = MOD_ASSIGN;
|
|
int _saveIndex;
|
|
|
|
match("%=");
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
public final void mRSHIFT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = RSHIFT;
|
|
int _saveIndex;
|
|
|
|
match(">>");
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
public final void mRSHIFT_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = RSHIFT_ASSIGN;
|
|
int _saveIndex;
|
|
|
|
match(">>=");
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
public final void mLSHIFT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = LSHIFT;
|
|
int _saveIndex;
|
|
|
|
match("<<");
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
public final void mLSHIFT_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = LSHIFT_ASSIGN;
|
|
int _saveIndex;
|
|
|
|
match("<<=");
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
public final void mLAND(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = LAND;
|
|
int _saveIndex;
|
|
|
|
match("&&");
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
public final void mLNOT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = LNOT;
|
|
int _saveIndex;
|
|
|
|
match('!');
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
public final void mLOR(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = LOR;
|
|
int _saveIndex;
|
|
|
|
match("||");
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
public final void mBAND(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = BAND;
|
|
int _saveIndex;
|
|
|
|
match('&');
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
public final void mBAND_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = BAND_ASSIGN;
|
|
int _saveIndex;
|
|
|
|
match("&=");
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
public final void mBNOT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = BNOT;
|
|
int _saveIndex;
|
|
|
|
match('~');
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
public final void mBOR(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = BOR;
|
|
int _saveIndex;
|
|
|
|
match('|');
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
public final void mBOR_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = BOR_ASSIGN;
|
|
int _saveIndex;
|
|
|
|
match("|=");
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
public final void mBXOR(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = BXOR;
|
|
int _saveIndex;
|
|
|
|
match('^');
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
public final void mBXOR_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = BXOR_ASSIGN;
|
|
int _saveIndex;
|
|
|
|
match("^=");
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
public final void mWhitespace(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = Whitespace;
|
|
int _saveIndex;
|
|
|
|
{
|
|
if ((LA(1)=='\r') && (LA(2)=='\n')) {
|
|
match("\r\n");
|
|
if ( inputState.guessing==0 ) {
|
|
newline();
|
|
}
|
|
}
|
|
else if ((_tokenSet_1.member(LA(1)))) {
|
|
{
|
|
switch ( LA(1)) {
|
|
case '\u0003': case '\u0004': case '\u0005': case '\u0006':
|
|
case '\u0007': case '\u0008':
|
|
{
|
|
matchRange('\003','\010');
|
|
break;
|
|
}
|
|
case '\t':
|
|
{
|
|
match('\t');
|
|
break;
|
|
}
|
|
case '\u000b':
|
|
{
|
|
match('\013');
|
|
break;
|
|
}
|
|
case '\u000c':
|
|
{
|
|
match('\f');
|
|
break;
|
|
}
|
|
case '\u000e': case '\u000f': case '\u0010': case '\u0011':
|
|
case '\u0012': case '\u0013': case '\u0014': case '\u0015':
|
|
case '\u0016': case '\u0017': case '\u0018': case '\u0019':
|
|
case '\u001a': case '\u001b': case '\u001c': case '\u001d':
|
|
case '\u001e': case '\u001f':
|
|
{
|
|
matchRange('\016','\037');
|
|
break;
|
|
}
|
|
case ' ':
|
|
{
|
|
match(' ');
|
|
break;
|
|
}
|
|
default:
|
|
if (((LA(1) >= '\u007f' && LA(1) <= '\u00ff'))) {
|
|
matchRange('\177','\377');
|
|
}
|
|
else {
|
|
throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
else if ((LA(1)=='\n'||LA(1)=='\r') && (true)) {
|
|
{
|
|
switch ( LA(1)) {
|
|
case '\n':
|
|
{
|
|
match('\n');
|
|
break;
|
|
}
|
|
case '\r':
|
|
{
|
|
match('\r');
|
|
break;
|
|
}
|
|
default:
|
|
{
|
|
throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
|
|
}
|
|
}
|
|
}
|
|
if ( inputState.guessing==0 ) {
|
|
newline();
|
|
}
|
|
}
|
|
else {
|
|
throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
|
|
}
|
|
|
|
}
|
|
if ( inputState.guessing==0 ) {
|
|
_ttype = Token.SKIP;
|
|
}
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
public final void mComment(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = Comment;
|
|
int _saveIndex;
|
|
|
|
match("/*");
|
|
{
|
|
_loop269:
|
|
do {
|
|
if (((LA(1)=='*') && ((LA(2) >= '\u0003' && LA(2) <= '\u00ff')) && ((LA(3) >= '\u0003' && LA(3) <= '\u00ff')))&&( LA(2) != '/' )) {
|
|
match('*');
|
|
}
|
|
else if ((LA(1)=='\r') && (LA(2)=='\n') && ((LA(3) >= '\u0003' && LA(3) <= '\u00ff'))) {
|
|
match("\r\n");
|
|
if ( inputState.guessing==0 ) {
|
|
deferredNewline();
|
|
}
|
|
}
|
|
else if ((LA(1)=='\n'||LA(1)=='\r') && ((LA(2) >= '\u0003' && LA(2) <= '\u00ff')) && ((LA(3) >= '\u0003' && LA(3) <= '\u00ff'))) {
|
|
{
|
|
switch ( LA(1)) {
|
|
case '\r':
|
|
{
|
|
match('\r');
|
|
break;
|
|
}
|
|
case '\n':
|
|
{
|
|
match('\n');
|
|
break;
|
|
}
|
|
default:
|
|
{
|
|
throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
|
|
}
|
|
}
|
|
}
|
|
if ( inputState.guessing==0 ) {
|
|
deferredNewline();
|
|
}
|
|
}
|
|
else if ((_tokenSet_2.member(LA(1)))) {
|
|
{
|
|
match(_tokenSet_2);
|
|
}
|
|
}
|
|
else {
|
|
break _loop269;
|
|
}
|
|
|
|
} while (true);
|
|
}
|
|
match("*/");
|
|
if ( inputState.guessing==0 ) {
|
|
_ttype = Token.SKIP;
|
|
|
|
}
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
public final void mCPPComment(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = CPPComment;
|
|
int _saveIndex;
|
|
|
|
match("//");
|
|
{
|
|
_loop273:
|
|
do {
|
|
if ((_tokenSet_3.member(LA(1)))) {
|
|
{
|
|
match(_tokenSet_3);
|
|
}
|
|
}
|
|
else {
|
|
break _loop273;
|
|
}
|
|
|
|
} while (true);
|
|
}
|
|
if ( inputState.guessing==0 ) {
|
|
|
|
_ttype = Token.SKIP;
|
|
|
|
}
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
public final void mPREPROC_DIRECTIVE(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = PREPROC_DIRECTIVE;
|
|
int _saveIndex;
|
|
|
|
match('#');
|
|
{
|
|
boolean synPredMatched280 = false;
|
|
if (((_tokenSet_4.member(LA(1))) && (_tokenSet_5.member(LA(2))) && (_tokenSet_6.member(LA(3))))) {
|
|
int _m280 = mark();
|
|
synPredMatched280 = true;
|
|
inputState.guessing++;
|
|
try {
|
|
{
|
|
switch ( LA(1)) {
|
|
case 'l':
|
|
{
|
|
match("line");
|
|
break;
|
|
}
|
|
case '\t': case '\u000c': case ' ':
|
|
{
|
|
{
|
|
{
|
|
int _cnt279=0;
|
|
_loop279:
|
|
do {
|
|
switch ( LA(1)) {
|
|
case ' ':
|
|
{
|
|
match(' ');
|
|
break;
|
|
}
|
|
case '\t':
|
|
{
|
|
match('\t');
|
|
break;
|
|
}
|
|
case '\u000c':
|
|
{
|
|
match('\014');
|
|
break;
|
|
}
|
|
default:
|
|
{
|
|
if ( _cnt279>=1 ) { break _loop279; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
|
|
}
|
|
}
|
|
_cnt279++;
|
|
} while (true);
|
|
}
|
|
matchRange('0','9');
|
|
}
|
|
break;
|
|
}
|
|
default:
|
|
{
|
|
}
|
|
}
|
|
}
|
|
}
|
|
catch (RecognitionException pe) {
|
|
synPredMatched280 = false;
|
|
}
|
|
rewind(_m280);
|
|
inputState.guessing--;
|
|
}
|
|
if ( synPredMatched280 ) {
|
|
mLineDirective(false);
|
|
}
|
|
else {
|
|
{
|
|
_loop282:
|
|
do {
|
|
if ((_tokenSet_3.member(LA(1)))) {
|
|
matchNot('\n');
|
|
}
|
|
else {
|
|
break _loop282;
|
|
}
|
|
|
|
} while (true);
|
|
}
|
|
if ( inputState.guessing==0 ) {
|
|
setPreprocessingDirective(getText());
|
|
}
|
|
}
|
|
|
|
}
|
|
if ( inputState.guessing==0 ) {
|
|
|
|
_ttype = Token.SKIP;
|
|
|
|
}
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
protected final void mLineDirective(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = LineDirective;
|
|
int _saveIndex;
|
|
Token n=null;
|
|
Token fn=null;
|
|
Token fi=null;
|
|
|
|
boolean oldCountingTokens = countingTokens;
|
|
countingTokens = false;
|
|
|
|
|
|
if ( inputState.guessing==0 ) {
|
|
|
|
lineObject = new LineObject();
|
|
deferredLineCount = 0;
|
|
|
|
}
|
|
{
|
|
switch ( LA(1)) {
|
|
case 'l':
|
|
{
|
|
match("line");
|
|
break;
|
|
}
|
|
case '\t': case '\u000c': case ' ':
|
|
{
|
|
break;
|
|
}
|
|
default:
|
|
{
|
|
throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
|
|
}
|
|
}
|
|
}
|
|
{
|
|
int _cnt288=0;
|
|
_loop288:
|
|
do {
|
|
if ((LA(1)=='\t'||LA(1)=='\u000c'||LA(1)==' ')) {
|
|
mSpace(false);
|
|
}
|
|
else {
|
|
if ( _cnt288>=1 ) { break _loop288; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
|
|
}
|
|
|
|
_cnt288++;
|
|
} while (true);
|
|
}
|
|
mNumber(true);
|
|
n=_returnToken;
|
|
if ( inputState.guessing==0 ) {
|
|
lineObject.setLine(Integer.parseInt(n.getText()));
|
|
}
|
|
{
|
|
int _cnt290=0;
|
|
_loop290:
|
|
do {
|
|
if ((LA(1)=='\t'||LA(1)=='\u000c'||LA(1)==' ') && ((LA(2) >= '\u0003' && LA(2) <= '\u00ff')) && (true)) {
|
|
mSpace(false);
|
|
}
|
|
else {
|
|
if ( _cnt290>=1 ) { break _loop290; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
|
|
}
|
|
|
|
_cnt290++;
|
|
} while (true);
|
|
}
|
|
{
|
|
if ((LA(1)=='"') && ((LA(2) >= '\u0003' && LA(2) <= '\u00ff')) && ((LA(3) >= '\u0003' && LA(3) <= '\u00ff'))) {
|
|
mStringLiteral(true);
|
|
fn=_returnToken;
|
|
if ( inputState.guessing==0 ) {
|
|
try {
|
|
lineObject.setSource(fn.getText().substring(1,fn.getText().length()-1));
|
|
}
|
|
catch (StringIndexOutOfBoundsException e) { /*not possible*/ }
|
|
|
|
}
|
|
}
|
|
else if ((_tokenSet_7.member(LA(1))) && ((LA(2) >= '\u0003' && LA(2) <= '\u00ff')) && (true)) {
|
|
mID(true);
|
|
fi=_returnToken;
|
|
if ( inputState.guessing==0 ) {
|
|
lineObject.setSource(fi.getText());
|
|
}
|
|
}
|
|
else if (((LA(1) >= '\u0003' && LA(1) <= '\u00ff')) && (true) && (true)) {
|
|
}
|
|
else {
|
|
throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
|
|
}
|
|
|
|
}
|
|
{
|
|
_loop293:
|
|
do {
|
|
if ((LA(1)=='\t'||LA(1)=='\u000c'||LA(1)==' ') && ((LA(2) >= '\u0003' && LA(2) <= '\u00ff')) && (true)) {
|
|
mSpace(false);
|
|
}
|
|
else {
|
|
break _loop293;
|
|
}
|
|
|
|
} while (true);
|
|
}
|
|
{
|
|
if ((LA(1)=='1') && ((LA(2) >= '\u0003' && LA(2) <= '\u00ff')) && (true)) {
|
|
match("1");
|
|
if ( inputState.guessing==0 ) {
|
|
lineObject.setEnteringFile(true);
|
|
}
|
|
}
|
|
else if (((LA(1) >= '\u0003' && LA(1) <= '\u00ff')) && (true) && (true)) {
|
|
}
|
|
else {
|
|
throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
|
|
}
|
|
|
|
}
|
|
{
|
|
_loop296:
|
|
do {
|
|
if ((LA(1)=='\t'||LA(1)=='\u000c'||LA(1)==' ') && ((LA(2) >= '\u0003' && LA(2) <= '\u00ff')) && (true)) {
|
|
mSpace(false);
|
|
}
|
|
else {
|
|
break _loop296;
|
|
}
|
|
|
|
} while (true);
|
|
}
|
|
{
|
|
if ((LA(1)=='2') && ((LA(2) >= '\u0003' && LA(2) <= '\u00ff')) && (true)) {
|
|
match("2");
|
|
if ( inputState.guessing==0 ) {
|
|
lineObject.setReturningToFile(true);
|
|
}
|
|
}
|
|
else if (((LA(1) >= '\u0003' && LA(1) <= '\u00ff')) && (true) && (true)) {
|
|
}
|
|
else {
|
|
throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
|
|
}
|
|
|
|
}
|
|
{
|
|
_loop299:
|
|
do {
|
|
if ((LA(1)=='\t'||LA(1)=='\u000c'||LA(1)==' ') && ((LA(2) >= '\u0003' && LA(2) <= '\u00ff')) && (true)) {
|
|
mSpace(false);
|
|
}
|
|
else {
|
|
break _loop299;
|
|
}
|
|
|
|
} while (true);
|
|
}
|
|
{
|
|
if ((LA(1)=='3') && ((LA(2) >= '\u0003' && LA(2) <= '\u00ff')) && (true)) {
|
|
match("3");
|
|
if ( inputState.guessing==0 ) {
|
|
lineObject.setSystemHeader(true);
|
|
}
|
|
}
|
|
else if (((LA(1) >= '\u0003' && LA(1) <= '\u00ff')) && (true) && (true)) {
|
|
}
|
|
else {
|
|
throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
|
|
}
|
|
|
|
}
|
|
{
|
|
_loop302:
|
|
do {
|
|
if ((LA(1)=='\t'||LA(1)=='\u000c'||LA(1)==' ') && ((LA(2) >= '\u0003' && LA(2) <= '\u00ff')) && (true)) {
|
|
mSpace(false);
|
|
}
|
|
else {
|
|
break _loop302;
|
|
}
|
|
|
|
} while (true);
|
|
}
|
|
{
|
|
if ((LA(1)=='4') && ((LA(2) >= '\u0003' && LA(2) <= '\u00ff')) && (true)) {
|
|
match("4");
|
|
if ( inputState.guessing==0 ) {
|
|
lineObject.setTreatAsC(true);
|
|
}
|
|
}
|
|
else if (((LA(1) >= '\u0003' && LA(1) <= '\u00ff')) && (true) && (true)) {
|
|
}
|
|
else {
|
|
throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
|
|
}
|
|
|
|
}
|
|
{
|
|
_loop306:
|
|
do {
|
|
if ((_tokenSet_8.member(LA(1)))) {
|
|
{
|
|
match(_tokenSet_8);
|
|
}
|
|
}
|
|
else {
|
|
break _loop306;
|
|
}
|
|
|
|
} while (true);
|
|
}
|
|
{
|
|
if ((LA(1)=='\r') && (LA(2)=='\n')) {
|
|
match("\r\n");
|
|
}
|
|
else if ((LA(1)=='\r') && (true)) {
|
|
match("\r");
|
|
}
|
|
else if ((LA(1)=='\n')) {
|
|
match("\n");
|
|
}
|
|
else {
|
|
throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
|
|
}
|
|
|
|
}
|
|
if ( inputState.guessing==0 ) {
|
|
|
|
preprocessorInfoChannel.addLineForTokenNumber(new LineObject(lineObject), new Integer(tokenNumber));
|
|
countingTokens = oldCountingTokens;
|
|
|
|
}
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
protected final void mSpace(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = Space;
|
|
int _saveIndex;
|
|
|
|
{
|
|
switch ( LA(1)) {
|
|
case ' ':
|
|
{
|
|
match(' ');
|
|
break;
|
|
}
|
|
case '\t':
|
|
{
|
|
match('\t');
|
|
break;
|
|
}
|
|
case '\u000c':
|
|
{
|
|
match('\014');
|
|
break;
|
|
}
|
|
default:
|
|
{
|
|
throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
|
|
}
|
|
}
|
|
}
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
public final void mNumber(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = Number;
|
|
int _saveIndex;
|
|
|
|
boolean synPredMatched352 = false;
|
|
if ((((LA(1) >= '0' && LA(1) <= '9')) && (_tokenSet_9.member(LA(2))) && (true))) {
|
|
int _m352 = mark();
|
|
synPredMatched352 = true;
|
|
inputState.guessing++;
|
|
try {
|
|
{
|
|
{
|
|
int _cnt350=0;
|
|
_loop350:
|
|
do {
|
|
if (((LA(1) >= '0' && LA(1) <= '9'))) {
|
|
mDigit(false);
|
|
}
|
|
else {
|
|
if ( _cnt350>=1 ) { break _loop350; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
|
|
}
|
|
|
|
_cnt350++;
|
|
} while (true);
|
|
}
|
|
{
|
|
switch ( LA(1)) {
|
|
case '.':
|
|
{
|
|
match('.');
|
|
break;
|
|
}
|
|
case 'e':
|
|
{
|
|
match('e');
|
|
break;
|
|
}
|
|
case 'E':
|
|
{
|
|
match('E');
|
|
break;
|
|
}
|
|
default:
|
|
{
|
|
throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
catch (RecognitionException pe) {
|
|
synPredMatched352 = false;
|
|
}
|
|
rewind(_m352);
|
|
inputState.guessing--;
|
|
}
|
|
if ( synPredMatched352 ) {
|
|
{
|
|
int _cnt354=0;
|
|
_loop354:
|
|
do {
|
|
if (((LA(1) >= '0' && LA(1) <= '9'))) {
|
|
mDigit(false);
|
|
}
|
|
else {
|
|
if ( _cnt354>=1 ) { break _loop354; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
|
|
}
|
|
|
|
_cnt354++;
|
|
} while (true);
|
|
}
|
|
{
|
|
switch ( LA(1)) {
|
|
case '.':
|
|
{
|
|
match('.');
|
|
{
|
|
_loop357:
|
|
do {
|
|
if (((LA(1) >= '0' && LA(1) <= '9'))) {
|
|
mDigit(false);
|
|
}
|
|
else {
|
|
break _loop357;
|
|
}
|
|
|
|
} while (true);
|
|
}
|
|
{
|
|
if ((LA(1)=='E'||LA(1)=='e')) {
|
|
mExponent(false);
|
|
}
|
|
else {
|
|
}
|
|
|
|
}
|
|
break;
|
|
}
|
|
case 'E': case 'e':
|
|
{
|
|
mExponent(false);
|
|
break;
|
|
}
|
|
default:
|
|
{
|
|
throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
|
|
}
|
|
}
|
|
}
|
|
if ( inputState.guessing==0 ) {
|
|
_ttype = DoubleDoubleConst;
|
|
}
|
|
{
|
|
switch ( LA(1)) {
|
|
case 'F': case 'f':
|
|
{
|
|
mFloatSuffix(false);
|
|
if ( inputState.guessing==0 ) {
|
|
_ttype = FloatDoubleConst;
|
|
}
|
|
break;
|
|
}
|
|
case 'L': case 'l':
|
|
{
|
|
mLongSuffix(false);
|
|
if ( inputState.guessing==0 ) {
|
|
_ttype = LongDoubleConst;
|
|
}
|
|
break;
|
|
}
|
|
default:
|
|
{
|
|
}
|
|
}
|
|
}
|
|
}
|
|
else {
|
|
boolean synPredMatched361 = false;
|
|
if (((LA(1)=='.') && (LA(2)=='.'))) {
|
|
int _m361 = mark();
|
|
synPredMatched361 = true;
|
|
inputState.guessing++;
|
|
try {
|
|
{
|
|
match("...");
|
|
}
|
|
}
|
|
catch (RecognitionException pe) {
|
|
synPredMatched361 = false;
|
|
}
|
|
rewind(_m361);
|
|
inputState.guessing--;
|
|
}
|
|
if ( synPredMatched361 ) {
|
|
match("...");
|
|
if ( inputState.guessing==0 ) {
|
|
_ttype = VARARGS;
|
|
}
|
|
}
|
|
else if ((LA(1)=='0') && (LA(2)=='X'||LA(2)=='x')) {
|
|
match('0');
|
|
{
|
|
switch ( LA(1)) {
|
|
case 'x':
|
|
{
|
|
match('x');
|
|
break;
|
|
}
|
|
case 'X':
|
|
{
|
|
match('X');
|
|
break;
|
|
}
|
|
default:
|
|
{
|
|
throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
|
|
}
|
|
}
|
|
}
|
|
{
|
|
int _cnt375=0;
|
|
_loop375:
|
|
do {
|
|
switch ( LA(1)) {
|
|
case 'a': case 'b': case 'c': case 'd':
|
|
case 'e': case 'f':
|
|
{
|
|
matchRange('a','f');
|
|
break;
|
|
}
|
|
case 'A': case 'B': case 'C': case 'D':
|
|
case 'E': case 'F':
|
|
{
|
|
matchRange('A','F');
|
|
break;
|
|
}
|
|
case '0': case '1': case '2': case '3':
|
|
case '4': case '5': case '6': case '7':
|
|
case '8': case '9':
|
|
{
|
|
mDigit(false);
|
|
break;
|
|
}
|
|
default:
|
|
{
|
|
if ( _cnt375>=1 ) { break _loop375; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
|
|
}
|
|
}
|
|
_cnt375++;
|
|
} while (true);
|
|
}
|
|
if ( inputState.guessing==0 ) {
|
|
_ttype = IntHexConst;
|
|
}
|
|
{
|
|
switch ( LA(1)) {
|
|
case 'L': case 'l':
|
|
{
|
|
mLongSuffix(false);
|
|
if ( inputState.guessing==0 ) {
|
|
_ttype = LongHexConst;
|
|
}
|
|
break;
|
|
}
|
|
case 'U': case 'u':
|
|
{
|
|
mUnsignedSuffix(false);
|
|
if ( inputState.guessing==0 ) {
|
|
_ttype = UnsignedHexConst;
|
|
}
|
|
break;
|
|
}
|
|
default:
|
|
{
|
|
}
|
|
}
|
|
}
|
|
}
|
|
else if ((LA(1)=='.') && (true)) {
|
|
match('.');
|
|
if ( inputState.guessing==0 ) {
|
|
_ttype = DOT;
|
|
}
|
|
{
|
|
if (((LA(1) >= '0' && LA(1) <= '9'))) {
|
|
{
|
|
int _cnt364=0;
|
|
_loop364:
|
|
do {
|
|
if (((LA(1) >= '0' && LA(1) <= '9'))) {
|
|
mDigit(false);
|
|
}
|
|
else {
|
|
if ( _cnt364>=1 ) { break _loop364; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
|
|
}
|
|
|
|
_cnt364++;
|
|
} while (true);
|
|
}
|
|
{
|
|
if ((LA(1)=='E'||LA(1)=='e')) {
|
|
mExponent(false);
|
|
}
|
|
else {
|
|
}
|
|
|
|
}
|
|
if ( inputState.guessing==0 ) {
|
|
_ttype = DoubleDoubleConst;
|
|
}
|
|
{
|
|
switch ( LA(1)) {
|
|
case 'F': case 'f':
|
|
{
|
|
mFloatSuffix(false);
|
|
if ( inputState.guessing==0 ) {
|
|
_ttype = FloatDoubleConst;
|
|
}
|
|
break;
|
|
}
|
|
case 'L': case 'l':
|
|
{
|
|
mLongSuffix(false);
|
|
if ( inputState.guessing==0 ) {
|
|
_ttype = LongDoubleConst;
|
|
}
|
|
break;
|
|
}
|
|
default:
|
|
{
|
|
}
|
|
}
|
|
}
|
|
}
|
|
else {
|
|
}
|
|
|
|
}
|
|
}
|
|
else if ((LA(1)=='0') && (true) && (true)) {
|
|
match('0');
|
|
{
|
|
_loop368:
|
|
do {
|
|
if (((LA(1) >= '0' && LA(1) <= '7'))) {
|
|
matchRange('0','7');
|
|
}
|
|
else {
|
|
break _loop368;
|
|
}
|
|
|
|
} while (true);
|
|
}
|
|
if ( inputState.guessing==0 ) {
|
|
_ttype = IntOctalConst;
|
|
}
|
|
{
|
|
switch ( LA(1)) {
|
|
case 'L': case 'l':
|
|
{
|
|
mLongSuffix(false);
|
|
if ( inputState.guessing==0 ) {
|
|
_ttype = LongOctalConst;
|
|
}
|
|
break;
|
|
}
|
|
case 'U': case 'u':
|
|
{
|
|
mUnsignedSuffix(false);
|
|
if ( inputState.guessing==0 ) {
|
|
_ttype = UnsignedOctalConst;
|
|
}
|
|
break;
|
|
}
|
|
default:
|
|
{
|
|
}
|
|
}
|
|
}
|
|
}
|
|
else if (((LA(1) >= '1' && LA(1) <= '9')) && (true) && (true)) {
|
|
matchRange('1','9');
|
|
{
|
|
_loop371:
|
|
do {
|
|
if (((LA(1) >= '0' && LA(1) <= '9'))) {
|
|
mDigit(false);
|
|
}
|
|
else {
|
|
break _loop371;
|
|
}
|
|
|
|
} while (true);
|
|
}
|
|
if ( inputState.guessing==0 ) {
|
|
_ttype = IntIntConst;
|
|
}
|
|
{
|
|
switch ( LA(1)) {
|
|
case 'L': case 'l':
|
|
{
|
|
mLongSuffix(false);
|
|
if ( inputState.guessing==0 ) {
|
|
_ttype = LongIntConst;
|
|
}
|
|
break;
|
|
}
|
|
case 'U': case 'u':
|
|
{
|
|
mUnsignedSuffix(false);
|
|
if ( inputState.guessing==0 ) {
|
|
_ttype = UnsignedIntConst;
|
|
}
|
|
break;
|
|
}
|
|
default:
|
|
{
|
|
}
|
|
}
|
|
}
|
|
}
|
|
else {
|
|
throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
|
|
}
|
|
}
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
public final void mStringLiteral(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = StringLiteral;
|
|
int _saveIndex;
|
|
|
|
match('"');
|
|
{
|
|
_loop315:
|
|
do {
|
|
if ((LA(1)=='\\') && (_tokenSet_10.member(LA(2))) && ((LA(3) >= '\u0003' && LA(3) <= '\u00ff'))) {
|
|
mEscape(false);
|
|
}
|
|
else if ((LA(1)=='\n'||LA(1)=='\r'||LA(1)=='\\') && ((LA(2) >= '\u0003' && LA(2) <= '\u00ff')) && (true)) {
|
|
{
|
|
switch ( LA(1)) {
|
|
case '\r':
|
|
{
|
|
match('\r');
|
|
if ( inputState.guessing==0 ) {
|
|
deferredNewline();
|
|
}
|
|
break;
|
|
}
|
|
case '\n':
|
|
{
|
|
match('\n');
|
|
if ( inputState.guessing==0 ) {
|
|
|
|
deferredNewline();
|
|
_ttype = BadStringLiteral;
|
|
|
|
}
|
|
break;
|
|
}
|
|
case '\\':
|
|
{
|
|
match('\\');
|
|
match('\n');
|
|
if ( inputState.guessing==0 ) {
|
|
|
|
deferredNewline();
|
|
|
|
}
|
|
break;
|
|
}
|
|
default:
|
|
{
|
|
throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
else if ((_tokenSet_11.member(LA(1)))) {
|
|
{
|
|
match(_tokenSet_11);
|
|
}
|
|
}
|
|
else {
|
|
break _loop315;
|
|
}
|
|
|
|
} while (true);
|
|
}
|
|
match('"');
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
public final void mID(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = ID;
|
|
int _saveIndex;
|
|
|
|
{
|
|
switch ( LA(1)) {
|
|
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':
|
|
{
|
|
matchRange('a','z');
|
|
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':
|
|
{
|
|
matchRange('A','Z');
|
|
break;
|
|
}
|
|
case '_':
|
|
{
|
|
match('_');
|
|
break;
|
|
}
|
|
default:
|
|
{
|
|
throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
|
|
}
|
|
}
|
|
}
|
|
{
|
|
_loop380:
|
|
do {
|
|
if (((LA(1) >= 'a' && LA(1) <= 'z')) && (true) && (true)) {
|
|
matchRange('a','z');
|
|
}
|
|
else if (((LA(1) >= 'A' && LA(1) <= 'Z')) && (true) && (true)) {
|
|
matchRange('A','Z');
|
|
}
|
|
else if ((LA(1)=='_') && (true) && (true)) {
|
|
match('_');
|
|
}
|
|
else if (((LA(1) >= '0' && LA(1) <= '9')) && (true) && (true)) {
|
|
matchRange('0','9');
|
|
}
|
|
else {
|
|
break _loop380;
|
|
}
|
|
|
|
} while (true);
|
|
}
|
|
_ttype = testLiteralsTable(_ttype);
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
public final void mCharLiteral(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = CharLiteral;
|
|
int _saveIndex;
|
|
|
|
match('\'');
|
|
{
|
|
if ((LA(1)=='\\') && (_tokenSet_10.member(LA(2))) && (_tokenSet_12.member(LA(3)))) {
|
|
mEscape(false);
|
|
}
|
|
else if ((_tokenSet_13.member(LA(1))) && (LA(2)=='\'') && (true)) {
|
|
{
|
|
match(_tokenSet_13);
|
|
}
|
|
}
|
|
else {
|
|
throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
|
|
}
|
|
|
|
}
|
|
match('\'');
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
protected final void mEscape(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = Escape;
|
|
int _saveIndex;
|
|
|
|
match('\\');
|
|
{
|
|
switch ( LA(1)) {
|
|
case 'a':
|
|
{
|
|
match('a');
|
|
break;
|
|
}
|
|
case 'b':
|
|
{
|
|
match('b');
|
|
break;
|
|
}
|
|
case 'f':
|
|
{
|
|
match('f');
|
|
break;
|
|
}
|
|
case 'n':
|
|
{
|
|
match('n');
|
|
break;
|
|
}
|
|
case 'r':
|
|
{
|
|
match('r');
|
|
break;
|
|
}
|
|
case 't':
|
|
{
|
|
match('t');
|
|
break;
|
|
}
|
|
case 'v':
|
|
{
|
|
match('v');
|
|
break;
|
|
}
|
|
case '"':
|
|
{
|
|
match('"');
|
|
break;
|
|
}
|
|
case '\'':
|
|
{
|
|
match('\'');
|
|
break;
|
|
}
|
|
case '\\':
|
|
{
|
|
match('\\');
|
|
break;
|
|
}
|
|
case '?':
|
|
{
|
|
match('?');
|
|
break;
|
|
}
|
|
case '0': case '1': case '2': case '3':
|
|
{
|
|
{
|
|
matchRange('0','3');
|
|
}
|
|
{
|
|
if (((LA(1) >= '0' && LA(1) <= '9')) && ((LA(2) >= '\u0003' && LA(2) <= '\u00ff')) && (true)) {
|
|
mDigit(false);
|
|
{
|
|
if (((LA(1) >= '0' && LA(1) <= '9')) && ((LA(2) >= '\u0003' && LA(2) <= '\u00ff')) && (true)) {
|
|
mDigit(false);
|
|
}
|
|
else if (((LA(1) >= '\u0003' && LA(1) <= '\u00ff')) && (true) && (true)) {
|
|
}
|
|
else {
|
|
throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
|
|
}
|
|
|
|
}
|
|
}
|
|
else if (((LA(1) >= '\u0003' && LA(1) <= '\u00ff')) && (true) && (true)) {
|
|
}
|
|
else {
|
|
throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
|
|
}
|
|
|
|
}
|
|
break;
|
|
}
|
|
case '4': case '5': case '6': case '7':
|
|
{
|
|
{
|
|
matchRange('4','7');
|
|
}
|
|
{
|
|
if (((LA(1) >= '0' && LA(1) <= '9')) && ((LA(2) >= '\u0003' && LA(2) <= '\u00ff')) && (true)) {
|
|
mDigit(false);
|
|
}
|
|
else if (((LA(1) >= '\u0003' && LA(1) <= '\u00ff')) && (true) && (true)) {
|
|
}
|
|
else {
|
|
throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
|
|
}
|
|
|
|
}
|
|
break;
|
|
}
|
|
case 'x':
|
|
{
|
|
match('x');
|
|
{
|
|
int _cnt325=0;
|
|
_loop325:
|
|
do {
|
|
if (((LA(1) >= '0' && LA(1) <= '9')) && ((LA(2) >= '\u0003' && LA(2) <= '\u00ff')) && (true)) {
|
|
mDigit(false);
|
|
}
|
|
else if (((LA(1) >= 'a' && LA(1) <= 'f')) && ((LA(2) >= '\u0003' && LA(2) <= '\u00ff')) && (true)) {
|
|
matchRange('a','f');
|
|
}
|
|
else if (((LA(1) >= 'A' && LA(1) <= 'F')) && ((LA(2) >= '\u0003' && LA(2) <= '\u00ff')) && (true)) {
|
|
matchRange('A','F');
|
|
}
|
|
else {
|
|
if ( _cnt325>=1 ) { break _loop325; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
|
|
}
|
|
|
|
_cnt325++;
|
|
} while (true);
|
|
}
|
|
break;
|
|
}
|
|
default:
|
|
{
|
|
throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
|
|
}
|
|
}
|
|
}
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
protected final void mBadStringLiteral(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = BadStringLiteral;
|
|
int _saveIndex;
|
|
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
protected final void mDigit(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = Digit;
|
|
int _saveIndex;
|
|
|
|
matchRange('0','9');
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
protected final void mLongSuffix(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = LongSuffix;
|
|
int _saveIndex;
|
|
|
|
switch ( LA(1)) {
|
|
case 'l':
|
|
{
|
|
match('l');
|
|
break;
|
|
}
|
|
case 'L':
|
|
{
|
|
match('L');
|
|
break;
|
|
}
|
|
default:
|
|
{
|
|
throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
|
|
}
|
|
}
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
protected final void mUnsignedSuffix(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = UnsignedSuffix;
|
|
int _saveIndex;
|
|
|
|
switch ( LA(1)) {
|
|
case 'u':
|
|
{
|
|
match('u');
|
|
break;
|
|
}
|
|
case 'U':
|
|
{
|
|
match('U');
|
|
break;
|
|
}
|
|
default:
|
|
{
|
|
throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
|
|
}
|
|
}
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
protected final void mFloatSuffix(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = FloatSuffix;
|
|
int _saveIndex;
|
|
|
|
switch ( LA(1)) {
|
|
case 'f':
|
|
{
|
|
match('f');
|
|
break;
|
|
}
|
|
case 'F':
|
|
{
|
|
match('F');
|
|
break;
|
|
}
|
|
default:
|
|
{
|
|
throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
|
|
}
|
|
}
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
protected final void mExponent(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = Exponent;
|
|
int _saveIndex;
|
|
|
|
{
|
|
switch ( LA(1)) {
|
|
case 'e':
|
|
{
|
|
match('e');
|
|
break;
|
|
}
|
|
case 'E':
|
|
{
|
|
match('E');
|
|
break;
|
|
}
|
|
default:
|
|
{
|
|
throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
|
|
}
|
|
}
|
|
}
|
|
{
|
|
switch ( LA(1)) {
|
|
case '+':
|
|
{
|
|
match('+');
|
|
break;
|
|
}
|
|
case '-':
|
|
{
|
|
match('-');
|
|
break;
|
|
}
|
|
case '0': case '1': case '2': case '3':
|
|
case '4': case '5': case '6': case '7':
|
|
case '8': case '9':
|
|
{
|
|
break;
|
|
}
|
|
default:
|
|
{
|
|
throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
|
|
}
|
|
}
|
|
}
|
|
{
|
|
int _cnt334=0;
|
|
_loop334:
|
|
do {
|
|
if (((LA(1) >= '0' && LA(1) <= '9'))) {
|
|
mDigit(false);
|
|
}
|
|
else {
|
|
if ( _cnt334>=1 ) { break _loop334; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
|
|
}
|
|
|
|
_cnt334++;
|
|
} while (true);
|
|
}
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
protected final void mDoubleDoubleConst(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = DoubleDoubleConst;
|
|
int _saveIndex;
|
|
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
protected final void mFloatDoubleConst(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = FloatDoubleConst;
|
|
int _saveIndex;
|
|
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
protected final void mLongDoubleConst(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = LongDoubleConst;
|
|
int _saveIndex;
|
|
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
protected final void mIntOctalConst(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = IntOctalConst;
|
|
int _saveIndex;
|
|
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
protected final void mLongOctalConst(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = LongOctalConst;
|
|
int _saveIndex;
|
|
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
protected final void mUnsignedOctalConst(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = UnsignedOctalConst;
|
|
int _saveIndex;
|
|
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
protected final void mIntIntConst(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = IntIntConst;
|
|
int _saveIndex;
|
|
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
protected final void mLongIntConst(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = LongIntConst;
|
|
int _saveIndex;
|
|
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
protected final void mUnsignedIntConst(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = UnsignedIntConst;
|
|
int _saveIndex;
|
|
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
protected final void mIntHexConst(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = IntHexConst;
|
|
int _saveIndex;
|
|
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
protected final void mLongHexConst(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = LongHexConst;
|
|
int _saveIndex;
|
|
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
protected final void mUnsignedHexConst(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
|
int _ttype; Token _token=null; int _begin=text.length();
|
|
_ttype = UnsignedHexConst;
|
|
int _saveIndex;
|
|
|
|
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
|
_token = makeToken(_ttype);
|
|
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
|
}
|
|
_returnToken = _token;
|
|
}
|
|
|
|
|
|
private static final long[] mk_tokenSet_0() {
|
|
long[] data = new long[8];
|
|
data[0]=8589934584L;
|
|
data[1]=-9223372036854775808L;
|
|
for (int i = 2; i<=3; i++) { data[i]=-1L; }
|
|
return data;
|
|
}
|
|
public static final BitSet _tokenSet_0 = new BitSet(mk_tokenSet_0());
|
|
private static final long[] mk_tokenSet_1() {
|
|
long[] data = new long[8];
|
|
data[0]=8589925368L;
|
|
data[1]=-9223372036854775808L;
|
|
for (int i = 2; i<=3; i++) { data[i]=-1L; }
|
|
return data;
|
|
}
|
|
public static final BitSet _tokenSet_1 = new BitSet(mk_tokenSet_1());
|
|
private static final long[] mk_tokenSet_2() {
|
|
long[] data = new long[8];
|
|
data[0]=-4398046520328L;
|
|
for (int i = 1; i<=3; i++) { data[i]=-1L; }
|
|
return data;
|
|
}
|
|
public static final BitSet _tokenSet_2 = new BitSet(mk_tokenSet_2());
|
|
private static final long[] mk_tokenSet_3() {
|
|
long[] data = new long[8];
|
|
data[0]=-1032L;
|
|
for (int i = 1; i<=3; i++) { data[i]=-1L; }
|
|
return data;
|
|
}
|
|
public static final BitSet _tokenSet_3 = new BitSet(mk_tokenSet_3());
|
|
private static final long[] mk_tokenSet_4() {
|
|
long[] data = { 4294971904L, 17592186044416L, 0L, 0L, 0L};
|
|
return data;
|
|
}
|
|
public static final BitSet _tokenSet_4 = new BitSet(mk_tokenSet_4());
|
|
private static final long[] mk_tokenSet_5() {
|
|
long[] data = { 288019274214150656L, 2199023255552L, 0L, 0L, 0L};
|
|
return data;
|
|
}
|
|
public static final BitSet _tokenSet_5 = new BitSet(mk_tokenSet_5());
|
|
private static final long[] mk_tokenSet_6() {
|
|
long[] data = { 288019274214150656L, 81152891680722976L, 0L, 0L, 0L};
|
|
return data;
|
|
}
|
|
public static final BitSet _tokenSet_6 = new BitSet(mk_tokenSet_6());
|
|
private static final long[] mk_tokenSet_7() {
|
|
long[] data = { 0L, 576460745995190270L, 0L, 0L, 0L};
|
|
return data;
|
|
}
|
|
public static final BitSet _tokenSet_7 = new BitSet(mk_tokenSet_7());
|
|
private static final long[] mk_tokenSet_8() {
|
|
long[] data = new long[8];
|
|
data[0]=-9224L;
|
|
for (int i = 1; i<=3; i++) { data[i]=-1L; }
|
|
return data;
|
|
}
|
|
public static final BitSet _tokenSet_8 = new BitSet(mk_tokenSet_8());
|
|
private static final long[] mk_tokenSet_9() {
|
|
long[] data = { 288019269919178752L, 137438953504L, 0L, 0L, 0L};
|
|
return data;
|
|
}
|
|
public static final BitSet _tokenSet_9 = new BitSet(mk_tokenSet_9());
|
|
private static final long[] mk_tokenSet_10() {
|
|
long[] data = { -9151595350857875456L, 95772161741946880L, 0L, 0L, 0L};
|
|
return data;
|
|
}
|
|
public static final BitSet _tokenSet_10 = new BitSet(mk_tokenSet_10());
|
|
private static final long[] mk_tokenSet_11() {
|
|
long[] data = new long[8];
|
|
data[0]=-17179878408L;
|
|
data[1]=-268435457L;
|
|
for (int i = 2; i<=3; i++) { data[i]=-1L; }
|
|
return data;
|
|
}
|
|
public static final BitSet _tokenSet_11 = new BitSet(mk_tokenSet_11());
|
|
private static final long[] mk_tokenSet_12() {
|
|
long[] data = { 287949450930814976L, 541165879422L, 0L, 0L, 0L};
|
|
return data;
|
|
}
|
|
public static final BitSet _tokenSet_12 = new BitSet(mk_tokenSet_12());
|
|
private static final long[] mk_tokenSet_13() {
|
|
long[] data = new long[8];
|
|
data[0]=-549755813896L;
|
|
for (int i = 1; i<=3; i++) { data[i]=-1L; }
|
|
return data;
|
|
}
|
|
public static final BitSet _tokenSet_13 = new BitSet(mk_tokenSet_13());
|
|
|
|
}
|