~jasper/type_stack_calc

Stack language that calculates with the types & compiles
babd34ef — Jasper den Ouden 4 days ago
Forgot to ensure the continuous check worked
f05198b6 — Jasper den Ouden 9 days ago
Add referring to blogpost
a914c12f — Jasper den Ouden 9 days ago
Produce C for methods too. Note: can still have accidentally overlapping C names.

refs

main
browse  log 

clone

read-only
https://git.sr.ht/~jasper/type_stack_calc
read/write
git@git.sr.ht:~jasper/type_stack_calc

You can also use your local clone with git send-email.

#WIP stack programming language

It's quite fancy, and low (1952, make wc for current)LOC & no dependencies. It (initially) aims at producing C code.

It has a stack programming language but ideally want to convert a subset of Python to it.

It works by "just" calculating the types. See there is a blogpost on it and a very WIP text doc/how_it_works.md. (also WIP doc/files.md which tells you what the different files do.)

It is still in a state of work in progress. There is still a bunch todo.

#Run

script/show.sh shows a run. make continuous runs this continuously, while looking if source files change. I.e. if you save a change, it immediately reloads.

#Install

Doesn't really exist yet.. script/show.sh changes PYTHONPATH a bit of load the type_stack_calc/ directory, if you run it from the right directory.

Otherwise, you can symlink the type_stack_calc/ directory from somewhere in PYTHONPATH. For instance ~/.local/lib/python3.9/site-packages/.

#License

Affero GNU General Public License, see doc/agpl-3.0.txt.