Grammar - AFS

AFS Integration Guide

Product
AFS
AFS_Version
7.9
Category
Reference Guide

Pred

:=

Binary_Pred | Unary_Pred | Parenthesized_Pred | Condition_Pred | Text_Pred

Binary_Pred

:=

Pred BPredOp Pred

BPredOp

:=

and | or | , | | | ;

Unary_Pred

:=

UPreDOp Pred

Parenthesized_Pred

:=

( Pred )

UPreDOp

:=

not

Condition_Pred

:=

Expr CPredOp Expr

CPredOp

:=

= | != | > | >= | < | <=

Text_Pred

:=

fts("query") | vfts("query", "field")

Expr

:=

BinaryExpr | UnaryExpr | ParenthesizedExpr | Literal | Identifier

BinaryExpr

:=

Expr BExprOp Expr

BExprOp

:=

+ | - | * | / | ,

UnaryExpr

:=

UExprOp Expr

UExprOp

:=

-

ParenthesizedExpr

:=

( Expr )

Literal

:=

Integer | Real | String | Boolean

Integer

:=

[0-9]+

Real

:=

[0-9]*'.'[0-9]+

String

:=

"[character]*"

Boolean

:=

true | false