You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thomaskrause
changed the title
AQL fails to parse tok!="..." when used in the short form
fails to parse tok!="..." when used in the AQL short form
Feb 12, 2016
This is caused by an ambiguity of the "!=" token. This token can be used as comparison operator in the variable expression or as an an AQL operator between two nodes/references. Since the operators "==" (same value) and "!=" (different value) are non-binding they only make sense as additional constraints, not as primary ones. So they should not be used directly between nodes in the short form.
The fix should clarify this ambiguity and make sure "==" and "!=" as AQL operators can only occur between references, not directly between the nodes.
… node definitions.
This removes an ambiquity for the "!=" token. E.g.
tok!="the"
could be interpreted as "All token which don't have "the" as value" or as
tok & "the" & #1 != #2
The latter one is semantically invalid (no binding) so the ambiquity is solved by not allowing the AQL operator "!=" and "==" in short AQL definitions.
This fixes#494.
E.g. this does not work
will result in a
line 2:7-8 variable "3" not bound (use linguistic operators)
error butworks as expected. Using something different than
tok
also works.The text was updated successfully, but these errors were encountered: