|
User Guide
|
Go to the documentation of this file.
20 UnitParser
parser(scanner, *
this);
22 this->
lexer = &scanner;
25 return (
parser.parse() == 0);
30 std::ifstream in(filename.c_str());
41 std::istringstream iss(input);
UnitLexer * lexer
pointer to the lexer instance being used
encapsulates code generation backend implementations
std::string stream_name
file or input stream name (used by scanner for position), see todo
bool parse_string(const std::string &input)
parser Units provided as string (used for testing)
Represent Lexer/Scanner class for Units parsing.
UnitParser * parser
pointer to the parser instance being used
bool parse_file(const std::string &filename)
parse Units file
bool parse_stream(std::istream &in)
parse Units file provided as istream