From 2808b605fea61bbd9ff50a46020061579fb19f41 Mon Sep 17 00:00:00 2001 From: sbrandt Date: Tue, 26 Feb 2013 22:08:02 +0000 Subject: (1) Fix compilation issues on Pandora (2) Disallow setting multiple parameters on one line (3) Allow sign in floating point format to be optional (4) Use package piraha (5) change PirahaParser to cctk_PirahaParser (6) remove size.py git-svn-id: http://svn.cactuscode.org/flesh/trunk@4966 17b73243-c579-4c4c-a9d2-2d5706c11dac --- src/piraha/ReParse.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/piraha/ReParse.cc') diff --git a/src/piraha/ReParse.cc b/src/piraha/ReParse.cc index 634e1f10..295b0b29 100644 --- a/src/piraha/ReParse.cc +++ b/src/piraha/ReParse.cc @@ -2,6 +2,8 @@ #include #include +namespace piraha { + char getChar(smart_ptr gr) { if(gr->groupCount()==1) { std::string sub = gr->group(0)->substring(); @@ -73,7 +75,7 @@ void compileFile(smart_ptr g,const char *buffer,signed long buffersize) for(int i=0;igroupCount();i++) { smart_ptr rule = m->group(i); - smart_ptr ptmp = ::compile(rule->group(1), false, g); + smart_ptr ptmp = compile(rule->group(1), false, g); std::string nm = rule->group(0)->substring(); g->patterns.put(nm,ptmp); g->default_rule = nm; @@ -188,3 +190,5 @@ smart_ptr compile(smart_ptr g,bool ignCase,smart_ptr gr } return NULL; } + +} -- cgit v1.2.3