public class Scanner extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
EOF |
static int |
ERROR |
static int |
ERROR_PC |
static int |
NO_TERMINAL |
| Constructor and Description |
|---|
Scanner(int start,
int modeCount,
char[] table,
Position pos,
Reader reader) |
| Modifier and Type | Method and Description |
|---|---|
int |
find(int mode,
net.oneandone.sushi.util.IntBitSet terminals) |
void |
getPosition(Position result)
assigns the position of the last terminal returned by eat.
|
String |
getText()
returns the text of the last terminal returned by eat.
|
boolean |
match(int mode,
int eof,
int[] terminals) |
int |
next(int mode)
Scans the next terminal.
|
public static final int EOF
public static final int ERROR
public static final int ERROR_PC
public static final int NO_TERMINAL
public void getPosition(Position result)
public String getText()
public int next(int mode)
throws IOException
IOExceptionpublic int find(int mode,
net.oneandone.sushi.util.IntBitSet terminals)
throws IOException
IOExceptionpublic boolean match(int mode,
int eof,
int[] terminals)
throws IOException
IOExceptionCopyright © 1998–2017 1&1. All rights reserved.