Kaba class Alpha ed

...

Syntax ed

class Alpha

    # functions
    func static pure all(type: Class&) -> Alpha[]
    func static pure from_int(i: i32) -> Alpha
    func static pure parse(label: string, type: Class&) -> Alpha

    # operators
    func pure __i32__() -> i32           # i32(Alpha) -> i32
    func static __assign__(a: Alpha, b: Alpha) # Alpha = Alpha
    func pure __add__(b: Alpha) -> Alpha # Alpha + Alpha -> Alpha
    func static __iadd__(a: Alpha, b: Alpha) # Alpha += Alpha
    func pure __eq__(b: Alpha) -> bool   # Alpha == Alpha -> bool
    func pure __neq__(b: Alpha) -> bool  # Alpha __neq__ Alpha -> bool
    func pure __bitand__(b: Alpha) -> Alpha # Alpha & Alpha -> Alpha
    func pure __bitor__(b: Alpha) -> Alpha # Alpha | Alpha -> Alpha

    # constants
    let DEST_ALPHA: Alpha
    let DEST_COLOR: Alpha
    let DEST_INV_ALPHA: Alpha
    let DEST_INV_COLOR: Alpha
    let ONE: Alpha
    let SOURCE_ALPHA: Alpha
    let SOURCE_COLOR: Alpha
    let SOURCE_INV_ALPHA: Alpha
    let SOURCE_INV_COLOR: Alpha
    let ZERO: Alpha

Functions ed

func static pure all(type: Class&) -> Alpha[]
...

func static pure from_int(i: i32) -> Alpha
...

func static pure parse(label: string, type: Class&) -> Alpha
...