removed optional negative sign preceding number literals in lexer since it was interfering with minus operator with no whitespace

git-svn-id: svn://anubis/fart/branches/scene-file-scripting@324 7f9b0f55-74a9-4bce-be96-3c2cd072584d
This commit is contained in:
Josh Holtrop 2010-09-29 20:55:02 +00:00
parent 26d8d1a081
commit 35d6e536ae
2 changed files with 3 additions and 2 deletions

View File

@ -105,6 +105,7 @@ class VectorNode : public Node
bool m_direct; bool m_direct;
}; };
class AmbientNode : public VectorNode class AmbientNode : public VectorNode
{ {
public: public:

View File

@ -36,8 +36,8 @@
\< return LESS; \< return LESS;
\> return GREATER; \> return GREATER;
-?[0-9]+ *yylval = new IntegerNode(atoi(yytext)); return DEC_NUMBER; [0-9]+ *yylval = new IntegerNode(atoi(yytext)); return DEC_NUMBER;
-?[0-9]*\.[0-9]+ *yylval = new NumberNode(atof(yytext)); return REAL_NUMBER; [0-9]*\.[0-9]+ *yylval = new NumberNode(atof(yytext)); return REAL_NUMBER;
ambient return AMBIENT; ambient return AMBIENT;
ambient_occlusion return AMBIENT_OCCLUSION; ambient_occlusion return AMBIENT_OCCLUSION;