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 committed 2010-09-29 20:55:02 +00:00
1 parent 26d8d1a081
commit 35d6e536ae
2 files changed
+3 -2

No files matched your search

+1
View File
@@ -105,6 +105,7 @@ class VectorNode : public Node
bool m_direct;
};
class AmbientNode : public VectorNode
{
public:
+2 -2
View File
@@ -36,8 +36,8 @@
\< return LESS;
\> return GREATER;
-?[0-9]+ *yylval = new IntegerNode(atoi(yytext)); return DEC_NUMBER;
-?[0-9]*\.[0-9]+ *yylval = new NumberNode(atof(yytext)); return REAL_NUMBER;
[0-9]+ *yylval = new IntegerNode(atoi(yytext)); return DEC_NUMBER;
[0-9]*\.[0-9]+ *yylval = new NumberNode(atof(yytext)); return REAL_NUMBER;
ambient return AMBIENT;
ambient_occlusion return AMBIENT_OCCLUSION;