about summary refs log tree commit diff
path: root/lr.1
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-11-08 16:24:51 +0100
committerLeah Neukirchen <leah@vuxu.org>2017-11-08 16:24:51 +0100
commit7f683af905ca5ee6d332dd0954383e8bf7d52b3c (patch)
tree9ce6eae7fadf7bf3e90529dfc2d81131dd51a3e1 /lr.1
parent7cad7b37eb81158b5956dbcf6bdc722b5ffa8f4f (diff)
downloadlr-7f683af905ca5ee6d332dd0954383e8bf7d52b3c.tar.gz
lr-7f683af905ca5ee6d332dd0954383e8bf7d52b3c.tar.xz
lr-7f683af905ca5ee6d332dd0954383e8bf7d52b3c.zip
add ternary (conditional) operator
Diffstat (limited to 'lr.1')
-rw-r--r--lr.11
1 files changed, 1 insertions, 0 deletions
diff --git a/lr.1 b/lr.1
index 8c13121..a51a95b 100644
--- a/lr.1
+++ b/lr.1
@@ -285,6 +285,7 @@ tests are given by the following EBNF:
 .Bd -literal
 <expr>     ::= <expr> || <expr>  -- disjunction
              | <expr> && <expr>  -- conjunction
+             | <expr> ? <expr> : <expr>  -- ternary operator
              | ! <expr>          -- negation
              | ( <expr )
              | <timeprop> <numop> <dur>