Hi Asharaf,
The problem is that the parser is interpreting
1.COUNT
as
1.0 times COUNT
and you have no COUNT variable.
You can modify the parsing rules using the configurable parser
http://www.singularsys.com/jep/doc/html/confparser.html
which you will need to use instead of the standard parser.
You will need to make a new IdentifierTokenMatcher which matches the
regular expression for your variables
new IdentifierTokenMatcher("[\\w\\.]*[a-zA-Z_][\\w\\.]*+")
would match any string of letters, numbers, _ and . which contains at
least one letter or underscore.
You would also need to modify the order of the matchers, so that
your new IdentifierTokenMatcher comes before the NumberTokenMatcher.
This will mean force it to try and recognise the input as a identifier
rather than number.
If you need some more help let me know.
Rich
--
Richard Morris
Web:
www.singsurf.org www.pfaf.org
Email:
ri...@singsurf.org
Tel:
(+44) 01208 872963
Post: 1 Lerryn View, Lerryn, Lostwithiel, Cornwall, PL22 0QJ