NSExpressionType and BNF definition of predicates
NSExpressionType and BNF definition of predicates
- Subject: NSExpressionType and BNF definition of predicates
- From: email@hidden
- Date: Mon, 26 Mar 2007 22:25:19 +0200
How predicate's BNF definitions are mapped to NSExpressionType ?
On one side:
typedef enum {
NSConstantValueExpressionType = 0,
NSEvaluatedObjectExpressionType,
NSVariableExpressionType,
NSKeyPathExpressionType,
NSFunctionExpressionType
} NSExpressionType;
On the other side:
expression ::= "(" expression ")"
| binary_expression
| function_expression
| assignment_expression
| index_expression
| keypath_expression
| value_expression
I assume that …
NSFunctionExpressionType -> function_expression
NSKeyPathExpressionType -> keypath_expression
NSConstantValueExpressionType -> value_expression
But …
1- Does assignment_expression and index_expression have their
counterpart in Foundation ?
2- Why NSEvaluatedObjectExpressionType seems equivalent to
[value_expression > literal_value > SELF] in BNF and is it true ?
3- Why NSVariableExpressionType seems equivalent to [value_expression
> literal_value > predicate_variable] and is it true ?
Thanks. Romain.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden