From 567f2bd17c05d31cd8a9b9d351f9030cddf53cb7 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Wed, 9 Jul 2014 15:26:00 +0200 Subject: c++ implementation --- fast/grammar.cc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 fast/grammar.cc (limited to 'fast/grammar.cc') 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 + -- cgit v1.2.3