diff options
Diffstat (limited to 'fast/grammar.cc')
-rw-r--r-- | fast/grammar.cc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/fast/grammar.cc b/fast/grammar.cc new file mode 100644 index 0000000..946b062 --- /dev/null +++ b/fast/grammar.cc @@ -0,0 +1,16 @@ +#include "grammar.hh" + +namespace Grammar { + + +string +NT::s() +{ + ostringstream os; + os << "NT<" << this->symbol << "," << this->index << ">"; + return os.str(); +} + + +} // namespace + |