From 25ad3acecbe57c1870418ed495d05da00a16c91c Mon Sep 17 00:00:00 2001 From: yaacov Date: Wed, 10 Oct 2018 09:17:04 +0300 Subject: [PATCH] add titles to examples --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 09004fc..954a177 100644 --- a/README.md +++ b/README.md @@ -14,23 +14,27 @@ where part. implementing query based search engines was never that easy. The TSL language grammar is similar to SQL syntax. -##### Syntax examples +## Syntax examples +#### Operator precedence ``` sql name like '%joe%' and (city = 'paris' or city = 'milan') ``` ![TSL](/img/example_a.png?raw=true "example tree") +#### Operators with multiple arguments ``` sql name in ('joe', 'jane') and grade not between 0 and 50 ``` ![TSL](/img/example_b.png?raw=true "example tree") +#### Math operators ``` sql memory.total - memory.cache > 2000 and cpu.usage > 50 ``` ![TSL](/img/example_c.png?raw=true "example tree") +#### More math operators ``` sql (net.rx + net.tx) / 1000 > 3 or net.rx / 1000 > 6 ```