Blecki / DCPUB

C-like language compiled to DCPU assembly
Microsoft Public License
47 stars 3 forks source link

DCPUB

DCPUB is a language similar to B. This compiler targets the 1.7 DCPU-16 specification.

Features

Installation

Download Latest Version

Included in this archive:

On Linux and Mac, install Mono and prepend all commands with mono.

Building from Source

DCPUB is written in C#, and may be built with Microsoft.NET on Windows, or Mono on Linux/Mac.

MS.NET: Add Microsoft.NET to your %PATH% and run msbuild from the root of the repository.

Mono: Run xbuild from the root of the repository.

Usage

b - Compiler

Compiles DCPUB source to assembly or machine language.

b [flags] in-file [out-file]

Flags:

pre - Preprocessor

Expands macros and file inclusions

pre input.b output.b

pre has no switches or options.

Preprocessor directives will cause errors in the compiler. If they are used in the program, it must be preprocessed first.

Getting help

If you find bugs, need assistance, or otherwise encounter trouble, feel free to make an issue on GitHub.