Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parsing expressions defined by end users
Message
De
29/04/2016 05:32:59
 
 
À
29/04/2016 05:18:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01635536
Message ID:
01635635
Vues:
58
>>>This is for an expression evaluator, so no commands allowed (unless, of course, they are inside an EXECSCRIPT). If the name ends with a (, then it is a function/method (although I'm still sure about methods :) ), otherwise it is a variable.
>>
>>
>>It's not trivial
>>
>>(1) When you split into tokens, the ( is a separator, so no name will end with a (
>>
>>(2) You can only check what follows
>>
>>(3) There is no clear distinction between () and []
>>So it may be an array
>
>The function pattern retrieves the ( following a function name.

OK, I see -

A function name can also be followed by a [
It's not really documented
?min [3,2,1]
Take a look at Normalize() - may be helpful
?normalize("min [3,2,          1] ")   && MIN(3,2,1)
Good luck
>
>You have a point regarding array references. Although it won't matter as security issues go, for completeness I should also look for that.
>
>I take the opportunity to thank all of you for your valuable inputs. This little fellow is growing stronger because of you.
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform