diff options
Diffstat (limited to 'src/piraha/ReParse.cc')
-rw-r--r-- | src/piraha/ReParse.cc | 6 |
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; } + +} |