1.2.5 • Published 2 years ago

@jerscript/jerscript v1.2.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Thumbnail

GitHub code size in bytes GitHub Issue Count GitHub PR Count Code License GitHub Stars Latest Version Discord

JERscript

A scripting language inspired by Lua's simplicity and Python syntax completely made in Javascript, with Moo and Nearley!

Feel free to contribute, make sure to star, fork and watch!

License

We use the MIT license. This means that you are free to modify and/or distribute JERscript. You can also use it in other software, which can be open or closed source. The only requirement is that you include the copyright and license notice in your product. The JERscript developers are not liable for JERscript, and offer no warranty. This is not legal advice, see the full details in the LICENSE file (it's very short).

Roadmap

  • Object Oriented Programming
  • Arrays
  • If/elseif/else statements
  • For/while
  • Functions
  • Proper JS generation

Chat

You can ask for help, chat or generally hang out in our Discord server!

Usage/Examples

// Fibonacci Sequence

fib-(n)->{
    // Initalize the functions

    // A returns one, as the final statement in a lambda function is always a return
    a-()->1
    // If statement to check if N is equal to 2, go to A otherwise go to C
    b-()-> {
        if (eq(n 2) a c)
    }
    c-()->{
        evaluate(fib(evaluate(n 1 "-")) fib(evaluate(n 2 "-")) "+")
    }

    // Initalize the main statement
    if (eq(n 1) a b)
}
fib(10)

FAQ

What does JER stand for?

It stands for: Julian, Eclipse, Rehan (or RStar, depending on what they think)

Why Javascript?

We chose Javascript because of the 3 main reasons:

  • We aren't good with C, C++, Java, or any compiled language for that matter (except for eclipse with C#).
  • We are all good with Javascript and Node.js, we know the language pretty well or had a master's degree on it.
  • Even if we did choose a compiled language (ex. C++), we'd still suck at it because we can't compile to multiple platforms. (We can, it's just that we don't know how.)

Why Python/Lua?

At first, Eclipse loved the idea of Lua's simplicity and C++. Julian didn't really like how we were making a scripting language based of off Lua. We argued for a bit and eventually landed with Lua's simplicity and Python's syntax.

1.2.5

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago