File Reference

Generated yy::parser implementation. More...

#include "parser.hh"
#include "driver.hh"
Include dependency graph for

Go to the source code of this file.


namespace  yy

Common namespace for the generated lexer and parser.


template<class T >
std::vector< T > * append (std::vector< T > *sequence, T *item)
 Append an item to a sequence.
template<class T >
std::vector< T > * singleton (T *item)
 Create a sequence consisting of a single item.

Detailed Description

Generated yy::parser implementation.

This parser is generated by bison, using the grammar from parser.yy.

Definition in file

Function Documentation

template<class T >
std::vector<T>* append ( std::vector< T > *  sequence,
T *  item 
) [inline]

Append an item to a sequence.

sequence pointer to the sequence to which the item will be appended, will be returned as well.
item pointer to the item to be appended, will be deleted.
a pointer to the modified sequence object.

Definition at line 70 of file

References std::swap().

Referenced by yy::parser::parse(), and singleton().

template<class T >
std::vector<T>* singleton ( T *  item  )  [inline]

Create a sequence consisting of a single item.

item pointer to the initial item of the sequence, will be deleted.
a pointer to a new sequence object containing the item.

Definition at line 87 of file

References append().

Referenced by yy::parser::parse().

Generated on Fri Aug 21 08:15:08 2009 for mqn2mps by  doxygen 1.6.0