Generated yy::parser implementation. More...
#include "parser.hh"#include "driver.hh"
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. | |
Generated yy::parser implementation.
This parser is generated by bison, using the grammar from parser.yy.
Definition in file parser.cc.
| 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. |
Definition at line 70 of file parser.cc.
References std::swap().
Referenced by yy::parser::parse(), and singleton().
| 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. |
Definition at line 87 of file parser.cc.
References append().
Referenced by yy::parser::parse().
1.6.0