Libertas

From Esolang
Jump to navigation Jump to search

Libertas is the first syntax-error runtime-error free programming language ever. The interpreter will execute the instructions no matter what.

Examples

A hello world application:

toScreen "Hello World" 
if Date:Day:Set = "Monday" toScreen "Have a great monday"

It will print the simple message "Hello World" on the screen

toScren "Hello World"
if Date:Day:Set = "Monday" toScreen "Have a great monday"

The "toScren" command does not exist. An object named "toScren" is created and the value is stored there. No message will appear on the screen, unless Today is Monday

toScren "Hello World
if Date:Day:Set = "Monday" toScreen "Have a great monday" 

It will store every word from "Hello" to "=" as a string inside of the object toScren. Monday becomes a member variable inside of toScren, "toScreen" is absorbed as a string, and Have, a, great and monday become new members of toScren. Also an empty string is created as parameter of toScren

toScren if Date:Day:Set = "Monday" toScreen "Have a great monday" 

It will write "true" or "false" depending on today being monday, and if it is monday it will print "Have a great monday"