Releases: valoeghese/Jason-Basic
Releases · valoeghese/Jason-Basic
Release list
v1.4.0
- New Trig and Maths builtin functions (e.g.
SIN,ATAN,COSH,SQRT,FLOOR) - New operators:
**(exponent) and^(xor) - Macros! (@NathanSnail) define a macro with
:DEFINE NAME "expression"and expand it with:EXPAND NAME (parameters). Parameters can be done with{{1}}etc. The macros are part of the new preprocessor. - Builtin functions that take in one input (like
SQRT,ROUND,SIN, etc...) can now be used inline! Can be applied to an expression in brackets (e.g.a = SIN (5+2*a)) or to a number, variable, or string without brackets. (e.g.a = COS b)
v1.3.5
= and <= now work again
New operator /= added for not equals
v1.3.4
Fix number tokeniser not supporting floating point numbers
v1.3.3
v1.3.2
Fix issue with compiler compiling multiple for loops
v1.3.1
v1.3.0
Language
- New TONUMBER statement to convert string to number.
- builtins that write to a variable like (but not limited to)
INPUT TO,RANDOMandROUNDcan now handle array elements.
Discord Bot
- Replying to a message with
[prefix]/msgor[prefix]/msg detachnow stores the content of that message in a variable calledcontent.
Implementation
- New tokeniser. Now with 90% less jank
- Now properly asserts variables exist before running a line.
v1.2.0
Added FOR each loops, and dynamic GOTO that jumps to a label parsed by an expression
v1.1.1
1.1.1
Fix bugs in the interpreter that led to exploits and unbreakable infinite loops.
1.1.0
Add arrays