Missing token, expecting ','
See original GitHub issueHi there, I have a simple function for testing a rule taking 3 parameters
Rule('a60f99fa-21ee-4dfa-b8c1-80ffaa3a83de', 10, 20)
This causes an error Missing token, expecting ',', if I change the first number to a string by enclosing them in ‘’:
Rule('a60f99fa-21ee-4dfa-b8c1-80ffaa3a83de', '10', 20)
then the error goes away.
Why is this error appearing, it looks like the second integer after an integer messes things up. Eg this causes the same error Test(12,33,44)
Update
If I change it to Rule('a60f99fa-21ee-4dfa-b8c1-80ffaa3a83de', 10,0, 20,0) it works. But then the parameters are not integers anymore but decimals.
It seems that the comma after a number (for a second parameter) makes the parser think it’s dealing with a decimal. Hence the space makes the parser think it’s missing a comma.
Shouldn’t the parser take a dot for decimals?
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (6 by maintainers)

Top Related StackOverflow Question
@bluewalk thanks that is exactly the response I was hoping for 😃. I have a fix and will be performing a release very shortly.
@bijington Yes, I am expecting (as a programmer) to use 10.x instead of 10,x as the comma is used to separate parameters for a function in the expression.
So basically I would be expecting that the following works:
ExpressionFunctionA('somestring', 10, 20.5)