public class Fixed extends Token
toBeParsed
Constructor and Description |
---|
Fixed(java.lang.String tok)
used when defining sentences -- a sequence of tokens
|
Fixed(java.lang.String tok,
LineToParse l)
used in parsing actual statements
|
Modifier and Type | Method and Description |
---|---|
boolean |
canParse()
can this token be parsed? is the next character
of toBeParsed consistent with the requested parsing task?
|
void |
parse()
actually parse toBeParsed given requested parsing task
|
setLineToParse
public Fixed(java.lang.String tok)
tok
- -- this is the string of a token that is expectedpublic Fixed(java.lang.String tok, LineToParse l)
tok
- -- this is the string of a token that is expectedl
- -- line to parsepublic boolean canParse()
Token