ztsdb
Public Member Functions | Public Attributes | List of all members
ParserCtx Class Reference

Public Member Functions

int parsefile (const std::string &filename)
 
int parse (const std::shared_ptr< const std::string > s_p)
 
void error (const yy::location &l, const std::string &m)
 

Public Attributes

std::string file
 
bool trace_scanning
 Whether scanner/parser traces should be generated.
 
bool trace_parsing
 
bool ignore_nl
 
std::unique_ptr< Elprog
 
yy::location loc
 
std::string string_literal
 
std::shared_ptr< const std::string > s
 
yy::location errorLoc
 
std::string errorString
 

Member Function Documentation

◆ error()

void ParserCtx::error ( const yy::location l,
const std::string &  m 
)

Error handling routine called by the parser in case of error. Saves the string and location for subsequent use when building an error message.

Member Data Documentation

◆ string_literal

std::string ParserCtx::string_literal

Data structure for the treatment of strings literals that require context sensitive lexing.


The documentation for this class was generated from the following files: