Skip to content
This repository was archived by the owner on Apr 6, 2024. It is now read-only.

Releases: 418e/Tron

2.8.0

Choose a tag to compare

@418e 418e released this 22 Feb 10:47

2.8.0 - Feb 22

core changes

  • added switch statement (switch, match, cases)
  • improved perfonmance
  • custom integer/float types

documentation

  • changed documentation structure
  • rewrote articles
  • added new sections

extension

  • added new keywords

2.7.0

Choose a tag to compare

@418e 418e released this 14 Feb 00:08

2.7.0 - Feb 14

core changes

  • short function syntax changed (: -> =)
  • added new types: (integer, big integer)
  • fixed type annonations

other changes

  • updated tronlang.org
  • updated documentation

v2.6.0

Choose a tag to compare

@418e 418e released this 31 Jan 20:09
  • if statement can now handle multiple expressions
  • else if statement can now handle multiple expressions
  • while statement can now handle multiple expressions
  • assignent can now handle multiple variables
  • variables with uppercase name now will be immutable
  • updates now will be released once in two weeks

2.5.0

Choose a tag to compare

@418e 418e released this 15 Jan 12:03
f18a6a7
  • added type system
  • added 5 types: number, string, bool, null, array
  • added type checking for variables and function paramters:
let i: number = 0;
// let i = 0; is still valid

fn sum(x: number , y: number) {
// fn sum(x,y) is still valid
    return x + y;
}

v2.4.1

Choose a tag to compare

@418e 418e released this 14 Jan 11:24
247b4ac

2.4.1 - Jan 14

  • fixed bugs
  • new operators: **(**3 = 9) and &(&9 = 3)
  • new keywords:
  • And : &&
  • Or: ||
  • Else if: ??
  • multiply: times
  • >: more, more than
  • <: less, less than
  • /: slash
  • removed # keyword for else if

v2.4.0

Choose a tag to compare

@418e 418e released this 13 Jan 06:52
de1ac1f
  • added short functions
fn main(x) : x + 1;
print main(6);

// 7
  • added sleep native: sleep(time):
sleep(2000);

// will create delay for 2s
  • added ternary native: ternary(statement, value1, value2)::
let i = 0;
let x = ternary(i > 1, 4, 5);
print x;

// 5
// if statement is true, return value1, if not: value2
  • added cmd native: cmd("command"):
let x = cmd("echo hi");
print x;

// "hi"
  • removed cmd functions

v2.3.1

Choose a tag to compare

@418e 418e released this 13 Jan 04:02
e1c6b31
  • performance improvements
  • binary size reduction
  • removed external libraries (except rand)

v2.3.0

Choose a tag to compare

@418e 418e released this 12 Jan 11:51
1d91135
  • new cli command tron update
  • added new wait/before statement:
wait 1000 {
  print 1;
}

will print 1 after 1000ms delay

wait 1000 {
  print 1;
} before 200 {
  print 0;
}

will print 0, with 200ms delay 1000/200 times, and then print 1;

wait keywords: wait, hold pause
before keywords: before, until, during

  • removed . and : as end/start
  • removed # comments
  • ?>> elif => #

v2.2.0

Choose a tag to compare

@418e 418e released this 11 Jan 15:18
29ac8e9
  • added variable immutability
  • removed try/catch statement, input statement and #array library
  • numbers changed from f64 to f32 type
  • added then (start bracket), as (assign operator), exe(cmd function), execute(cmd function), run(cmd function), cmd(cmd function)
  • removed incr (increment), decr(decrement), what if(elif), whatif(elif), dec(variable), state(variable), respond(return), append(return)

v2.1.1

v2.1.1 Pre-release
Pre-release

Choose a tag to compare

@418e 418e released this 11 Jan 02:17
8008954
  • fixed binary
  • len() now returns numbers
  • added pow(), root(), random(), min(), max(), log(), log2, log10, ceil to math library
  • changed output style
  • new commands , fn name <-
fn echo <- "ls";
let response = echo();
say response;