GLP // GLANG

empower your code with GLANG

What is GLANG

GLANG is a new hyper-functional programming language

Get Started

Quick // Easy Start

Download the GLANG I/O latest release and open the command line

Advanced Start

Fork the GLP repo, customize the std-raw.js (if you want to expand the standard library), type node main.js and start running code

Easy Examples

Hello World

(print Hello World);

If Blocks

(ifelse (more 5 3) (print 5) (print 3));

While Loops

(create a (1)); (while (less (a) 10) (actions (set a (add (a) 1)) (print (a) ) )));

For Loops

(for (i) (0) (less (i) 10) (actions (set i (add (i) 1)) (print (i)) ))

Function that prints in reverse
It takes in args a b c, does 3 consecutive actions and returns nothing ()

(makeFunction reversePrint (actions (print (c)) (print (b)) (print (a))) () a b c);

(reversePrint Hello GPL World);

Philosophy

How to call functions

Type functional commands in the form of:

(function-name (arg) ... (arg))

which calls function-name passing all following if any:

(arg) ... (arg)

Documentation

Find all functions here

GLP // GLANG

empower your code with GLANG

made by Gerassimos

gerassimosm@gmail.com

Copyright © Gerassimos Moutafis 2024

GLP GLANG LOGO