/alg

A simple algebra language for demonstrating language design.

Primary LanguageJavaMIT LicenseMIT

Alg

A simple Alg(ebra) language for demonstrating language design.

The corresponding presentation/slides can be found here.

Building and Running

./gradlew installDist

REPL

./build/install/alg/bin/alg
> x = 5
x = 5.00000

Run a file

./build/install/alg/bin/alg ./examples/circlePoint.alg r=5 theta=30
x = 0.771257
y = -4.940158

Running with Gradle

By default, Gradle outputs some build status information and doesn't attach stdin to the process. To disable this behavior, add two flags to ./gradlew run:

./gradlew run -q --console=plain