There's a need of /= (not equal) operator which is the opposite of ==.
Example:
if 1 /= 2 then
"1 is not equal to 2"
else
"1 is equal to 2"
end
Steps:
1) See development guide
2) Add tests for parser (tests/Parser/ParserSpec.hs)
3) Add tests for interpreter (tests/Interpreter/EvalSepc.hs)
4) Add operator name in src/parser/Language.hs
5) Add data constructor to AST (src/parser/AST.hs)
6) Handle the operator in src/interpreter/Eval.hs
7) See if tests pass stack test
P.S. For now it's ok for this operator to be able to compare only numbers (as == does)
There's a need of
/=
(not equal) operator which is the opposite of==
.Example:
Steps:
1) See development guide 2) Add tests for parser (
tests/Parser/ParserSpec.hs
) 3) Add tests for interpreter (tests/Interpreter/EvalSepc.hs
) 4) Add operator name insrc/parser/Language.hs
5) Add data constructor to AST (src/parser/AST.hs
) 6) Handle the operator insrc/interpreter/Eval.hs
7) See if tests passstack test
P.S. For now it's ok for this operator to be able to compare only numbers (as
==
does)