Skip to content

voidwyrm-2/page

Repository files navigation

Page

A PostScript-inspired stack-based scripting language.

Unlike PostScript, Page is intended for general scripting, like Python or Lua.

Installation

Prebuilt binaries

Prebuilt binaries can be downloaded from the releases.

Compiling locally

Prerequisites

  • A Unix system or similar (compiling on Windows is not currently supported)
  • Git, which should be on your system already
  • Nim, which can be downloaded from https://nim-lang.org/install.html
  • Nimble, which should have come bundled with Nim
git clone https://github.com/voidwyrm-2/page
cd page
chmod +x build.nims
./build.nims host
./out/host/page -v
./out/host/page --repl

Addtionally, if you want to cross-compile or build in release mode, you'll need

git clone https://github.com/voidwyrm-2/page
cd page
sudo sh -c "printf '#! /bin/sh\nzig cc \\\$@' > /usr/local/bin/zigcc"
sudo chmod +x /usr/local/bin/zigcc
chmod +x build.nims
./build.nims some

For building for MacOS, you'll need

  • A MacOS system, because of library issues
git clone https://github.com/voidwyrm-2/page
cd page
xcode-select --install
chmod +x build.nims
./build.nims macos

Contributing

See contrib.md.