erg_compiler 0.6.53

Centimetre: the Erg compiler
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
.Nat: ClassType
.Nat.
    '''
    Execute `proc!` `self` times.
    '''
    '''erg
    10.times! do!:
        print! "hello"

    print_hello!() = print! "hello"
    10.times! print_hello!
    '''
    times!: (self: .Nat, proc!: () => NoneType) => NoneType