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:
parent
26d8d1a081
commit
35d6e536ae
@ -105,6 +105,7 @@ class VectorNode : public Node
|
||||
bool m_direct;
|
||||
};
|
||||
|
||||
|
||||
class AmbientNode : public VectorNode
|
||||
{
|
||||
public:
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user