parser.cc File Reference

Generated yy::parser implementation. More...

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

Go to the source code of this file.

Namespaces

namespace  yy
 

Common namespace for the generated lexer and parser.


Functions

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 parser.cc.


Function Documentation

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

Append an item to a sequence.

Parameters:
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.
Returns:
a pointer to the modified sequence object.

Definition at line 70 of file parser.cc.

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.

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

Definition at line 87 of file parser.cc.

References append().

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


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