A Rule stores one possible expansion in the grammar, specifying a nonterminal type, an instruction that gets executed, a forma string, a number of children, and an array of types of each child. Here we "emulate" a type system using t_nonterminal to store an integer for the types. *.
More...
#include <functional>
#include <string>
#include <vector>
#include "Instruction.h"
#include "Nonterminal.h"
#include "Miscellaneous.h"
#include "Strings.h"
#include "IO.h"
Go to the source code of this file.
A Rule stores one possible expansion in the grammar, specifying a nonterminal type, an instruction that gets executed, a forma string, a number of children, and an array of types of each child. Here we "emulate" a type system using t_nonterminal to store an integer for the types. *.
◆ operator<<()
std::ostream& operator<< |
( |
std::ostream & |
o, |
|
|
const Rule & |
r |
|
) |
| |
◆ NullRule