parser.lex keeping track of line number now
git-svn-id: svn://anubis/fart/trunk@129 7f9b0f55-74a9-4bce-be96-3c2cd072584d
This commit is contained in:
parent
76260a7696
commit
395161eb66
@ -68,9 +68,9 @@ up return UP;
|
||||
vfov return VFOV;
|
||||
width return WIDTH;
|
||||
|
||||
\n /* ignore newlines */
|
||||
\n yylloc->first_line++; yylloc->last_line++;
|
||||
[ \t\v] /* ignore whitespace */
|
||||
|
||||
. return -1;
|
||||
. return yytext[0];
|
||||
|
||||
%%
|
||||
|
@ -29,6 +29,7 @@ static refptr<Node> parsed_scene_node;
|
||||
|
||||
%pure-parser
|
||||
%locations
|
||||
%error-verbose
|
||||
|
||||
%token PLUS;
|
||||
%token MINUS;
|
||||
|
Loading…
x
Reference in New Issue
Block a user