Skip to content

itsgerassimos/GLP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GLANG GLP

GLANG is a new hyper-functional programming language

logo

Characteristics

  • Philosophy: GLANG GLP is hyper-function focused; everything is a function call or definition.
  • Expandable: GLANG GLP is infinitely expandable and supports JS integration.

Getting Started

Detailed Getting-Started guide and documentation are available here: https://itsgerassimos.github.io/GLP/

For a quick heads-up download the GLANG I/O latest release and open the GLANG command line. Then start typing functional commands like:

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);

More examples will be added here:

https://github.com/itsgerassimos/GLP/wiki/Example-Code

318423470-ac6966f4-57eb-4b86-9ed6-b72671350a35