10#ifndef MCRL2_ATERMPP_ATERM_IO_TEXT_H
11#define MCRL2_ATERMPP_ATERM_IO_TEXT_H
26 void put(
const aterm& term)
override;
71 int next_char(
bool skip_whitespace =
true,
bool required =
false);
An integer term stores a single std::size_t value. It carries no arguments.
The interface for a class that reads aterm from a stream. The default constructed term aterm() indica...
The interface for a class that writes aterm to a stream. Every written term is retrieved by the corre...
Reads terms in textual format from an input stream.
std::size_t m_history_limit
Determines the maximum number of characters that are stored.
std::size_t m_column
The column of the current character.
std::deque< char > m_history
Stores the characters that have been read so-far.
std::string print_parse_error_position()
aterm_int parse_aterm_int(int &character)
Parses an std::size_t as an aterm_int.
aterm parse_aterm(int &character)
Parse a term from the input stream and return it.
std::string parse_quoted_string(int &character)
Reads a quoted string from the stream.
aterm parse_aterm_appl(const std::string &function_name, int &character)
Parses an "f"(t0, ..., tn) application as an aterm.
int next_char(bool skip_whitespace=true, bool required=false)
aterm_list parse_aterm_list(int &character, char begin, char end)
Parses a list of arguments [...] as terms.
std::string parse_unquoted_string(int &character)
Reads an unquoted string from the stream.
void get(aterm &t) override
Reads an aterm from this stream.
int character
The last character that was read.
std::size_t m_line
The line number of the current character.
Writes terms in textual format to an output stream.
bool m_newline
Indicates that terms are separated by a newline.
void write_term_line(const aterm &term)
Writes a term in textual format on the same line.
void put(const aterm &term) override
Write the given term to the stream.
The main namespace for the aterm++ library.