https://github.com/radrow/postkrypt
Extension to PostScript subset written in Haskell
https://github.com/radrow/postkrypt
Last synced: over 1 year ago
JSON representation
Extension to PostScript subset written in Haskell
- Host: GitHub
- URL: https://github.com/radrow/postkrypt
- Owner: radrow
- License: bsd-3-clause
- Created: 2019-03-25T21:24:54.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-25T21:38:41.000Z (about 7 years ago)
- Last Synced: 2025-01-22T21:28:31.552Z (over 1 year ago)
- Language: Haskell
- Size: 395 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog.md
- License: LICENSE
Awesome Lists containing this project
README
# postkrypt
A simple PostScript subset that compiles to even smaller PostScript subset. Made as a task for MIMUW Languages and Programming Paradigms course.
## Functionality:
Input is limited to following expressions:
- numbers – that are pushed on a stack
- `add`, `sub`, `mul`, `div` – that pop two numbers from stack, apply operation to them and push result to the stack
- `translate` and `rotate` – that update current transformation (they pop arguments from stack as well)
- `lineto`, `moveto`, `closepath` – drawing lines and moving coursor. `closepath` draws line into beginning of current path.
Output is limited only to numbers and `lineto` and `moveto` commands.