Public Member Functions | Protected Attributes | List of all members
Parser Class Referenceabstract

#include <aisc_parser.h>

Inheritance diagram for Parser:
Inheritance graph
Collaboration diagram for Parser:
Collaboration graph

Public Member Functions

 Parser ()
int get_sourceline () const
const charget_sourcename () const
const Locationget_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)
TokenListBlockparseTokenListBlock (const char *&in)
class Codeparse_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 InputFormatget_data () const =0

Protected Attributes

EntryState state

Detailed Description

Definition at line 104 of file aisc_parser.h.

Constructor & Destructor Documentation

Parser::Parser ( )

Definition at line 190 of file aisc_parser.h.

References NULp.

Parser::Parser ( Seq seq_,
Reader reader_ 

Definition at line 23 of file parser.h.

virtual Parser::~Parser ( )

Definition at line 28 of file parser.h.

Member Function Documentation

int Parser::get_sourceline ( ) const

Definition at line 196 of file aisc_parser.h.

References Location::get_linenr().

const char* Parser::get_sourcename ( ) const

Definition at line 197 of file aisc_parser.h.

References Location::get_path().

const Location& Parser::get_location ( ) const

Definition at line 198 of file aisc_parser.h.

void Parser::set_source ( const Location other)

Definition at line 200 of file aisc_parser.h.

References aisc_assert.

Referenced by parse_program(), and set_source().

void Parser::set_source ( const char path,
int  linenumber 

Definition at line 204 of file aisc_parser.h.

References set_source().

void Parser::set_line_start ( const char start,
int  offset_in_line 

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.

Code * Parser::parse_program ( const char in,
const char filename 
bool Parser::parse_entry ( )
virtual void Parser::parse_section ( )
pure virtual

Implemented in MackeParser, GenbankParser, and EmblParser.

Referenced by parse_entry().

virtual const InputFormat& Parser::get_data ( ) const
pure virtual

Implemented in GenbankParser, and EmblParser.

Referenced by parse_entry().

Member Data Documentation

EntryState Parser::state

Definition at line 18 of file parser.h.

Referenced by EmblParser::parse_section(), and GenbankParser::parse_section().

Seq& Parser::seq

Definition at line 19 of file parser.h.

Reader& Parser::reader

Definition at line 20 of file parser.h.

Referenced by parse_entry(), EmblParser::parse_section(), and GenbankParser::parse_section().

The documentation for this class was generated from the following files: