Coder Social home page Coder Social logo

legend's Introduction

Legend

Legend is a WIP multi-purpose programming language that is intended to be intuitive and easy to learn. Features are being added and updated all the time, so some of the examples shown here may not represent the intended final look of the language.

Here's an example of a simple program:

"What's your name?"
name = String.read()
if #name == 0
    "You must enter a name!"
else if name == 'ValorCat'
    "I doubt that."
else
    ('Hello, ' & name).show()
end

Checkout the wiki for a syntax reference: https://github.com/ValorCat/legend/wiki

Running the Interpreter

There are two versions of the interpreter. Read below to determine which version is best for you.

Standalone Version

This version is slightly larger (~25 mb unzipped), but has no external dependencies. Simply go to the releases page and choose the latest version:

Releases: https://github.com/ValorCat/legend/releases

At the bottom under "Assets", download legend-standalone.zip. Unzip it and navigate to the bin subdirectory. You can run the interpreter by double-clicking legend.bat (on Windows) or legend (on Mac/Linux).

You can also run the interpreter from the terminal with:

./bin/legend path/to/input.leg

Java-Dependent Version

This version is much smaller (~200 kb), but requires Java 11 installed. If you don't have Java 11 but want to use this version, you can download the Java 11 JDK from Oracle:

JDK 11: https://www.oracle.com/technetwork/java/javase/downloads/jdk11-downloads-5066655.html

Once Java is installed, go to the Legend releases page and choose the latest version:

Releases: https://github.com/ValorCat/legend/releases

At the bottom under "Assets", download legend.jar. On some systems, you can double-click the JAR file to run it. Otherwise, you can run the interpreter from the terminal with:

java -jar legend.jar path/to/input.leg

legend's People

Contributors

valorcat avatar

Stargazers

Shankho Boron Ghosh avatar

Watchers

James Cloos 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.