[FMFP] Add abbreviations for comparision operators

This commit is contained in:
2026-05-04 09:54:31 +02:00
parent 1d38412334
commit 11fda33771
2 changed files with 1 additions and 0 deletions
@@ -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+