|
AndroMeta
2.0.0
|
Parse MML code, emitting M code. More...
#include <MMLParser.h>
Public Member Functions | |
| MMLParser (size_t historySize=50, MMage *mage=0) | |
| ~MMLParser () | |
| int | parse (const mstr &code, const mstr &label="", mvar *tags=0) |
| int | parseFile (const mstr &filePath, mvar *tags=0) |
| int | parse (mvar *tags=0) |
Static Public Member Functions | |
| static bool | isReservedName (const mstr &name) |
Parse MML code, emitting M code.
| Meta::MMLParser::MMLParser | ( | size_t | historySize = 50, |
| MMage * | mage = 0 |
||
| ) |
Constructor.
| historySize | For interactive parsing, the number of input lines of history to maintain. |
Destructor.
| static bool Meta::MMLParser::isReservedName | ( | const mstr & | name | ) | [static] |
| int Meta::MMLParser::parse | ( | const mstr & | code, |
| const mstr & | label = "", |
||
| mvar * | tags = 0 |
||
| ) |
Parse MML code from a string.
| int Meta::MMLParser::parse | ( | mvar * | tags = 0 | ) |
Interactively parse from stdin.
| int Meta::MMLParser::parseFile | ( | const mstr & | filePath, |
| mvar * | tags = 0 |
||
| ) |
Parse MML code from a file.
1.7.6.1