Quantcast
Channel: Fast Lightweight Expression Evaluator
Viewing all articles
Browse latest Browse all 96

New Post: Allow special characters in Variable names

$
0
0
Hello,
My question is quite simple, but I don't know if it could be easy to modify in source code.
I tried, but I prefer to ask first...

Is it possible be able to have some special characters to variables?
Currently, I think it is limited to a-z, A-Z, 0-9 and "_".
-> I would like to add several prefix, like $, @, or %. What should I modify in the source code to be able to do that?

Actually, I would like to do this in order to be able to cast the type of variable.
I cannot know the type within the event "ruleContext.Variables.ResolveVariableType".

I would like to add these prefix to be able to make something like this:
  • no prefix: double
  • $xxx : double[]
  • @xxx : etc.
I think it could be in the files: RegExp.vb, or CharacterElement.vb, but I'm afraid to make a change that could break everything...

Thanks a lot if you have an idea. :)
Best regards!

Viewing all articles
Browse latest Browse all 96

Trending Articles