lib Library API Documentation

SequenceParser Class Reference

The parser that gets the element list and returns a syntax tree. More...

#include <sequenceparser.h>

List of all members.

Public Member Functions

 SequenceParser (const SymbolTable &table)
ElementTypeparse (QPtrList< BasicElement > &elements)
void nextToken ()
uint getStart () const
uint getEnd () const
TokenType getTokenType () const
void setElementType (uint pos, ElementType *type)
ElementTypegetPrimitive ()
QString text ()


Detailed Description

The parser that gets the element list and returns a syntax tree.

Definition at line 39 of file sequenceparser.h.


Member Function Documentation

ElementType * SequenceParser::parse QPtrList< BasicElement > &  elements  ) 
 

Returns:
a parse tree.

Definition at line 44 of file sequenceparser.cc.

References parse().

Referenced by parse(), and SequenceElement::parse().

void SequenceParser::nextToken  ) 
 

Reads the next token.

Definition at line 51 of file sequenceparser.cc.

References BasicElement::getTokenType().

void SequenceParser::setElementType uint  pos,
ElementType type
 

Tells the element about its new token.

Parameters:
pos the position of the element
token the new token

Definition at line 38 of file sequenceparser.cc.

References setElementType().

Referenced by setElementType().

ElementType * SequenceParser::getPrimitive  ) 
 

Returns:
a new primitive token.

Definition at line 192 of file sequenceparser.cc.

QString SequenceParser::text  ) 
 

Returns:
the current token's text

Definition at line 231 of file sequenceparser.cc.

References BasicElement::getCharacter(), and text().

Referenced by text().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for lib Library Version 1.3.3.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Sep 24 18:22:33 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003