CBMC
|
#include <smt2_tokenizer.h>
Classes | |
class | smt2_errort |
Public Types | |
using | tokent = enum { NONE, END_OF_FILE, STRING_LITERAL, NUMERAL, SYMBOL, KEYWORD, OPEN, CLOSE } |
Public Member Functions | |
smt2_tokenizert (std::istream &_in) | |
tokent | next_token () |
tokent | peek () |
const std::string & | get_buffer () const |
bool | token_is_quoted_symbol () const |
smt2_errort | error (const std::string &message) const |
generate an error exception, pre-filled with a message | |
smt2_errort | error () const |
generate an error exception | |
Protected Member Functions | |
void | skip_to_end_of_list () |
skip any tokens until all parentheses are closed or the end of file is reached | |
Protected Attributes | |
std::istream * | in |
unsigned | line_no |
std::string | buffer |
bool | quoted_symbol = false |
bool | peeked |
tokent | token |
Private Member Functions | |
tokent | get_decimal_numeral () |
tokent | get_hex_numeral () |
tokent | get_bin_numeral () |
tokent | get_simple_symbol () |
tokent | get_quoted_symbol () |
tokent | get_string_literal () |
void | get_token_from_stream () |
read a token from the input stream and store it in 'token' | |
Definition at line 15 of file smt2_tokenizer.h.
using smt2_tokenizert::tokent = enum { NONE, END_OF_FILE, STRING_LITERAL, NUMERAL, SYMBOL, KEYWORD, OPEN, CLOSE } |
Definition at line 66 of file smt2_tokenizer.h.
|
inlineexplicit |
Definition at line 18 of file smt2_tokenizer.h.
|
inline |
generate an error exception
Definition at line 108 of file smt2_tokenizer.h.
|
inline |
generate an error exception, pre-filled with a message
Definition at line 102 of file smt2_tokenizer.h.
|
private |
Definition at line 84 of file smt2_tokenizer.cpp.
|
inline |
Definition at line 91 of file smt2_tokenizer.h.
|
private |
Definition at line 57 of file smt2_tokenizer.cpp.
|
private |
Definition at line 113 of file smt2_tokenizer.cpp.
|
private |
Definition at line 142 of file smt2_tokenizer.cpp.
|
private |
Definition at line 24 of file smt2_tokenizer.cpp.
|
private |
Definition at line 170 of file smt2_tokenizer.cpp.
|
private |
read a token from the input stream and store it in 'token'
Definition at line 211 of file smt2_tokenizer.cpp.
smt2_tokenizert::tokent smt2_tokenizert::next_token | ( | ) |
Definition at line 201 of file smt2_tokenizer.cpp.
|
inline |
Definition at line 79 of file smt2_tokenizer.h.
|
protected |
skip any tokens until all parentheses are closed or the end of file is reached
|
inline |
Definition at line 96 of file smt2_tokenizer.h.
|
protected |
Definition at line 116 of file smt2_tokenizer.h.
|
protected |
Definition at line 114 of file smt2_tokenizer.h.
|
protected |
Definition at line 115 of file smt2_tokenizer.h.
|
protected |
Definition at line 118 of file smt2_tokenizer.h.
Definition at line 117 of file smt2_tokenizer.h.
|
protected |
Definition at line 119 of file smt2_tokenizer.h.