Skip to content
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.

CPunch/Pyuxncle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

Small C-like language compiler for the Uxntal assembly language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages