summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-02-04 23:00:27 -0800
committerOri Bernstein <ori@eigenstate.org>2017-02-04 23:00:27 -0800
commit545d75324d8ad1d9f8f9977b0911e8e9e0704674 (patch)
tree9be767627108edab0ce0833e5b5a308eaafc8ab0 /doc
parentd6bd40e37b085aec922c6bb56e867e85a6c36982 (diff)
downloadmc-545d75324d8ad1d9f8f9977b0911e8e9e0704674.tar.gz
Ucons are now prefix expressions.
It's just what it looks like. This cleans up taking the address of union literals.
Diffstat (limited to 'doc')
-rw-r--r--doc/lang.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/lang.txt b/doc/lang.txt
index 78b7b27..78f931d 100644
--- a/doc/lang.txt
+++ b/doc/lang.txt
@@ -1927,8 +1927,7 @@ TABLE OF CONTENTS:
expr: lorepxr asnop expr | lorexpr
lorexpr: lorexpr "||" landexpr | landexpr
landexpr: landexpr "&&" cmpexpr | cmpexpr
- cmpexpr: cmpexpr ("<" | "<=" | "==" | ">=" | ">") unionexpr | unionexpr
- unionexpr: "`" name unionexpr | "`" name | borexpr
+ cmpexpr: cmpexpr ("<" | "<=" | "==" | ">=" | ">") borexprexpr | borexpr
borexpr: borexpr ("|" | "^" ) bandexpr | bandexpr
bandexpr: bandexpr "&" addexpr | addexpr
addexpr: addexpr ("+" | "-") mulexpr
@@ -1942,8 +1941,10 @@ TABLE OF CONTENTS:
postexpr "++" | postexpr "--" |
postexpr "[" expr "]" |
postexpr "[" [expr] ":" [expr] "]" |
+ "`" name postexpr | "`" name
postepxr "#" |
atomicexpr
+
atomicexpr: ident | literal | "(" expr ")" | "sizeof" "(" type ")"
/* literals */