--- parser3/src/main/compile.C 2001/02/22 09:36:23 1.12 +++ parser3/src/main/compile.C 2001/02/22 12:43:55 1.14 @@ -1,5 +1,5 @@ /* - $Id: compile.C,v 1.12 2001/02/22 09:36:23 paf Exp $ + $Id: compile.C,v 1.14 2001/02/22 12:43:55 paf Exp $ */ #include "pa_request.h" @@ -20,7 +20,7 @@ Array& Request::real_compile(COMPILE_PAR // input pc.pool=&pool(); - pc.methods=new(pool()) Array(pool()); + pc.methods=NEW Array(pool()); if(!source) return *pc.methods; @@ -31,21 +31,21 @@ Array& Request::real_compile(COMPILE_PAR #endif // initialise state pc.pending_state=0; - pc.string=new(pool()) String(pool()); + pc.string=NEW String(pool()); pc.ls=LS_USER; pc.sp=0; // parse=compile! - ///yydebug=1; + yydebug=1; if(yyparse(&pc)) { // error? - if(pc.col==1) { + if(pc.col==0) { // step back from last char. -1 col means EOL pc.line--; - pc.col=-1; + pc.col=-2; } - exception().raise(0,0, + THROW(0,0, 0, - "%s [%s:%d:%d]", pc.error, file, 1+pc.line, pc.col); + "%s [%s:%d:%d]", pc.error, file, 1+pc.line, 1+pc.col); } // result