Giter Club home page Giter Club logo

jingle-lang / jingle Goto Github PK

View Code? Open in Web Editor NEW
43.0 43.0 1.0 1.73 MB

๐Ÿ”” Jingle is a dynamically-typed, multi-paradigm programming language designed for humans and machines.

Home Page: https://midoublelo.gitbook.io/jingle-docs/

License: Mozilla Public License 2.0

C# 100.00%
bytecode compiler functional-programming interpreter jingle jingle-lang jit-compiler lalr language llvm llvmlite object-oriented-programming programming-language scripting-language virtual-machine

jingle's Introduction

Jingle Logo

Jingle Lang 2021.2

Status GitHub Issues GitHub Pull Requests


Jingle is a dynamically-typed, multi-paradigm programming language designed for humans and machines.

๐Ÿ“ Table of Contents

๐Ÿ“œ About

Jingle is a dynamically-typed programming language currently in development. Code in Jingle is fast to run and compile while still retaining small source files and binaries. Based off the Crafting Interpreters book with a new syntax and expanded standard library. More base language features are coming soon.

Here is an example that calculates the Fibonacci numbers and times it to give you a quick look at the language:

fn fib(n):
  if (n < 2) return n;
  return fib(n - 2) + fib(n - 1);
end

var start = timer();
echo "How many iterations?";
var iter = num(gets());
echo "fib(" + str(iter) + ") = " + str(fib(iter));
echo "Time taken " + str(round(timer() - start, 2)) + "s";

Getting Started

Tested in Visual Studio 2019 on Windows. Publish build to local folder and run from commandline: jingle <filename>

jingle's People

Contributors

midoublelo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

bubdm

jingle's Issues

LLVM Compiler

JIT Compiler for Jingle using LLVMlite. May have to use a different parser in order to make an AST that translates better to LLVM bitcode.

Occasional odd visitor error

The tree-walk interpreter currently has a weird bug where it occasionally panics and cannot choose the right AST node to evaluate. Any possible reason why?

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.