|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Interface Summary | |
---|---|
Parser |
Class Summary | |
---|---|
AssignmentParser | Parse an assignment statement, which is looks like
|
ElanInterpreter | Illustrates the java.io.StreamTokenizer class and how it can be used to parse tokens for an example programming language (elan). |
ExpressionParser | This is a recursive descent parser for parsing expressions using the standard grammar for expressions (follows). |
IdentifierParser | |
InstructionNames | Represents the names of valid SLogo instructions. |
InstructionParser | Instruction Parser - calls appropriate Parser for each Instruction |
PrintParser | |
RepeatParser | Parse a REPEAT Statement, which looks like REPEAT numOrVar [ instructionlist ] |
StrictInstructionListParser | |
Tokenizer | A tokenizer for the SLogo programming language. |
Exception Summary | |
---|---|
ParseException |
This package is responsible for parsing the language Elan. It uses recursive descent with, currently, no lookahead.
If
instruction to the language as an example.
token.ReservedToken
) with
the same prefix as the new instruction, e.g., IfToken.java
.
IfParser.java
. The parsing class
(presumably implementing Parser
) will
return an instance of the parsed Instruction, see the next item.
If.java
in the jelan.elan.instruction
package.
instructions.prop
,
e.g., add a single line to the file containing the string If.
|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |