Plasma Programming Language
Switch branches/tags
Nothing to show
Clone or download
PaulBone [pzrun] Use a consistent style for struct names
Use a consistent style for struct and typedef names in C code.  Struct names
shall be the typedef names with _S appended (PZ_RadexTree is an exception).

Closes: #68

runtime/pz.c:
runtime/pz.h:
runtime/pz_code.c:
runtime/pz_code.h:
runtime/pz_data.h:
runtime/pz_radix_tree.c:
runtime/pz_radix_tree.h:
runtime/pz_run.h:
runtime/pz_run_generic.c:
    Update code.

docs/C_style.txt:
    Update style guide.
Latest commit 58e1f0c Oct 13, 2018

README.md

Plasma Language

a new programming language

Plasma is a new programming language for safe and efficent general purpose use. It is a statically typed, side-effect free single assignment language and will have functional programming and concurrent programming features. It will support deterministic parallel execution. For a general overview, please visit https://plasmalang.org/ It is in early development.

It is free software, distributed mostly under the MIT license, see LICENSE.

Dependencies

You will need:

  • A C compiler (C99 on a POSIX.1-2008 environment), I've been testing with GCC. Clang should also work.
  • Mercury. I attempt to maintain compatibility with 14.01.1 until installation issues on OS X are resolved in the newer builds.
  • Asciidoc

Mercury installation

The easiest way to install Mercury is to install the .deb packages (on Debian, Ubuntu, etc).

Otherwise download Mercury's source pakcage and follow the installation instructions in the INSTALL file. We've made some notes about grades that may help with choosing which grades you may need. There is also a README.bootstrap file with Mercury bootstrapping information if you wish to do that, it may also provide some additional explaination.

Usage

Make any changes you may need in the Makefile, everything configurable is towards the top of this file.

Use make in the root directory to build the project.

You should get:

  • src/plasmac - The plasma compiler, compiles plasma (.p) files to plasma bytecode (.pz)
  • runtime/pzrun - The runtime system, executes plasma bytecode (.pz) files.
  • src/pzasm - The plasma bytecode assembler. This compiles textual bytecode (.pzt) to bytecode (.pz). It is useful for testing the runtime.

There are example plasma programs in examples/. Running make test will execute these programs as part of the test suite to ensure that things are working correctly.

Layout

  • docs/ - Documentation
  • examples/ - Example Plasma programs
  • runtime/ - Runtime system (C code)
  • src/ - The compiler and other tools
  • tests/ - The test suite (in addition to some of the files in examples/)

Contributing

Please see CONTRIBUTING.md and CODE_OF_CONDUCT.md.