35 std::stack<irept> stack;
47 throw error(
"unexpected end of file");
53 return irept{token.text};
66 throw error(
"unexpected ')'");
75 stack.top().get_sub().push_back(
tmp);
81 throw error(
"unexpected token");
ait supplies three of the four components needed: an abstract interpreter (in this case handling func...
There are a large number of kinds of tree structured or tree-like data in CPROVER.
source_locationt source_location
Class that provides messages with a built-in verbosity 'level'.
Exception thrown by the tokenizer (and the parser built on top of it) to report a syntactic error at ...
unsigned get_line_no() const
tokent next_token()
Consume and return the next token.
smt2_errort error() const
generate an error exception
std::optional< irept > operator()()
smt2irept(std::istream &_in, message_handlert &message_handler)
void set_line(const irep_idt &line)
Tokenizer for the SMT-LIB v2.6 syntax.
std::optional< irept > smt2irep(std::istream &in, message_handlert &message_handler)
returns an irep for an SMT-LIB2 expression read from a given stream returns {} when EOF is encountere...