JESS: decimal constant

View: New views
2 Messages — Rating Filter:   Alert me  

JESS: decimal constant

by Michael Welter :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Is there a way to switch-off the decimal constant in the grammar?  For
example, I'd like the token 64d to be parsed as a symbol and not as a
number.

Thanks


--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users you@...'
in the BODY of a message to majordomo@..., NOT to the list
(use your own address!) List problems? Notify owner-jess-users@....
--------------------------------------------------------------------


Re: JESS: decimal constant

by Ernest Friedman-Hill :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

No, there is not. You can use double-quoted Strings instead of symbols  
though.

On Nov 5, 2009, at 10:14 AM, Michael Welter wrote:

> Is there a way to switch-off the decimal constant in the grammar?  For
> example, I'd like the token 64d to be parsed as a symbol and not as a
> number.
>
> Thanks
>

---------------------------------------------------------
Ernest Friedman-Hill
Informatics & Decision Sciences          Phone: (925) 294-2154
Sandia National Labs
PO Box 969, MS 9012                            ejfried@...
Livermore, CA 94550                             http://www.jessrules.com





--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users you@...'
in the BODY of a message to majordomo@..., NOT to the list
(use your own address!) List problems? Notify owner-jess-users@....
--------------------------------------------------------------------