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;
|
vfov return VFOV;
|
||||||
width return WIDTH;
|
width return WIDTH;
|
||||||
|
|
||||||
\n /* ignore newlines */
|
\n yylloc->first_line++; yylloc->last_line++;
|
||||||
[ \t\v] /* ignore whitespace */
|
[ \t\v] /* ignore whitespace */
|
||||||
|
|
||||||
. return -1;
|
. return yytext[0];
|
||||||
|
|
||||||
%%
|
%%
|
||||||
|
@ -29,6 +29,7 @@ static refptr<Node> parsed_scene_node;
|
|||||||
|
|
||||||
%pure-parser
|
%pure-parser
|
||||||
%locations
|
%locations
|
||||||
|
%error-verbose
|
||||||
|
|
||||||
%token PLUS;
|
%token PLUS;
|
||||||
%token MINUS;
|
%token MINUS;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user