/permalang

A compiler for a statically typed language

Primary LanguageC++GNU General Public License v3.0GPL-3.0

License: GPL v3

Permalang

A toolchain for the Permalang language including:

  • permalang compiler
  • permalang virtual machine

Inspired by the C programming language.




Table of contents




Installation

Build toolchain

make release

Install toolchain

make install

Uninstall toolchain

make uninstall



Usage

Compile

pcc <source.pf>

Compile with optimizations

pcc -O <source.pf>

Use the -v flag for verbose compilation


Run executable

pcc <executable> -x

Help page

pcc --help



Syntax and features

Most of the syntax is borrowed from C

Variable declaration and assignment

int i;
int i = 0;

If statements

if (/* condition */)
{
    // code
}

While loop

while (/* condition */)
{
    // code
}



Data types

bool b = false;
byte b = 0;
int i = 0;
long l = 0;
float f = 0;  // still work in progress
double d = 0; // still work in progress



License

This software is licensed under the GNU GPLv3 license.