polaris64 / p64lang_rust

Simple language parser, interpreter and CLI built in Rust, to be used for baremetal/no_std environments.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

p64lang_rust

Simple language parser, interpreter and CLI built in Rust, to be used for baremetal/no_std environments.

Introduction

This repository contains three crates: -

  • p64lang: library containing a parser and interpreter for the work-in-progress P64PL language;
  • p64lang_cli: binary crate which includes to above library and provides a simple CLI for executing P64PL programs from stdin; and
  • p64lang_wasm: a library crate intended for the wasm32-unknown-unknown target with an associated WebPack project providing a simple web interface to the p64lang parser and interpreter.

The eventual goal of this project is to create a baremetal/no_std interpreted language for use within another (as yet unreleased) project. The p64lang crate includes a no_std feature which compiles the parser and interpreter without using the Rust standard library. This is an optional feature, the std feature is enabled by default.

Example

For a live example of the parser and interpreter running in the browser as a WASM module, please take a look at this example on my website.

About

Simple language parser, interpreter and CLI built in Rust, to be used for baremetal/no_std environments.

License:MIT License


Languages

Language:Rust 92.8%Language:HTML 3.9%Language:JavaScript 3.2%Language:Shell 0.2%