Calendar Language Interpreter

Calendar Language v0.3 web runner

Code


        

Input / Output

Language Notes

Values

Date, Weekday, DatePattern, Veil, DateRange, Bool

let d = 2001-10-14
let p = d ~ #????-..-..
show p

Search

>>, <<, =>>, =<< search dates by weekday or pattern.

let a = 2001-02-25
show a >> $a+
show a >> %????-03-??

Raw I/O

pick reads one byte. Its block runs only on EOF. print writes raw bytes.

loop:
    pick trace v:
        break

    print trace v

Functions

Functions use fn, ret, and explicit call name(args).

fn tomorrow(d: Date) -> Date:
    ret d >> $d+

show call tomorrow(2001-02-25)