Menu

#5 Case insensitive symbols and functions

open
nobody
None
5
2006-08-22
2006-08-22
Anonymous
No

When JED is embedded in a system where end-users are
allowed to enter expressions, it would be really
useful to have a "case-insensitive" mode of operation,
e.g

JEP parser = new JEP();
parser.setCaseInsensitive(true); // proposed new
state...
/*
... which would allow functions as well as symbols to
be parsed without regard to their case.

*/
parser.addVariable("x", 10);
parser.getVarValue("X"); // returns 10

This would obviously allo allow the standard
constants, such as 'pi' to be accessed using 'PI'
and 'Pi'.

I realize that hacks, using pre-parse, may be made to
JED to support this, but I think it should be made
part of the basic product.

Also, on an associated subject, symbols should be
allowed to be constructed using ANY UNICODE LETTER,
rather than just a-z,A-Z.

Discussion


Log in to post a comment.