From a3cb4c5d02f0ee75094fc27814c71f8a025d034b Mon Sep 17 00:00:00 2001 From: sbrandt Date: Wed, 3 Apr 2013 19:12:46 +0000 Subject: Add the basic grammar files, and the changes to the piraha code necessary to parse all of Cactus. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4990 17b73243-c579-4c4c-a9d2-2d5706c11dac --- src/piraha/Lookup.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/piraha/Lookup.cc') diff --git a/src/piraha/Lookup.cc b/src/piraha/Lookup.cc index d2394c2a..3b442864 100644 --- a/src/piraha/Lookup.cc +++ b/src/piraha/Lookup.cc @@ -23,6 +23,14 @@ bool Lookup::match(Matcher *m) { m->inrule = save_name; int e = m->pos; if(b) { + /* + if(capture) { + std::cout << "Matched: {" << name << "}={"; + for(int i=s;iinput[i]); + std::cout << "}" << std::endl; + } + */ smart_ptr g = new Group(name,m->input,s,e,m->children); if(capture) chSave.push_back(g); -- cgit v1.2.3