Coder Social home page Coder Social logo

lantern's Introduction

Lantern

License: GPL v3

Lantern Logo

Lantern is a stack based, interpreted programming language written in C. The goal of the project is creating a fast, bloatless and powerful programming tool that can be used for multiple purposes.

The language has access to the underlying memory structure and in general is desinged to be easily used as a low level programming language too.

Lantern is, due to the stackbased paradigm of the language it is written in reverse polish notation. wich sets it apart from a lot languages that work with AST or other structures.

Feature list

  • Conditions & loops
  • Heap Memory System
  • Stackframe System
  • Variables & Type checking
  • Stack Mechanics
  • Raw Memory Access
  • Functions
  • Else-If Functionality
  • Macros
  • Access to Syscalls
  • Defining Structs (C-Style)
  • Adding Fundamental Variable Types (float, double, char...)
  • String Concatenation & Equality Operators

Building

Linux

Requirements

  • GCC Compiler
  • Make command
mkdir bin
make

Windows

Requirements

  • GCC Compiler
mkdir bin
build.bat

Example Usage

A implentation of the FizzBuzz problem

0 = counter

while counter 10000 < run
    counter 3 % 0 == counter 5 % 0 == and if
        "fizzbuzz" println
    elif counter 3 % 0 == then
        "fizz" println
    elif counter 5 % 0 == then
        "buzz" println
    end
    counter println
    counter 1 + = counter
end

Inspiration

  • Forth, a stack based, imperative programming language
  • Python, a easy to used, interpreted programming language
  • C, a statically typed, low level programming language

Contributing

You can contribue to Lantern by:

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.