erg_compiler 0.6.53

Centimetre: the Erg compiler
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
._StoreAction: ClassType

.ArgumentParser!: ClassType
.new = 'ArgumentParser': (description := Str, prog := Str) -> .ArgumentParser!
.ArgumentParser!.
    add_argument!: (
        name: Str, # TODO: var-args
        action := Str or NoneType,
        default := Obj or NoneType,
        type := Type,
        required := Bool,
        help := Str or NoneType,
        choices := Obj or NoneType,
    ) => ._StoreAction
    .parse_args!: (args := Str or [Str; _] or NoneType,) => Obj # TODO: type with dependent types