|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.io.StreamTokenizer
|
+--org.opencores.verilogp.VTokenizer
Implements Verilog suitable tokenizer.
StreamTokenizer| Field Summary | |
(package private) static int |
AND
defines character with the same name |
(package private) static int |
BSLASH
defines character with the same name |
(package private) static int |
COLON
defines character with the same name |
(package private) static int |
COMMA
defines character with the same name |
(package private) static int |
DOT
defines character with the same name |
(package private) static int |
EOF
defines character with the same name |
(package private) static int |
EQUAL
defines character with the same name |
(package private) static int |
LBRACKET
defines character with the same name |
(package private) static int |
LCBRACKET
defines character with the same name |
(package private) static int |
LPAREN
defines character with the same name |
int |
nbits
Number of bits last number read hold. |
(package private) static int |
NOT
defines character with the same name |
(package private) static int |
NUMBER
defines character with the same name |
(package private) static int |
OR
defines character with the same name |
(package private) static int |
RBRACKET
defines character with the same name |
(package private) static int |
RCBRACKET
defines character with the same name |
(package private) static int |
RPAREN
defines character with the same name |
(package private) static int |
SEMI
defines character with the same name |
(package private) static int |
XOR
defines character with the same name |
| Fields inherited from class java.io.StreamTokenizer |
buf,
CT_ALPHA,
CT_COMMENT,
CT_DIGIT,
CT_QUOTE,
CT_WHITESPACE,
ctype,
eolIsSignificantP,
forceLower,
input,
LINENO,
nval,
peekc,
pushedBack,
reader,
slashSlashCommentsP,
slashStarCommentsP,
sval,
TT_EOF,
TT_EOL,
TT_NOTHING,
TT_NUMBER,
TT_WORD,
ttype |
| Constructor Summary | |
(package private) |
VTokenizer(java.io.Reader reader)
constructs new Verilog tokenizer |
| Method Summary | |
int |
nextToken()
Gets next token extended. |
private int |
parseNumber(java.lang.String s)
Parses String for binary, octal, decimal or
hex number. |
private void |
setTable()
setup lexer table |
| Methods inherited from class java.io.StreamTokenizer |
commentChar,
eolIsSignificant,
lineno,
lowerCaseMode,
ordinaryChar,
ordinaryChars,
parseNumbers,
pushBack,
quoteChar,
read,
resetSyntax,
slashSlashComments,
slashStarComments,
toString,
whitespaceChars,
wordChars |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
public int nbits
static final int EOF
static final int NUMBER
static final int LPAREN
static final int RPAREN
static final int COMMA
static final int COLON
static final int DOT
static final int SEMI
static final int LBRACKET
static final int RBRACKET
static final int NOT
static final int AND
static final int OR
static final int XOR
static final int EQUAL
static final int BSLASH
static final int LCBRACKET
static final int RCBRACKET
| Constructor Detail |
VTokenizer(java.io.Reader reader)
reader - file reader to read from| Method Detail |
public int nextToken()
throws java.io.IOException
'-' shouldn't be pushed back.private void setTable()
private int parseNumber(java.lang.String s)
String for binary, octal, decimal or
hex number. Number of bits required to store number is
placed into nbitss - String to parse
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||