summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorGravatar Benjamin Barenblat <bbaren@mit.edu>2015-04-14 00:50:26 -0400
committerGravatar Benjamin Barenblat <bbaren@mit.edu>2015-04-14 00:50:26 -0400
commit2721267f40e35a3a2acfa8ee332bda454823ef83 (patch)
treefd2461d0f1474aedfc1d6585e7f7e140674562de /doc
parent2e1bbc9749f1ad089c0fd366b74646921f35a759 (diff)
parent6e7a226de27e3689d87c11e5c12f384fb399c499 (diff)
Merge branch 'upstream' into dfsg_clean20150412+dfsg
Diffstat (limited to 'doc')
-rw-r--r--doc/manual.tex4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/manual.tex b/doc/manual.tex
index bcdb7f35..ad23d638 100644
--- a/doc/manual.tex
+++ b/doc/manual.tex
@@ -632,6 +632,10 @@ A signature item $\mt{table} \; x : c$ is shorthand for $\mt{val} \; x : \mt{Bas
It is possible to write a $\mt{let}$ expression with its constituents in reverse order, along the lines of Haskell's \cd{where}. An expression $\mt{let} \; e \; \mt{where} \; ed^* \; \mt{end}$ desugars to $\mt{let} \; ed^* \; \mt{in} \; e \; \mt{end}$.
+Ur/Web also includes a few more infix operators: $f \; \texttt{<|} \; x$ desugars to $f \; x$, $x \; \texttt{|>} \; f$ to $f \; x$, $f \; \texttt{<{}<{}<} \; g$ to $\mt{Top}.\mt{compose} \; f \; g$, and $g \; \texttt{>{}>{}>} \; f$ to $\mt{Top}.\mt{compose} \; f \; g$. (The latter two are doing function composition in the usual way.) Furthermore, any identifier may be changed into an infix operator by placing it between backticks, e.g. a silly way to do addition is $x \; \texttt{`}\mt{plus}\texttt{`} \; y$ instead of $x + y$.
+
+Hexadecimal integer literals are supported like \texttt{0xDEADBEEF}. Only capital letters are allowed.
+
\section{Static Semantics}