Reads terms in textual format from an input stream.
More...
#include <aterm_io_text.h>
|
std::istream & | m_stream |
|
std::size_t | m_line = 0 |
| The line number of the current character.
|
|
std::size_t | m_column = 0 |
| The column of the current character.
|
|
std::size_t | m_history_limit = 64 |
| Determines the maximum number of characters that are stored.
|
|
std::deque< char > | m_history |
| Stores the characters that have been read so-far.
|
|
int | character |
| The last character that was read.
|
|
Reads terms in textual format from an input stream.
Definition at line 38 of file aterm_io_text.h.
◆ text_aterm_istream()
atermpp::text_aterm_istream::text_aterm_istream |
( |
std::istream & |
os | ) |
|
◆ get()
void atermpp::text_aterm_istream::get |
( |
aterm & |
t | ) |
|
|
overridevirtual |
◆ next_char()
int atermpp::text_aterm_istream::next_char |
( |
bool |
skip_whitespace = true , |
|
|
bool |
required = false |
|
) |
| |
|
private |
- Returns
- The first character that is not whitespace or end-of-file (EOF).
- Parameters
-
skip_whitespace,returns | the next non space character. |
required | Throw error when the next character is EOL. |
Definition at line 266 of file aterm_io_text.cpp.
◆ parse_aterm()
aterm atermpp::text_aterm_istream::parse_aterm |
( |
int & |
character | ) |
|
|
private |
◆ parse_aterm_appl()
aterm atermpp::text_aterm_istream::parse_aterm_appl |
( |
const std::string & |
function_name, |
|
|
int & |
character |
|
) |
| |
|
private |
Parses an "f"(t0, ..., tn) application as an aterm.
Definition at line 191 of file aterm_io_text.cpp.
◆ parse_aterm_int()
aterm_int atermpp::text_aterm_istream::parse_aterm_int |
( |
int & |
character | ) |
|
|
private |
◆ parse_aterm_list()
aterm_list atermpp::text_aterm_istream::parse_aterm_list |
( |
int & |
character, |
|
|
char |
begin, |
|
|
char |
end |
|
) |
| |
|
private |
◆ parse_quoted_string()
std::string atermpp::text_aterm_istream::parse_quoted_string |
( |
int & |
character | ) |
|
|
private |
Reads a quoted string from the stream.
- Returns
- The parsed string and the first character after this string that is not whitespace.
Definition at line 313 of file aterm_io_text.cpp.
◆ parse_unquoted_string()
std::string atermpp::text_aterm_istream::parse_unquoted_string |
( |
int & |
character | ) |
|
|
private |
◆ print_parse_error_position()
std::string atermpp::text_aterm_istream::print_parse_error_position |
( |
| ) |
|
|
private |
- Returns
- A string indicating the parse error position.
Definition at line 255 of file aterm_io_text.cpp.
◆ character
int atermpp::text_aterm_istream::character |
|
private |
◆ m_column
std::size_t atermpp::text_aterm_istream::m_column = 0 |
|
private |
◆ m_history
std::deque<char> atermpp::text_aterm_istream::m_history |
|
private |
Stores the characters that have been read so-far.
Definition at line 79 of file aterm_io_text.h.
◆ m_history_limit
std::size_t atermpp::text_aterm_istream::m_history_limit = 64 |
|
private |
Determines the maximum number of characters that are stored.
Definition at line 78 of file aterm_io_text.h.
◆ m_line
std::size_t atermpp::text_aterm_istream::m_line = 0 |
|
private |
The line number of the current character.
Definition at line 75 of file aterm_io_text.h.
◆ m_stream
std::istream& atermpp::text_aterm_istream::m_stream |
|
private |
The documentation for this class was generated from the following files: