Example programming language for calculating dates
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
Makefile
README.md
datecalc.py

README.md

datecalc

A calculator for dates.

Written as an example programming language for a workshop where we write our own language. See also the workshop slides.

Should work in Python 2 and Python 3.

Examples:

Typing this in a terminal in this directory:

python datecalc.py "today + 2 days"

Should print a response like this:

2017-05-21 (Sunday)

Run the tests:

make