Documentation
- Started the new parser documentation.
This commit is contained in:
34
doc/misc/parser/expressions.txt
Normal file
34
doc/misc/parser/expressions.txt
Normal file
@@ -0,0 +1,34 @@
|
||||
The expression evaluator allows powerful filters and modifications.
|
||||
|
||||
There are four data types, just like UDAs:
|
||||
|
||||
string project, description
|
||||
date due, wait ...
|
||||
duration recur
|
||||
numeric urgency
|
||||
|
||||
There are several forms of literals:
|
||||
|
||||
rc.name configuration
|
||||
<dom> task-specific data
|
||||
<numeric> numbers
|
||||
<date> either ISO-8601 or rc.dateformat dates
|
||||
<duration> either ISO-8601 or durations
|
||||
|
||||
There are several supported operators:
|
||||
|
||||
+ addition, concatenation
|
||||
- subtraction, unary minus
|
||||
* multiplication
|
||||
/ division
|
||||
( ) precedence
|
||||
and or xor not ! logical operators
|
||||
< <= > >= relation operators
|
||||
= != equality operators
|
||||
~ !~ match operators
|
||||
|
||||
There are also helper operators to perform odd operations:
|
||||
|
||||
__hastag__ presence of a tag
|
||||
__notag__ absence of a tag
|
||||
|
||||
Reference in New Issue
Block a user