Magentix2
2.1.1
|
Public Member Functions | |
void | setDebugStream (java.io.PrintStream ds) |
NormParserTokenManager (SimpleCharStream stream) | |
NormParserTokenManager (SimpleCharStream stream, int lexState) | |
void | ReInit (SimpleCharStream stream) |
void | ReInit (SimpleCharStream stream, int lexState) |
void | SwitchTo (int lexState) |
Token | getNextToken () |
Public Attributes | |
java.io.PrintStream | debugStream = System.out |
Static Public Attributes | |
static final String[] | jjstrLiteralImages |
static final String[] | lexStateNames |
Protected Member Functions | |
Token | jjFillToken () |
Protected Attributes | |
SimpleCharStream | input_stream |
char | curChar |
Package Attributes | |
int | curLexState = 0 |
int | defaultLexState = 0 |
int | jjnewStateCnt |
int | jjround |
int | jjmatchedPos |
int | jjmatchedKind |
Static Package Attributes | |
static final int[] | jjnextStates |
static final long[] | jjtoToken |
static final long[] | jjtoSkip |
Token Manager.
Definition at line 16 of file NormParserTokenManager.java.
Constructor.
Definition at line 1656 of file NormParserTokenManager.java.
{ if (SimpleCharStream.staticFlag) throw new Error("ERROR: Cannot use a static CharStream class with a non-static lexical analyzer."); input_stream = stream; }
es.upv.dsic.gti_ia.norms.NormParserTokenManager.NormParserTokenManager | ( | SimpleCharStream | stream, |
int | lexState | ||
) |
Constructor.
Definition at line 1663 of file NormParserTokenManager.java.
{ this(stream); SwitchTo(lexState); }
Get the next Token.
Definition at line 1732 of file NormParserTokenManager.java.
{ Token matchedToken; int curPos = 0; EOFLoop : for (;;) { try { curChar = input_stream.BeginToken(); } catch(java.io.IOException e) { jjmatchedKind = 0; matchedToken = jjFillToken(); return matchedToken; } try { input_stream.backup(0); while (curChar <= 32 && (0x100002600L & (1L << curChar)) != 0L) curChar = input_stream.BeginToken(); } catch (java.io.IOException e1) { continue EOFLoop; } jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_0(); if (jjmatchedKind != 0x7fffffff) { if (jjmatchedPos + 1 < curPos) input_stream.backup(curPos - jjmatchedPos - 1); if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L) { matchedToken = jjFillToken(); return matchedToken; } else { continue EOFLoop; } } int error_line = input_stream.getEndLine(); int error_column = input_stream.getEndColumn(); String error_after = null; boolean EOFSeen = false; try { input_stream.readChar(); input_stream.backup(1); } catch (java.io.IOException e1) { EOFSeen = true; error_after = curPos <= 1 ? "" : input_stream.GetImage(); if (curChar == '\n' || curChar == '\r') { error_line++; error_column = 0; } else error_column++; } if (!EOFSeen) { input_stream.backup(1); error_after = curPos <= 1 ? "" : input_stream.GetImage(); } throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR); } }
Token es.upv.dsic.gti_ia.norms.NormParserTokenManager.jjFillToken | ( | ) | [protected] |
Definition at line 1700 of file NormParserTokenManager.java.
{ final Token t; final String curTokenImage; final int beginLine; final int endLine; final int beginColumn; final int endColumn; String im = jjstrLiteralImages[jjmatchedKind]; curTokenImage = (im == null) ? input_stream.GetImage() : im; beginLine = input_stream.getBeginLine(); beginColumn = input_stream.getBeginColumn(); endLine = input_stream.getEndLine(); endColumn = input_stream.getEndColumn(); t = Token.newToken(jjmatchedKind, curTokenImage); t.beginLine = beginLine; t.endLine = endLine; t.beginColumn = beginColumn; t.endColumn = endColumn; return t; }
Reinitialise parser.
Definition at line 1669 of file NormParserTokenManager.java.
{ jjmatchedPos = jjnewStateCnt = 0; curLexState = defaultLexState; input_stream = stream; ReInitRounds(); }
void es.upv.dsic.gti_ia.norms.NormParserTokenManager.ReInit | ( | SimpleCharStream | stream, |
int | lexState | ||
) |
Reinitialise parser.
Definition at line 1685 of file NormParserTokenManager.java.
void es.upv.dsic.gti_ia.norms.NormParserTokenManager.setDebugStream | ( | java.io.PrintStream | ds | ) |
void es.upv.dsic.gti_ia.norms.NormParserTokenManager.SwitchTo | ( | int | lexState | ) |
Switch to specified lex state.
Definition at line 1692 of file NormParserTokenManager.java.
{ if (lexState >= 1 || lexState < 0) throw new TokenMgrError("Error: Ignoring invalid lexical state : " + lexState + ". State unchanged.", TokenMgrError.INVALID_LEXICAL_STATE); else curLexState = lexState; }
char es.upv.dsic.gti_ia.norms.NormParserTokenManager.curChar [protected] |
Definition at line 1654 of file NormParserTokenManager.java.
int es.upv.dsic.gti_ia.norms.NormParserTokenManager.curLexState = 0 [package] |
Definition at line 1724 of file NormParserTokenManager.java.
java.io.PrintStream es.upv.dsic.gti_ia.norms.NormParserTokenManager.debugStream = System.out |
Debug output.
Definition at line 20 of file NormParserTokenManager.java.
int es.upv.dsic.gti_ia.norms.NormParserTokenManager.defaultLexState = 0 [package] |
Definition at line 1725 of file NormParserTokenManager.java.
Definition at line 1651 of file NormParserTokenManager.java.
Definition at line 1729 of file NormParserTokenManager.java.
Definition at line 1728 of file NormParserTokenManager.java.
Definition at line 1726 of file NormParserTokenManager.java.
final int [] es.upv.dsic.gti_ia.norms.NormParserTokenManager.jjnextStates [static, package] |
{ 70, 80, 55, 61, }
Definition at line 1613 of file NormParserTokenManager.java.
int es.upv.dsic.gti_ia.norms.NormParserTokenManager.jjround [package] |
Definition at line 1727 of file NormParserTokenManager.java.
final String [] es.upv.dsic.gti_ia.norms.NormParserTokenManager.jjstrLiteralImages [static] |
{ "", null, null, null, null, null, "\141\147\145\156\164\116\141\155\145", "\162\157\154\145\116\141\155\145", "\160\157\163\151\164\151\157\156\116\141\155\145", "\46", "\174", "\156\157\164", "\134\75\75", "\75\75", "\74", "\74\75", "\76", "\76\75", "\53", "\55", "\52", "\52\52", "\57", "\144\151\166", "\155\157\144", "\162\145\147\151\163\164\145\162\125\156\151\164", "\144\145\162\145\147\151\163\164\145\162\125\156\151\164", "\162\145\147\151\163\164\145\162\122\157\154\145", "\144\145\162\145\147\151\163\164\145\162\122\157\154\145", "\162\145\147\151\163\164\145\162\116\157\162\155", "\144\145\162\145\147\151\163\164\145\162\116\157\162\155", "\141\154\154\157\143\141\164\145\122\157\154\145", "\144\145\141\154\154\157\143\141\164\145\122\157\154\145", "\152\157\151\156\125\156\151\164", "\151\156\146\157\162\155\101\147\145\156\164\122\157\154\145", "\151\156\146\157\162\155\115\145\155\142\145\162\163", "\151\156\146\157\162\155\121\165\141\156\164\151\164\171\115\145\155\142\145\162\163", "\151\156\146\157\162\155\125\156\151\164", "\151\156\146\157\162\155\125\156\151\164\122\157\154\145\163", "\151\156\146\157\162\155\124\141\162\147\145\164\116\157\162\155\163", "\151\156\146\157\162\155\122\157\154\145", "\151\156\146\157\162\155\116\157\162\155", "\141\143\161\165\151\162\145\122\157\154\145", "\154\145\141\166\145\122\157\154\145", null, null, null, null, "\151\163\125\156\151\164", "\150\141\163\124\171\160\145", "\150\141\163\120\141\162\145\156\164", "\151\163\122\157\154\145", "\150\141\163\101\143\143\145\163\163\151\142\151\154\151\164\171", "\150\141\163\126\151\163\151\142\151\154\151\164\171", "\150\141\163\120\157\163\151\164\151\157\156", "\151\163\116\157\162\155", "\150\141\163\104\145\157\156\164\151\143", "\150\141\163\124\141\162\147\145\164", "\150\141\163\101\143\164\151\157\156", "\151\163\101\147\145\156\164", "\160\154\141\171\163\122\157\154\145", "\162\157\154\145\103\141\162\144\151\156\141\154\151\164\171", "\160\157\163\151\164\151\157\156\103\141\162\144\151\156\141\154\151\164\171", null, null, null, "\100", "\133", "\54", "\135", "\72", "\137", "\50", "\51", }
Token literal values.
Definition at line 1618 of file NormParserTokenManager.java.
final long [] es.upv.dsic.gti_ia.norms.NormParserTokenManager.jjtoSkip [static, package] |
{ 0x1eL, 0x0L, }
Definition at line 1648 of file NormParserTokenManager.java.
final long [] es.upv.dsic.gti_ia.norms.NormParserTokenManager.jjtoToken [static, package] |
{ 0xffffffffffffffe1L, 0x3ffL, }
Definition at line 1645 of file NormParserTokenManager.java.
final String [] es.upv.dsic.gti_ia.norms.NormParserTokenManager.lexStateNames [static] |
{
"DEFAULT",
}
Lexer state names.
Definition at line 1642 of file NormParserTokenManager.java.