ARB
|
#include <aisc_parser.h>
Public Member Functions | |
Parser () | |
int | get_sourceline () const |
const char * | get_sourcename () const |
const Location & | get_location () const |
void | set_source (const Location &other) |
void | set_source (const char *path, int linenumber) |
void | set_line_start (const char *start, int offset_in_line) |
TokenListBlock * | parseTokenListBlock (const char *&in) |
class Code * | parse_program (const char *in, const char *filename) |
Parser (Seq &seq_, Reader &reader_) | |
virtual | ~Parser () |
bool | parse_entry () __ATTR__USERESULT |
virtual void | parse_section ()=0 |
virtual const InputFormat & | get_data () const =0 |
Protected Attributes | |
EntryState | state |
Seq & | seq |
Reader & | reader |
Definition at line 104 of file aisc_parser.h.
|
inline |
Definition at line 190 of file aisc_parser.h.
References NULp.
|
inline |
Definition at line 196 of file aisc_parser.h.
References Location::get_linenr().
|
inline |
Definition at line 197 of file aisc_parser.h.
References Location::get_path().
|
inline |
Definition at line 198 of file aisc_parser.h.
|
inline |
Definition at line 200 of file aisc_parser.h.
References aisc_assert.
Referenced by parse_program(), and set_source().
Definition at line 204 of file aisc_parser.h.
References set_source().
Definition at line 208 of file aisc_parser.h.
TokenListBlock * Parser::parseTokenListBlock | ( | const char *& | in | ) |
Definition at line 380 of file aisc_parser.c.
References TokenListBlock::append(), block, TokenListBlock::empty(), EOSTR, and NULp.
Definition at line 399 of file aisc_parser.c.
References copy_string_part(), EOSTR, Location::get_linenr(), Code::next, NULp, set_source(), Code::source, and Code::str.
Referenced by Interpreter::launch().
|
inline |
Definition at line 30 of file parser.h.
References ENTRY_COMPLETED, ENTRY_NONE, ENTRY_STARTED, get_data(), has_content(), Reader::line(), parse_section(), reader, Seq::set_id(), and throw_incomplete_entry().
|
pure virtual |
Implemented in MackeParser, GenbankParser, and EmblParser.
Referenced by parse_entry().
|
pure virtual |
Implemented in GenbankParser, and EmblParser.
Referenced by parse_entry().
|
protected |
Definition at line 18 of file parser.h.
Referenced by EmblParser::parse_section(), and GenbankParser::parse_section().
|
protected |
Definition at line 20 of file parser.h.
Referenced by parse_entry(), EmblParser::parse_section(), and GenbankParser::parse_section().