tilted

Crates.iotilted
lib.rstilted
version0.4.0-beta.2
sourcesrc
created_at2023-09-02 02:54:38.250812
updated_at2023-09-10 04:42:39.559839
descriptionA toy mathematical interpreter written in Rust.
homepagehttps://github.com/SaltedPeanutButter/tilted
repositoryhttps://github.com/SaltedPeanutButter/tilted
max_upload_size
id961465
size61,569
Nguyen Thai Binh (SaltedPeanutButter)

documentation

README

Project tilted

tilted is a toy mathematical interpreter written in Rust. It is a hobbyist project and is not intended for any serious use.

Installation

tilted consists of the interpreter and the library behind it. If you only want to try out/test the project, the interpreter is sufficient; otherwise, you can add the library as a dependency and play around!

Interpreter

There is no pre-compiled binary available so you will need to compile it yourself using cargo. Run the following (make sure cargo is installed):

cargo install tilted

Library

Even though the library is not intended for other usage, it can still be added as a dependency to your project. Add the following to your Cargo.toml:

[dependencies]
tilted = { version = "0.4.0-beta.2", features = [] }

tilted comes with all features enabled by default, including the cli feature that provides for the executable.

Usage

The help message can be printed with tilted --help:

A toy mathematical interpreter written in Rust.

Usage: tilted [OPTIONS] [INPUT]

Arguments:
  [INPUT]  user input

Options:
  -p, --ast      print the AST instead of the result
  -r, --repl     enable interactive (read-eval-print-loop) mode
  -h, --help     Print help
  -V, --version  Print version
Commit count: 145

cargo fmt