Skip to content

Latest commit

 

History

History
79 lines (52 loc) · 697 Bytes

README.md

File metadata and controls

79 lines (52 loc) · 697 Bytes

TLENg

Useless programming language

Example

function welcome(name) {
  print("Hello " + name);
}

var user = "World";

welcome(user);

Demo page

Demo

Syntax

Variable declaration

var a = 1;

Function declaration

function summ(a, b) {
  return a + b;
}

Data types

Float number only

var a = 130;

String

var b = "Some value";

Function. This example will print: 3

function foo(inner) {
  return inner() + 1;
}

function innerFunc() {
  return 2;
}

var a = foo(innerFunc);

print(a);

Unknown

var b;

Build in methods

Log values

print("Some text");