MsgParser Class Reference¶
|
NEDXML API
|
Public Member Functions | |
| MsgParser (ErrorStore *e) | |
| ~MsgParser () | |
| void | setStoreSource (bool b) |
| bool | getStoreSourceFlag () |
| ASTNode * | parseMsgFile (const char *osfname, const char *fname=nullptr) |
| ASTNode * | parseMsgText (const char *text, const char *fname=nullptr) |
Description
Parses MSG files into an AST.
Elements of the tree are subclassed from ASTNode; ASTNodeFactory is used to actually create the objects. Internally this class uses a bison/flex grammar and SourceDocument.
Constructor & Destructor Documentation
◆ MsgParser()
| MsgParser | ( | ErrorStore * | e | ) |
Constructor.
◆ ~MsgParser()
| ~MsgParser | ( | ) |
Destructor.
Member Function Documentation
◆ setStoreSource()
|
inline |
Affects operation of parseFile() and parseText(), specifies whether sourceCode attributes in ASTNodes should be filled out. Default is false.
◆ getStoreSourceFlag()
|
inline |
Returns the "store source code" flag; see setStoreSource().
◆ parseMsgFile()
| ASTNode * parseMsgFile | ( | const char * | osfname, |
| const char * | fname = nullptr ) |
Parse the given MSG (.msg) file and return the result tree. Returns nullptr or partial tree if there was an error. The fname parameter will be used to fill in the source location attributes; it defaults to osfname.
◆ parseMsgText()
| ASTNode * parseMsgText | ( | const char * | text, |
| const char * | fname = nullptr ) |
Parse the given MSG source and return the result tree. Returns nullptr or partial tree if there was an error. The fname parameter will be used to fill in the source location attributes; it defaults to osfname.
Generated on for NEDXML API by