summaryrefslogtreecommitdiff
path: root/src/piraha/ReParse.cc
diff options
context:
space:
mode:
authorsbrandt <sbrandt@17b73243-c579-4c4c-a9d2-2d5706c11dac>2013-02-26 22:08:02 +0000
committersbrandt <sbrandt@17b73243-c579-4c4c-a9d2-2d5706c11dac>2013-02-26 22:08:02 +0000
commit2808b605fea61bbd9ff50a46020061579fb19f41 (patch)
treee86334398ead087bb21c3a76ea7f9bff3a50f779 /src/piraha/ReParse.cc
parent2cf1b70f96d4a02c3e52eedfee4f3256a906ec2e (diff)
(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
Diffstat (limited to 'src/piraha/ReParse.cc')
-rw-r--r--src/piraha/ReParse.cc6
1 files changed, 5 insertions, 1 deletions
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 <stdlib.h>
#include <string.h>
+namespace piraha {
+
char getChar(smart_ptr<Group> gr) {
if(gr->groupCount()==1) {
std::string sub = gr->group(0)->substring();
@@ -73,7 +75,7 @@ void compileFile(smart_ptr<Grammar> g,const char *buffer,signed long buffersize)
for(int i=0;i<m->groupCount();i++) {
smart_ptr<Group> rule = m->group(i);
- smart_ptr<Pattern> ptmp = ::compile(rule->group(1), false, g);
+ smart_ptr<Pattern> 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<Pattern> compile(smart_ptr<Group> g,bool ignCase,smart_ptr<Grammar> gr
}
return NULL;
}
+
+}