-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathprogramming_notes.txt
31 lines (25 loc) · 956 Bytes
/
programming_notes.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
==========================================================================
TODO
==========================================================================
- Multiple field pk
- Method Put (Replace)
==========================================================================
EBNF of $filter
==========================================================================
Aggregator := Expression ( LOGICAL_AGRE Aggregator )? | '(' Aggregator ')'
Expression := Comparation | Function
Comparation:= LOGICAL_NOT? VAR LOGICAL_COMP Value
Value := CAD | NUMBER
Function := FNC Param ENDFNC
Param := ( CAD | NUMBER | IDEN ) ( ',' Param )?
LOGICAL_AGRE := and
LOGICAL_NOT := not
VAR := [\w_]+
FNC := [\w_]+'('
ENDFNC := ')'
LOGICAL_COMP := =|==|<|>|>=|<=|<>|eq|ne|gt|lt|ge|le
CAD := '(.*)'
NUMBER := \d+(.\d+)? | .\d+
f(Aggretator) := f(Expresion), '(' = NOT, VAR, FNC, '('
f(Expresion) := f(Comparation) , Pri(Function) = NOT, VAR, FNC
f(Comparation) := NOT, VAR