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:
Josh Holtrop 2009-02-18 02:10:27 +00:00
parent 76260a7696
commit 395161eb66
2 changed files with 3 additions and 2 deletions

View File

@ -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];
%%

View File

@ -29,6 +29,7 @@ static refptr<Node> parsed_scene_node;
%pure-parser
%locations
%error-verbose
%token PLUS;
%token MINUS;