CorLang

Logo

View the Project on GitHub C1200/CorLang

← Back

Table of Contents

Types

Number

A number is either an integer or a float.

print(6)
print(3.141)

See also: Operations

String

A string is a series of characters surrounded by quotes (either single or double).

print("Hello World!")
print('Hello Reader!')

See also: Operations

List

A list is a set of comma separated values.

print([ true, "truthy", 3.141, 6 ])

See also: Operations

Function

A function is a block of CorLang code that runs when it’s called.

func my_func() -> "this is the return"
print(my_func())

See also: Functions

Built-in Function

A built-in function executes “native” Python code when called.

print()

See also: Built-ins