Git Product home page Git Product logo

gamma-cli's Introduction

Gamma CLI

A CLI (command line interface) for the gamma programming language. This project uses gamma-library.

This project is an example of how to integrate gamma-library in a project.

how to use gamma CLI

invoke with a gamma file

You can call the CLI with a location of a .gma-File as a parameter. The file is then parsed, executed and the result of the last expression printed out as the result of the script.

Use the CLI as a REPL

If you start the CLI without any parameter, you will be greeted with a REPL. You can then type gamma code and have it executed with the command . (a single dot on the input line).

Type .help to see all commands.

use the CLI as an interpreter for a script in another file

If you have a file with valid gamma-code you can use the CLI to execute that. Simply supply the name of the file as the first (and only) parameter.

The CLI will parse and execute the script. The result of the last expression together with the runtime in milliseconds will be printed out.

native compile the gamma interpreter

You can install GraalVM together with its module native-image to produce a machine native executable binary.

Once you have installed, just call build.sh and the current CLI โ€“ together with the latest build of gamma-library โ€“ will be natively compiled. This executable can be moved to any position on the classpath to run the REPL or the interpreter for gamma-script files natively.

gamma-cli's People

Contributors

goetz-markgraf avatar

Stargazers

Marco Emrich avatar

Watchers

 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.