From 129a22cfcc7651daa4b11ed52e7870249f6373a5 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Tue, 16 Sep 2014 10:23:14 +0100 Subject: spring cleaning --- src/test_grammar.cc | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/test_grammar.cc (limited to 'src/test_grammar.cc') diff --git a/src/test_grammar.cc b/src/test_grammar.cc new file mode 100644 index 0000000..7fee79a --- /dev/null +++ b/src/test_grammar.cc @@ -0,0 +1,19 @@ +#include + +#include "grammar.hh" + +using namespace std; + +int +main(int argc, char** argv) +{ + G::Vocabulary y; + G::Grammar g(argv[1], y); + for (auto it: g.rules) { + it->escaped(cout); + cout << endl; + } + + return 0; +} + -- cgit v1.2.3