print & build visitor fixed and tested

This commit is contained in:
ProgramSnail 2023-04-26 01:02:53 +03:00
parent c34523bd4f
commit 66a5dcfb4a
14 changed files with 91 additions and 62 deletions

View file

@ -5,7 +5,7 @@ def fruit_cost : fruit = {
}
def amount_to_string : x is_zero_separated = {
const ans = match x with
const ans = match x with
| 0 ? is_zero_separated () -> "Zero"
| 0 | 1 | 2 | 3 | 4 -> "Few"
| x ? (5..9).contains x -> "Several"

View file

@ -3,6 +3,6 @@ alias T1 = Int
abstract (T2 : #A #B #C)
// Used to pre-compile module for some types
// let T2 = Int
// let T2 = Float
// let T2 = Complex
let T2 = Int
let T2 = Float
let T2 = Complex