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;
|
bool m_direct;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class AmbientNode : public VectorNode
|
class AmbientNode : public VectorNode
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user