Skip to content

FrankPujo/GloPlo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

GloPlo

Simple functional language

Function definition

Define functions with the "funct" keyword followed by the function name and the (one only one for the moment) variable.
The next lines (with an indentation of 1 tab) define all the cases for which the function is run; use the "_" symbol to substitute any case not considered.

Variable definition

Define a variable with its name preceded by its type and followed by "=" and its value.
The value can be an integer (or an operation with integers) or a function called on another variable.