Code Monkey home page Code Monkey logo

aml's Introduction

AML - A Mathematical Language

AML is a small DSL written on top of GraalVM and its Truffle framework. Read the Specification for information about its features.

Modules

The language is structured in four modules:

  • language: contains the language implementation and tests.
  • polyglot: exemplifies how to use the DSL with Java.
  • repl: a small REPL to try out the DSL.
  • runner: provides an executable to run a AML file.

Development

The only required dependency is GraalVM version 21.0.0 which can be downloaded from the official GraalVM website. After downloading it and pointing the JAVA_HOME environment variable to it you are ready to go.

To build the project, a maven wrapper is available for both windows and unix systems. The following command compiles all code, executes the tests and builds all necessary JAR files:

# On windows use mwnw.cmd instead of mwnw
$ ./mwnw package

To actually use AML there are different possibilities:

  • Using a REPL: the repl script provides the ability for both windows and unix to start a REPL and try out AML.
  • Evaluating a source file: the runner script expects a file path as input and executes the file. Look at the samples of the repository for some example files.
  • Embedding the DSL: to use the DSL as an embedded language through GraalVM a component has to be created first and installed using the Graal Updater tool. The make_component.sh, install_component.sh and remove_component.sh script show how this can be achieved. Furthermore the polyglot module, polyglot.rb and polyglot.clj show how AML can be embedded using different languages.

aml's People

Contributors

bakku avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.