STL rework

- fixed lots of bugs
- overlay libraries work correctly and reliably
- the STL is an overlay library
- examples updated
This commit is contained in:
2023-06-17 21:12:23 +01:00
parent 5bb8a12fc2
commit aebbf51228
91 changed files with 1444 additions and 1395 deletions

View File

@@ -1,16 +1,15 @@
import std::(parse_float, to_string)
import std::(readline, print)
import std::(proc::*, to_float, to_string, io::(readline, print))
export main := do{
cps print "left operand: ";
cps data = readline;
let a = parse_float data;
let a = to_float data;
cps print "operator: ";
cps op = readline;
cps print ("you selected \"" ++ op ++ "\"\n");
cps print "right operand: ";
cps data = readline;
let b = parse_float data;
let b = to_float data;
let result = (
if op == "+" then a + b
else if op == "-" then a - b