Skip to content

ajbkr/Hence

Repository files navigation

Hence

Hence is an experimental stack-oriented programming language with an English-like syntax.

NOTE: Heavily work-in-progress!

Getting Started

The experimental Hence compiler, hence, is currently written in PHP for ease of prototyping.

Use chmod on UNIX-like platforms to make hence executable.

$ chmod +x hence

ANSI C

$ gcc -c libhence.c
$ ./hence -tc h0.hence hello.hence > hello.c
$ gcc -o hello hello.c libhence.o
$ ./hello

CHIP-8

Work-in-progress!

$ ./hence -tch8 h0.hence hello.hence > hello.m4
$ m4 hello.m4 > hello.asm
$ chasm hello.asm hello.ch8
$ myChip8 hello.ch8

JavaScript

Currently unmaintained!

$ ./hence -tjs h0.hence hello.hence > hello.js
$ node hello.js

PHP

Currently unmaintained!

$ ./hence -tphp h0.hence hello.hence > hello.php
$ php hello.php

TODO

  • Plenty

About

A stack-oriented programming language with an English-like syntax

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published