|
|
| version 1.72, 2004/02/11 15:33:15 | version 1.75, 2004/04/06 09:01:20 |
|---|---|
| Line 16 extern int yyparse (void *); | Line 16 extern int yyparse (void *); |
| VStateless_class& Request::compile(VStateless_class* aclass, | VStateless_class& Request::compile(VStateless_class* aclass, |
| const char* source, const String* main_alias, | const char* source, const String* main_alias, |
| uint file_no) { | uint file_no, |
| int line_no_offset) { | |
| // prepare to parse | // prepare to parse |
| Parse_control pc(*this, aclass, source, main_alias, file_no); | Parse_control pc(*this, aclass, source, main_alias, file_no, line_no_offset); |
| // parse=compile! | // parse=compile! |
| //yydebug=1; | //yydebug=1; |
| if(yyparse(&pc)) { // error? | if(yyparse(&pc)) { // error? |
| pc.pos_prev_c(); | pc.pos_prev_c(); |
| if(pc.pos.col==0) // expecting something after EOL means they've expected it BEFORE | if(!pc.explicit_result) |
| pc.pos_prev_c(); | if(pc.pos.col==0) // expecting something after EOL means they've expected it BEFORE |
| pc.pos_prev_c(); | |
| throw Exception("parser.compile", | throw Exception("parser.compile", |
| 0, | 0, |