You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Seth Stubbs 0e27c6d8fc Added basic constant array support, added Screen example 5 months ago
examples Added basic constant array support, added Screen example 5 months ago
src Added basic constant array support, added Screen example 5 months ago
.gitignore .gitignore cleanup 5 months ago
README.md Typo :P 5 months ago

README.md

Pyuxncle

Pyuxncle is a single-pass compiler for a small subset of C (albeit without the std library). This compiler targets Uxntal, the assembly language of the Uxn virtual computer. The output Uxntal is not meant to be human readable, only to be directly passed to uxnasm.

Usage

To compile a source file, pass it like so:

./src/pyuxncle [SRC_FILE] [OUT_UXNTAL_FILE]

Examples

device Console[0x18] {
    char write;
};

Console.write = 'H';
Console.write = 'i';
Console.write = '!';
Console.write = 0x0A;

Hi!