diff options
author | Patrick Simianer <p@simianer.de> | 2014-07-09 15:26:00 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2014-07-09 15:26:00 +0200 |
commit | 567f2bd17c05d31cd8a9b9d351f9030cddf53cb7 (patch) | |
tree | 390d1c28de381849ae9331b433695f5fb389d440 /fast/grammar.cc | |
parent | a3f9fb73ffe4f942851ff496a72ca2445ffd9e0a (diff) |
c++ implementation
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 + |