/mua

A simple scripting language sharing similar features like C++ and Rust. Statically typed

Primary LanguageJavaScript

mua

  • A very simple and flexible static scripting language which shares similar features to C++, Rust and Lua.

Version 0.01

  • I have made the Lexer, Parser and Evaluator to handle very basic calculations in the terminal.

These are very barebones and will most likeey be improved

  • Right now it may have some bugs but works just fine.

Multiplication is always carried out first! (hopefully)

image

image

Version 0.02

  • I have made some progress with the Lexer, Parser, and Evaluator. They each handle identifiers and data types.
  • I've made one data type IntType and is can be declared by typing int.

image

As you can see here, 5 + 5 does equal to 10! :)

image

  • But we can see the parser has found the random a after the semicolon; it sets it's value to aundefined which is very handy for error logging!

Version 0.03

  • I'v created a simple type registry for now, updated the Lexer and Parser to handle these types, but treat them as delcarations.

image

It also seems to handle large calculations pretty well, but it seems to treat paranthesis's as objects.

image