|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjag.Scanner
public class Scanner
scanner for jag. Revised in an attempt to cope with return and newline.
| Field Summary | |
|---|---|
private int |
ACTION
|
protected int |
braces
counts nested braces. |
private int |
EPILOG
|
private int |
PRINT
|
private int |
RULE
|
protected int |
token
returned by token(). |
protected Object |
value
returned by value(). |
private int[] |
yy_acpt
|
private boolean |
yy_at_bol
|
private int |
YY_BOL
|
private char[] |
yy_buffer
|
private int |
yy_buffer_end
|
private int |
yy_buffer_index
|
private int |
yy_buffer_read
|
private int |
YY_BUFFER_SIZE
|
private int |
yy_buffer_start
|
private int[] |
yy_cmap
|
private int |
YY_E_INTERNAL
|
private int |
YY_E_MATCH
|
private int |
YY_END
|
private int |
YY_EOF
|
private boolean |
yy_eof_done
|
private String[] |
yy_error_string
|
private int |
YY_F
|
private boolean |
yy_last_was_cr
|
private int |
yy_lexical_state
|
private int |
YY_NO_ANCHOR
|
private int |
YY_NO_STATE
|
private int |
YY_NOT_ACCEPT
|
private int[][] |
yy_nxt
|
private BufferedReader |
yy_reader
|
private int[] |
yy_rmap
|
private int |
YY_START
|
private int[] |
yy_state_dtrans
|
private int |
YYINITIAL
|
private int |
yyline
|
| Constructor Summary | |
|---|---|
private |
Scanner()
|
|
Scanner(InputStream instream)
|
|
Scanner(Reader reader)
|
| Method Summary | |
|---|---|
boolean |
advance()
move on to next token. |
static void |
main(String[] args)
quick and dirty test. |
int |
token()
current input symbol. |
String |
toString()
position for error message. |
private int[][] |
unpackFromString(int size1,
int size2,
String st)
|
Object |
value()
null or string associated with current input symbol. |
private int |
yy_advance()
|
private char[] |
yy_double(char[] buf)
|
private void |
yy_error(int code,
boolean fatal)
|
private void |
yy_mark_end()
|
private void |
yy_mark_start()
|
private void |
yy_move_end()
|
private void |
yy_to_mark()
|
private void |
yybegin(int state)
|
private int |
yylength()
|
String |
yyline()
current input position. |
private String |
yytext()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final int YY_BUFFER_SIZE
private final int YY_F
private final int YY_NO_STATE
private final int YY_NOT_ACCEPT
private final int YY_START
private final int YY_END
private final int YY_NO_ANCHOR
private final int YY_BOL
private final int YY_EOF
protected int token
token().
protected Object value
value().
protected int braces
private BufferedReader yy_reader
private int yy_buffer_index
private int yy_buffer_read
private int yy_buffer_start
private int yy_buffer_end
private char[] yy_buffer
private int yyline
private boolean yy_at_bol
private int yy_lexical_state
private boolean yy_eof_done
private final int PRINT
private final int RULE
private final int ACTION
private final int YYINITIAL
private final int EPILOG
private final int[] yy_state_dtrans
private boolean yy_last_was_cr
private final int YY_E_INTERNAL
private final int YY_E_MATCH
private String[] yy_error_string
private int[] yy_acpt
private int[] yy_cmap
private int[] yy_rmap
private int[][] yy_nxt
| Constructor Detail |
|---|
public Scanner(Reader reader)
public Scanner(InputStream instream)
private Scanner()
| Method Detail |
|---|
public static void main(String[] args)
throws Exception
Exceptionpublic int token()
token in interface Main.yyInputpublic Object value()
value in interface Main.yyInputMain.yyInput.token().public String yyline()
public String toString()
toString in class Objectprivate void yybegin(int state)
private int yy_advance()
throws IOException
IOExceptionprivate void yy_move_end()
private void yy_mark_start()
private void yy_mark_end()
private void yy_to_mark()
private String yytext()
private int yylength()
private char[] yy_double(char[] buf)
private void yy_error(int code,
boolean fatal)
private int[][] unpackFromString(int size1,
int size2,
String st)
public boolean advance()
throws IOException
Main.yyInput
advance in interface Main.yyInputIOException - on input error.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||