MCPcopy Index your code
hub / github.com/ad-si/Woxi

github.com/ad-si/Woxi @v0.1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.1.0 ↗ · + Follow
56 symbols 108 edges 6 files 5 documented · 9%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Wordmark of Woxi

Woxi

A Rust-based interpreter for a subset of the Wolfram Language.

Features

The initial focus is to implement a subset of the Wolfram Language so that it can be used for CLI scripting. For example:

#!/usr/bin/env woxi

(* Print 5 random integers between 1 and 6 *)
Print[RandomInteger[{1, 6}, 5]]

Check out the CLI tests directory to see all currently supported commands and their expected output. All tests must pass with Woxi and WolframScript.

Check out the functions.csv file for a list of all Wolfram Language functions and their implementation status.

Woxi runs faster than WolframScript as there is no overhead of starting a kernel and verifying its license.

Installation

To use this Wolfram Language interpreter, you need to have Rust installed on your system. If you don't have Rust installed yet, you can get it from rust-lang.org.

Clone the repository and build the project:

git clone https://github.com/ad-si/Woxi
cd Woxi
cargo build --release

Usage

You can use the interpreter directly from the command line:

cargo run -- "1 + 2"

This will output: 3

CLI Comparison With WolframScript

Woxi WolframScript
woxi eval "1 + 2" wolframscript -code "1 + 2"
woxi run script.wls wolframscript script.wls
woxi repl wolframscript

Contributing

Contributions are very welcome! Please feel free to submit a Pull Request.

Testing

To run the test suite:

make test

Related

Core symbols most depended-on inside this repo

Shape

Function 50
Enum 3
Class 2
Method 1

Languages

Rust100%

Modules by API surface

src/lib.rs20 symbols
tests/parser_tests.rs13 symbols
tests/interpreter_tests.rs10 symbols
tests/high_level_functions_tests.rs6 symbols
src/main.rs4 symbols
tests/list_tests.rs3 symbols

For agents

$ claude mcp add Woxi \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page