It was surprisingly easy to get my stack based programming language to generate the file format of git.sr.ht/~rabbits/dotgrid by @neauoire

Implemented variable bindings (in one global dictionary) and graphics state (for now only a x,y position).

Obligatory quadtree grammar,
I think I need to figure out how to implement arrays next.

Alternative output device,
the interpreter now generates json files in the format used by my AxiDraw driver.

The "save" at the bottom looks weird because the lower part is getting clipped.

Added lines and floating point numbers, it's nice to make something that doesn't go away when I turn off my computer

Follow

@nasser Thanks! I really like these kinds of single-purpose programming languages and for some reason including the source code adds a lot to it. It's a bit like a puzzle, trying to relate elements of the code to elements of the picture

· · Web · 0 · 1 · 1
Sign in to participate in the conversation
Merveilles

Merveilles is a community project aimed at the establishment of new ways of speaking, seeing and organizing information — A culture that seeks augmentation through the arts of engineering and design. A warm welcome to any like-minded people who feel these ideals resonate with them.