Parser
Parser class. Iterates through the given string, tokenizes it and returns a AST tree.
Static Method Summary
| Static Public Methods | ||
| public static |
parse(program: *): * |
|
| public static |
parseFromFile(file: *): * |
|
Constructor Summary
| Public Constructor | ||
| public |
Attributes used by the parser, set to default values |
|
Method Summary
| Public Methods | ||
| public |
parse(program: *): * |
|
| public |
parseApply(expr: *): * |
|
| public |
parseExpression(): * |
|
| public |
parseFromFile(file: *): * |
|
| public |
setProgram(program: *): * |
|
| Private Methods | ||
| private |
__nextToken(): * |
|
| private |
__parserSyntaxError(message: *): * |
|
Static Public Methods
public static parseFromFile(file: *): * source
Params:
| Name | Type | Attribute | Description |
| file | * |
Return:
| * |
Public Constructors
Public Methods
Private Methods
private __parserSyntaxError(message: *): * source
Params:
| Name | Type | Attribute | Description |
| message | * |
Return:
| * |
