mirror of
https://github.com/janishutz/eth-summaries.git
synced 2026-10-09 05:46:20 +02:00
[FMFP] Add abbreviations for comparision operators
This commit is contained in:
1 parent
1d38412334
commit
11fda33771
2 files changed
+1
No files matched your search
Binary file not shown.
@@ -20,6 +20,7 @@ Arithmetic and Boolean statements could be defined in Haskell as follows
|
||||
data Bexp = Or Bexp Bexp | And Bexp Bexp | Not Bexp | Rel Rop Aexp Aexp
|
||||
data Rop = Eq | Neq | Le | Leq | Ge | Geq
|
||||
\end{code}
|
||||
with the abbreviations for \texttt{Eq} (=), \texttt{Neq} (\#), \texttt{Le} ($<$), \texttt{Leq} ($\leq$), \texttt{Ge} ($>$) and \texttt{Geq} ($\geq$)
|
||||
|
||||
Statements could be defined in Haskell as follows
|
||||
\mint{haskell}+data Stm = Skip | Assign String Aexp | Seq Stm Stm | If Bexp Stm Stm | While Bexp Stm+
|
||||
|
||||
Reference in new issue
Block a user