|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cuni.pogamut.Parser.Yylex
class Yylex
This class is a scanner generated by JFlex 1.4.1 on 29.8.08 21:33 from the specification file bot_msg.flex
Field Summary | |
---|---|
protected java.lang.Object |
actObj
|
static int |
EINV
|
static int |
GAM_DOM_POINTS
|
static int |
IINV
|
static int |
LIST_INT_DOUBLE
|
static int |
LIST_NAV
|
static int |
LIST_UNREALID_DOUBLE
|
protected java.util.Map<java.lang.Integer,java.lang.Double> |
mapIntDouble
Map for list of String, Double |
protected java.util.Map<java.lang.Integer,java.lang.Double> |
mapIntIDDouble
Map for list of String, Double |
static int |
MSG_ADG
|
static int |
MSG_AIN
|
static int |
MSG_ALIVE
|
static int |
MSG_ATR
|
static int |
MSG_BEG
|
static int |
MSG_BMP
|
static int |
MSG_CONFCH
|
static int |
MSG_CWP
|
static int |
MSG_DAM
|
static int |
MSG_DIE
|
static int |
MSG_DOM
|
static int |
MSG_END
|
static int |
MSG_FAL
|
static int |
MSG_FIN
|
static int |
MSG_FLG
|
static int |
MSG_FTR
|
static int |
MSG_GAM
|
static int |
MSG_HELLO_BOT
|
static int |
MSG_HELLO_CONTROL_SERVER
|
static int |
MSG_HIT
|
static int |
MSG_HRN
|
static int |
MSG_HRP
|
static int |
MSG_IINV
lexical states |
static int |
MSG_INAV
|
static int |
MSG_INV
|
static int |
MSG_JOIN
|
static int |
MSG_KIL
|
static int |
MSG_LEFT
|
static int |
MSG_MAP
|
static int |
MSG_MAPCHANGE
|
static int |
MSG_MOV
|
static int |
MSG_NAV
|
static int |
MSG_NFO
|
static int |
MSG_PLR
|
static int |
MSG_PRJ
|
static int |
MSG_PTH
|
static int |
MSG_RCH
|
static int |
MSG_SEE
|
static int |
MSG_SLF
|
static int |
MSG_TRC
|
static int |
MSG_VMS
|
static int |
MSG_VMT
|
static int |
MSG_WAL
|
static int |
MSG_ZCB
|
static int |
MSG_ZCF
|
static int |
MSG_ZCH
|
protected boolean |
navList
|
static int |
NEIGH_LIST
|
protected java.util.ArrayList<NeighNav> |
neighList
|
protected NeighNav |
neighNav
|
protected Parser |
parser
parser reference, this parser will be used for translation of UnrealID to IntID |
static int |
SINV
|
private int[] |
stack
|
private int |
stack_pos
|
private java.lang.String |
tempStr
|
private int |
yycolumn
the number of characters from the last newline up to the start of the matched text |
static int |
YYEOF
This character denotes the end of file |
private int |
yychar
the number of characters up to the start of the matched text |
static int |
YYINITIAL
|
private int |
yyline
number of newlines encountered up to the start of the matched text |
private static int[] |
ZZ_ACTION
Translates DFA states to action switch labels. |
private static java.lang.String |
ZZ_ACTION_PACKED_0
|
private static int[] |
ZZ_ATTRIBUTE
ZZ_ATTRIBUTE[aState] contains the attributes of state aState |
private static java.lang.String |
ZZ_ATTRIBUTE_PACKED_0
|
private static int |
ZZ_BUFFERSIZE
initial size of the lookahead buffer |
private static char[] |
ZZ_CMAP
Translates characters to character classes |
private static java.lang.String[] |
ZZ_ERROR_MSG
|
private static int |
ZZ_NO_MATCH
|
private static int |
ZZ_PUSHBACK_2BIG
|
private static int[] |
ZZ_ROWMAP
Translates a state to a row index in the transition table |
private static java.lang.String |
ZZ_ROWMAP_PACKED_0
|
private static int[] |
ZZ_TRANS
The transition table of the DFA |
private static java.lang.String |
ZZ_TRANS_PACKED_0
|
private static int |
ZZ_UNKNOWN_ERROR
|
private boolean |
zzAtBOL
zzAtBOL == true <=> the scanner is currently at the beginning of a line |
private boolean |
zzAtEOF
zzAtEOF == true <=> the scanner is at the EOF |
private char[] |
zzBuffer
this buffer contains the current text to be matched and is the source of the yytext() string |
private int |
zzCurrentPos
the current text position in the buffer |
private int |
zzEndRead
endRead marks the last character in the buffer, that has been read from input |
private int |
zzLexicalState
the current lexical state |
private int |
zzMarkedPos
the textposition at the last accepting state |
private int |
zzPushbackPos
the textposition at the last state to be included in yytext |
private java.io.Reader |
zzReader
the input device |
private int |
zzStartRead
startRead marks the beginning of the yytext() string in the buffer |
private int |
zzState
the current state of the DFA |
Constructor Summary | |
---|---|
Yylex(java.io.InputStream in)
Creates a new scanner. |
|
Yylex(java.io.Reader in)
Creates a new scanner There is also a java.io.InputStream version of this constructor. |
Method Summary | |
---|---|
protected boolean |
getBoolean(java.lang.String txt,
int num)
Return a boolean of this parameter. |
protected double |
getDouble(java.lang.String txt,
int num)
Return a double from num token in txt |
protected java.lang.String |
getIdent(java.lang.String txt,
int num)
Return a string from num token in txt. |
protected int |
getInt(java.lang.String txt,
int num)
Return an integer from num token in txt |
protected java.lang.String |
getText(java.lang.String txt,
int num)
Return text from first after space number num. |
protected Triple |
getTriple(java.lang.String txt,
int num)
Return a triple starting from num token(tokens are separated by space) in txt |
static void |
main(java.lang.String[] argv)
Runs the scanner on input files. |
void |
setParser(Parser p)
Set parser translating UnrealID to IntID. |
private void |
state_go(int state)
Change state to state and push original state to stack, so parser can return in state_return |
private void |
state_return()
Return to previous state. |
protected int |
unrealID2intID(java.lang.String unrealID)
Translate UnrealID to IntID |
void |
yybegin(int newState)
Enters a new lexical state |
void |
yyclose()
Closes the input stream. |
char |
yycharat(int pos)
Returns the character at position pos from the matched text. |
int |
yylength()
Returns the length of the matched text region. |
MessageObject |
yylex()
Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs. |
void |
yypushback(int number)
Pushes the specified amount of characters back into the input stream. |
void |
yyreset(java.io.Reader reader)
Resets the scanner to read from a new input stream. |
int |
yystate()
Returns the current lexical state. |
java.lang.String |
yytext()
Returns the text matched by the current regular expression. |
private boolean |
zzRefill()
Refills the input buffer. |
private void |
zzScanError(int errorCode)
Reports an error that occured while scanning. |
private static int[] |
zzUnpackAction()
|
private static int |
zzUnpackAction(java.lang.String packed,
int offset,
int[] result)
|
private static int[] |
zzUnpackAttribute()
|
private static int |
zzUnpackAttribute(java.lang.String packed,
int offset,
int[] result)
|
private static int[] |
zzUnpackRowMap()
|
private static int |
zzUnpackRowMap(java.lang.String packed,
int offset,
int[] result)
|
private static int[] |
zzUnpackTrans()
|
private static int |
zzUnpackTrans(java.lang.String packed,
int offset,
int[] result)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int YYEOF
private static final int ZZ_BUFFERSIZE
public static final int MSG_IINV
public static final int LIST_INT_DOUBLE
public static final int LIST_UNREALID_DOUBLE
public static final int MSG_ADG
public static final int MSG_DOM
public static final int MSG_PTH
public static final int MSG_MAPCHANGE
public static final int IINV
public static final int MSG_DIE
public static final int MSG_FTR
public static final int MSG_HELLO_CONTROL_SERVER
public static final int SINV
public static final int MSG_KIL
public static final int MSG_GAM
public static final int MSG_LEFT
public static final int YYINITIAL
public static final int MSG_CONFCH
public static final int MSG_TRC
public static final int MSG_AIN
public static final int NEIGH_LIST
public static final int MSG_END
public static final int MSG_SLF
public static final int MSG_NAV
public static final int MSG_JOIN
public static final int MSG_RCH
public static final int MSG_FAL
public static final int MSG_WAL
public static final int EINV
public static final int MSG_ZCH
public static final int MSG_HIT
public static final int MSG_ZCF
public static final int MSG_CWP
public static final int MSG_ZCB
public static final int MSG_MAP
public static final int MSG_VMT
public static final int MSG_VMS
public static final int MSG_HRP
public static final int MSG_PLR
public static final int MSG_HRN
public static final int GAM_DOM_POINTS
public static final int MSG_BEG
public static final int MSG_DAM
public static final int MSG_INAV
public static final int MSG_ALIVE
public static final int MSG_SEE
public static final int MSG_INV
public static final int MSG_ATR
public static final int MSG_PRJ
public static final int LIST_NAV
public static final int MSG_FIN
public static final int MSG_NFO
public static final int MSG_FLG
public static final int MSG_BMP
public static final int MSG_MOV
public static final int MSG_HELLO_BOT
private static final char[] ZZ_CMAP
private static final int[] ZZ_ACTION
private static final java.lang.String ZZ_ACTION_PACKED_0
private static final int[] ZZ_ROWMAP
private static final java.lang.String ZZ_ROWMAP_PACKED_0
private static final int[] ZZ_TRANS
private static final java.lang.String ZZ_TRANS_PACKED_0
private static final int ZZ_UNKNOWN_ERROR
private static final int ZZ_NO_MATCH
private static final int ZZ_PUSHBACK_2BIG
private static final java.lang.String[] ZZ_ERROR_MSG
private static final int[] ZZ_ATTRIBUTE
aState
private static final java.lang.String ZZ_ATTRIBUTE_PACKED_0
private java.io.Reader zzReader
private int zzState
private int zzLexicalState
private char[] zzBuffer
private int zzMarkedPos
private int zzPushbackPos
private int zzCurrentPos
private int zzStartRead
private int zzEndRead
private int yyline
private int yychar
private int yycolumn
private boolean zzAtBOL
private boolean zzAtEOF
protected NeighNav neighNav
protected java.util.ArrayList<NeighNav> neighList
protected boolean navList
protected java.util.Map<java.lang.Integer,java.lang.Double> mapIntIDDouble
protected java.util.Map<java.lang.Integer,java.lang.Double> mapIntDouble
protected Parser parser
private int[] stack
private int stack_pos
private java.lang.String tempStr
protected java.lang.Object actObj
Constructor Detail |
---|
Yylex(java.io.Reader in)
in
- the java.io.Reader to read input from.Yylex(java.io.InputStream in)
in
- the java.io.Inputstream to read input from.Method Detail |
---|
private static int[] zzUnpackAction()
private static int zzUnpackAction(java.lang.String packed, int offset, int[] result)
private static int[] zzUnpackRowMap()
private static int zzUnpackRowMap(java.lang.String packed, int offset, int[] result)
private static int[] zzUnpackTrans()
private static int zzUnpackTrans(java.lang.String packed, int offset, int[] result)
private static int[] zzUnpackAttribute()
private static int zzUnpackAttribute(java.lang.String packed, int offset, int[] result)
protected int getInt(java.lang.String txt, int num)
txt
- text of parameternum
- number of token with integer starting from zeroprotected double getDouble(java.lang.String txt, int num)
txt
- text of parameternum
- number of token with double starting from zeroprotected java.lang.String getIdent(java.lang.String txt, int num)
txt
- text of parameternum
- number of token with string starting from zeroprotected java.lang.String getText(java.lang.String txt, int num)
txt
- text of parameternum
- number of spaces that can preceder textprotected Triple getTriple(java.lang.String txt, int num)
txt
- text of parameternum
- number of token with double starting from zeroprotected boolean getBoolean(java.lang.String txt, int num)
txt
- text of parameternum
- number of token with double starting from zero. Tokens are separated by " {},"public void setParser(Parser p)
protected int unrealID2intID(java.lang.String unrealID)
Parser
private void state_go(int state)
private void state_return()
private boolean zzRefill() throws java.io.IOException
false
, iff there was new input.
java.io.IOException
- if any I/O-Error occurspublic final void yyclose() throws java.io.IOException
java.io.IOException
public final void yyreset(java.io.Reader reader)
reader
- the new input streampublic final int yystate()
public final void yybegin(int newState)
newState
- the new lexical statepublic final java.lang.String yytext()
public final char yycharat(int pos)
pos
- the position of the character to fetch.
A value from 0 to yylength()-1.
public final int yylength()
private void zzScanError(int errorCode)
errorCode
- the code of the errormessage to displaypublic void yypushback(int number)
number
- the number of characters to be read again.
This number must not be greater than yylength()!public MessageObject yylex() throws java.io.IOException
java.io.IOException
- if any I/O-Error occurspublic static void main(java.lang.String[] argv)
argv
- the command line, contains the filenames to run
the scanner on.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |