Giter VIP home page Giter VIP logo

li0n's Introduction

li0n


Description

The Lovett-oriented programming language for the modern world. Based on the BASIC programing language and translated with a Python interpreter, li0n truly is at the forefront of the upfront.

Guide

The Basics

So you want to develop with li0n? Cool. Here's how it works. Using li0n requires a language file (in our repo, this is test.lang), and the interpreter, written in Python (that's li0n.py). Follow the Installation section below to get all that setup, then come back here.

Great! Now that everything is installed, here's how to get started. In the language file, you write your code in li0n. Most syntax is case insensitive, which makes development in li0n quick, easy, and minimal. Unlike some inferior languages, li0n needs no semicolons! Just type your next line of code on a new line, and the Python interpreter will recognize the new line of code. See below for a more comprehensive guide to the language.

Preach:

Preach is case insensitive. In any of the following examples, replacing 'preach' with 'PREACH' or 'pReAcH' will accomplish the same results.

preach "I am race" will print the string "I am race" to the console, without quotes.

preach 1926 will print the number 1926 to the console.

preach 2015 - 89 will print the result of this expression to the console.

Expressions:

Currently supported mathematical expressions are addition (+), subtraction (-), multiplication (*), divsion (/), and modulus (%). Expressions ignore spaces, and support parentheses. Correct order of operations applies. Print results of expressions using preach.

preach 10 * (8 - 2) prints 60 to the console.

preach 10 * 8 - 2 prints 78 to the console.

Strings:

Strings are recognized by surrounding them with double quotes. Print strings to the console using preach.

preach "This is a string in li0n!" prints "This is a string in li0n!" to the console, without quotes.


Installation

Installing and developing with li0n is a breeze! Here is the step-by-step process regarding the installation of li0n:

  1. Get the files from GitHub onto your computer, either by cloning the repository or downloading and extracting the .zip file.
  2. Open li0n.py and test.lang in your text editor of choice (We use Sublime Text, primarily)
  3. Ensure that Python is installed on your computer. If not, download it here and report back.

And that's it! Now you are on your way to becoming a full fledged li0n developer! Play around with the Python interpreter and the source .lang file and see what you can do!

To run the li0n interpreter on your source file:

  1. Open your command line, and change directory into the location of li0n.py and test.lang
  2. Run the command python3 li0n.py test.lang (or the names of your files, if you renamed them)
  3. Marvel at your amazing li0n development!

Authors

Anthony Romaniello, Ned Ellis, Davis Rackley, Ethan Goldfarb


License

li0n is protected under the MIT License. The MIT License is a permissive license that is short and to the point. It lets you, yes YOU, do anything you want with our code as long as you provide attribution back to us and don’t hold us liable. Read more about this in LICENSE.txt, found in the root directory of our code.


Coded with <3 by the Lovett Developers Club in Atlanta, GA

li0n's People

Contributors

davisrackley avatar ekg15 avatar epellis avatar

Watchers

Anthony Romaniello avatar  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.