#include <skParser.h>
Public Methods | |
skParser (const skString &code, const skString &location) | |
constructor | |
~skParser () | |
Destructor - *clears* the temporary node list. | |
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 | 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 | |
const skCompileErrorList & | getErrList () |
This returns the current compile error list. | |
int | lex (void *lvalp, void *lloc) |
This message returns the next token in the stream. | |
int | nextChar () |
returns the next character to be lexed (might be a put-back character) | |
void | putbackchar (int i) |
puts the given character back | |
bool | eof () |
returns true if the eof the stream has been reached |
|
constructor
|
|
Saves a parse node to the list of temporary nodes. If an error occurs these will be cleared up |
|
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
|
|
sets the current top-level parse node
|