Skip to content
Snippets Groups Projects
Commit b0618979 authored by Ralf Jung's avatar Ralf Jung
Browse files

Merge branch 'heaplang-tex-additions' into 'master'

Changed HeapLang operator macros to support both parentheses and spaces

See merge request iris/iris!852
parents e2b9bfb2 c453c97d
No related branches found
No related tags found
No related merge requests found
...@@ -29,16 +29,16 @@ ...@@ -29,16 +29,16 @@
\def\Let#1=#2in{\langkw{let} \spac #1 \mathrel{=} #2 \spac \langkw{in} \spac} \def\Let#1=#2in{\langkw{let} \spac #1 \mathrel{=} #2 \spac \langkw{in} \spac}
\def\If#1then{\langkw{if} \spac #1 \spac \langkw{then} \spac} \def\If#1then{\langkw{if} \spac #1 \spac \langkw{then} \spac}
\def\Else{\spac\langkw{else} \spac} \def\Else{\spac\langkw{else} \spac}
\def\Ref(#1){\langkw{ref}(#1)} \def\Ref{\operatorname{\langkw{ref}}}
\def\Rec#1(#2)={\langkw{rec}\spac{#1}({#2}) \mathrel{=} } \def\Rec#1#2={\langkw{rec}\spac\operatorname{#1}#2 \mathrel{=} }
\def\RecE#1(#2)={\langkw{rec}_\exprForm\spac{#1}({#2}) \mathrel{=} } \def\RecE#1#2={\langkw{rec}_\exprForm\spac\operatorname{#1}#2 \mathrel{=} }
\def\RecV#1(#2)={\langkw{rec}_\valForm\spac{#1}({#2}) \mathrel{=} } \def\RecV#1#2={\langkw{rec}_\valForm\spac\operatorname{#1}#2 \mathrel{=} }
\def\Skip{\langkw{skip}} \def\Skip{\langkw{skip}}
\def\Assert{\langkw{assert}} \def\Assert{\operatorname{\langkw{assert}}}
\def\Inl{\langkw{inl}} \def\Inl{\operatorname{\langkw{inl}}}
\def\Inr{\langkw{inr}} \def\Inr{\operatorname{\langkw{inr}}}
\def\Fst{\langkw{fst}} \def\Fst{\operatorname{\langkw{fst}}}
\def\Snd{\langkw{snd}} \def\Snd{\operatorname{\langkw{snd}}}
\def\True{\langkw{true}} \def\True{\langkw{true}}
\def\False{\langkw{false}} \def\False{\langkw{false}}
\def\NewProph{\langkw{newproph}} \def\NewProph{\langkw{newproph}}
...@@ -58,12 +58,12 @@ ...@@ -58,12 +58,12 @@
\def\MatchS#1with#2=>#3end{ \def\MatchS#1with#2=>#3end{
\langkw{match}\spac#1\spac\langkw{with}\spac#2\Ra#3\spac\langkw{end}} \langkw{match}\spac#1\spac\langkw{with}\spac#2\Ra#3\spac\langkw{end}}
\newcommand\Alloc{\langkw{Alloc}} \newcommand\Alloc{\operatorname{\langkw{Alloc}}}
\newcommand\Free{\langkw{Free}} \newcommand\Free{\operatorname{\langkw{Free}}}
\newcommand\CAS{\langkw{CAS}} \newcommand\CAS{\operatorname{\langkw{CAS}}}
\newcommand\CmpXchg{\langkw{CmpXchg}} \newcommand\CmpXchg{\operatorname{\langkw{CmpXchg}}}
\newcommand\Xchg{\langkw{Xchg}} \newcommand\Xchg{\operatorname{\langkw{Xchg}}}
\newcommand\FAA{\langkw{FAA}} \newcommand\FAA{\operatorname{\langkw{FAA}}}
\newcommand\deref{\mathop{!}} \newcommand\deref{\mathop{!}}
\let\gets\leftarrow \let\gets\leftarrow
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment