#include <nedparser.h>
Public Methods | |
| NEDParser () | |
| ~NEDParser () | |
| bool | parseFile (const char *fname, bool parseexpr) |
| bool | parseText (const char *nedtext, bool parseexpr) |
| NEDElement* | getTree () |
| void | error (const char *msg, int line) |
| void | dbg (YYLTYPE lc, const char *what) |
Public Attributes | |
| NEDElement* | tree |
| NEDFileBuffer* | nedsource |
Protected Attributes | |
| const char* | filename |
| int | num_errors |
|
|
Constructor. |
|
|
Destructor. |
|
|
Returns the object tree which is the result of the parsing. Further calls to getTree() result in NULL pointer to be returned. |
|
|
Parse the given file. Bool argument specifies if expressions should be parsed or not. Result can be obtained from getTree(). |
|
|
Parse the given NED text. Bool argument specifies if expressions should be parsed or not. Result can be obtained from getTree(). |
1.2.8.1 written by Dimitri van Heesch,
© 1997-2001