Simple language parser, interpreter and CLI built in Rust, to be used for baremetal/no_std environments.
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.
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.