-
Notifications
You must be signed in to change notification settings - Fork 2
/
grammar.txt
51 lines (43 loc) · 942 Bytes
/
grammar.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// also see https://docs.microsoft.com/en-us/power-platform/power-fx/expression-grammar
bexpression:
expression < bexpression
expression > bexpression
expression = bexpression
expression <> bexpression
expression <= bexpression
expression >= bexpression
expression And bexpression
expression Or bexpression
expression In bexpression
expression && bexpression
expression || bexpression
expression ExactIn bexpression
args:
bexpression , args
bexpression
expression:
term + expression
term - expression
term & expression
term
term:
primary / term
primary * term
primary
// probably a bug - should there be a function production?
primary:
NUMBER
TEXT_LITERAL
LOGICAL_LITERAL
NAME
NAME ( args )
NAME ( )
- primary
! bexpression
( expression )
[ args ]
And ( args )
Or ( args )
Not ( bexpression )
Not bexpression
// probably a bug - is dot notation actually the root?