Additional top-level class in compilation unit: Token.
| Modifier and Type | Field and Description |
|---|---|
| private Token | |
| private static final int[] | |
| private String | |
| private static final KeywordTable | |
| private int | |
| private int | |
| private Token | |
| private int | |
| private int | |
| private StringBuilder |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| private int | |
| private int | |
| public double | |
| public long | |
| private int | |
| public String | |
| public String | |
| private static boolean | |
| private static boolean | |
| public int | |
| public int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private void |
| currentToken | back to summary |
|---|---|
| private Token currentToken | |
| equalOps | back to summary |
|---|---|
| private static final int[] equalOps | |
| input | back to summary |
|---|---|
| private String input | |
| ktable | back to summary |
|---|---|
| private static final KeywordTable ktable | |
| lastChar | back to summary |
|---|---|
| private int lastChar | |
| lineNumber | back to summary |
|---|---|
private int lineNumber
| |
| lookAheadTokens | back to summary |
|---|---|
| private Token lookAheadTokens | |
| maxlen | back to summary |
|---|---|
private int maxlen
| |
| position | back to summary |
|---|---|
private int position
| |
| textBuffer | back to summary |
|---|---|
| private StringBuilder textBuffer | |
| Lex | back to summary |
|---|---|
| public Lex(String s) Constructs a lexical analyzer. | |
| get | back to summary |
|---|---|
| public int get() | |
| get | back to summary |
|---|---|
| private int get(Token token) | |
| getc | back to summary |
|---|---|
| private int getc() | |
| getDouble | back to summary |
|---|---|
| public double getDouble() | |
| getLong | back to summary |
|---|---|
| public long getLong() | |
| getNextNonWhiteChar | back to summary |
|---|---|
| private int getNextNonWhiteChar() | |
| getString | back to summary |
|---|---|
| public String getString() | |
| getTextAround | back to summary |
|---|---|
| public String getTextAround() | |
| isBlank | back to summary |
|---|---|
| private static boolean isBlank(int c) | |
| isDigit | back to summary |
|---|---|
private static boolean isDigit(int c)
| |
| lookAhead | back to summary |
|---|---|
| public int lookAhead() Looks at the next token. | |
| lookAhead | back to summary |
|---|---|
| public int lookAhead(int i) | |
| readCharConst | back to summary |
|---|---|
| private int readCharConst(Token token) | |
| readDouble | back to summary |
|---|---|
| private int readDouble(StringBuilder sbuf, int c, Token token) | |
| readEscapeChar | back to summary |
|---|---|
| private int readEscapeChar() | |
| readIdentifier | back to summary |
|---|---|
| private int readIdentifier(int c, Token token) | |
| readLine | back to summary |
|---|---|
| private int readLine(Token token) | |
| readNumber | back to summary |
|---|---|
| private int readNumber(int c, Token token) | |
| readSeparator | back to summary |
|---|---|
| private int readSeparator(int c) | |
| readStringL | back to summary |
|---|---|
| private int readStringL(Token token) | |
| ungetc | back to summary |
|---|---|
| private void ungetc(int c) | |