9 #ifndef CPROVER_SOLVERS_SMT2_SMT2_TOKENIZER_H
10 #define CPROVER_SOLVERS_SMT2_SMT2_TOKENIZER_H
138 template <
typename T>
smt2_errort(const smt2_errort &other)
smt2_errort(smt2_errort &&)=default
smt2_errort(const std::string &_message, unsigned _line_no)
std::ostringstream & message_ostream()
std::ostringstream message
unsigned get_line_no() const
smt2_errort(unsigned _line_no)
void get_token_from_stream()
read a token from the input stream and store it in 'token'
tokent get_string_literal()
tokent get_decimal_numeral()
enum { NONE, END_OF_FILE, STRING_LITERAL, NUMERAL, SYMBOL, KEYWORD, OPEN, CLOSE } tokent
const std::string & get_buffer() const
smt2_tokenizert(std::istream &_in)
smt2_errort error() const
generate an error exception
tokent get_simple_symbol()
tokent get_quoted_symbol()
smt2_errort error(const std::string &message) const
generate an error exception, pre-filled with a message
bool token_is_quoted_symbol() const
void skip_to_end_of_list()
skip any tokens until all parentheses are closed or the end of file is reached
smt2_tokenizert::smt2_errort operator<<(smt2_tokenizert::smt2_errort &&e, const T &message)
add to the diagnostic information in the given smt2_tokenizer exception
bool is_smt2_simple_symbol_character(char)