#include <skParser.h>
Public Member Functions | |
| skParser (const skString &code, const skString &location) | |
| constructor | |
| ~skParser () | |
| Destructor - destroys the temporary nodes and strings. | |
| skMethodDefNode * | parseMethod () |
| this method instructs the parser to begin parsing the string passed into the constructor The string is assumed to contain a method definition | |
| skExprNode * | parseExpression () |
| this method instructs the parser to begin parsing the string passed into the constructor The string is assumed to contain an expression, beginning with "=" | |
| void | setTopNode (skParseNode *pNode) |
| sets the current top-level parse node | |
| void | removeTempString (skString *str) |
| removes a string from the temporary string list | |
| void | addParseNode (skParseNode *pNode) |
| Saves a parse node to the list of temporary nodes. | |
| void | appendError (const skString &msg) |
| this adds a compile error message to the list of messages | |
| void | appendError (const Char *msg) |
| this adds a compile error message to the list of messages | |
| skCompileErrorList & | getErrList () |
| This returns the current compile error list. | |
| int | lex (void *lvalp, void *lloc) |
| This message returns the next token in the stream. | |
|
||||||||||||
|
constructor
|
|
|
Saves a parse node to the list of temporary nodes. If an error occurs these will be cleared up
|
|
|
this adds a compile error message to the list of messages
|
|
|
this adds a compile error message to the list of messages
|
|
||||||||||||
|
This message returns the next token in the stream.
|
|
|
this method instructs the parser to begin parsing the string passed into the constructor The string is assumed to contain an expression, beginning with "="
|
|
|
this method instructs the parser to begin parsing the string passed into the constructor The string is assumed to contain a method definition
|
|
|
removes a string from the temporary string list
|
|
|
sets the current top-level parse node
|
1.3