Constructor and Description |
---|
IdentifierParser()
IdentifierParser Constructor
|
Modifier and Type | Method and Description |
---|---|
GrammarElement |
parse(SLogoInterpreter interpreter)
parses an assignment statement, which looks like
id = expression
|
public GrammarElement parse(SLogoInterpreter interpreter) throws ParseException
parse
in interface Parser
interpreter
- is a SLogoInterperter used to interpret the codeParseException
- if expression does not contain an equals sign.