sleep.parser
public class CodeGenerator extends Object implements ParserConstants
| Field Summary | |
|---|---|
| protected Stack | BACKUP_BLOCKS |
| protected Block | CURRENT_BLOCK |
| protected static HashMap | escape_constants |
| protected Parser | parser |
| Constructor Summary | |
|---|---|
| CodeGenerator(Parser _parser) | |
| Method Summary | |
|---|---|
| void | add(Step n, Token token) |
| void | backup() |
| Block | getRunnableBlock() |
| static void | installEscapeConstant(char c, String value) install a constant for escapes within strings i.e. |
| void | parse(Statement datum) |
| void | parseBlock(Token data) |
| void | parseBlock(LinkedList data) send the data string through the parser pipeline - errors earlier in the pipeline are assumed to not exist as they would have been found the first time we processed it as a block |
| void | parseIdea(Token data) |
| void | parseObject(Token data) |
| void | parseObject(Statement datum) |
| void | parseParameters(Token token) purposeful fall thru... |
| Check | parsePredicate(Token data) |
| Check | parsePredicate(Statement parsePred) send the data string through the parser pipeline - errors earlier in the pipeline are assumed to not exist as they would have been found the first time we processed it as a block |
| Block | restore() |