Skip to main content
Version: 0.1.3

Welcome to Eugen++

This covers the core language, syntax and constructs to get started with Eugen++

Getting Started

The standalone interpreter can be downloaded at:
https://github.com/eugenlukas/EugenPlusPlus/releases

Program entry point

Eugen++ has no separate entry function, it is interpreted from top to bottom without any main function.

PRINTLN("Hello World")
PRINTLN("")
PRINTLN("Running my first epp program!")

Functions

See here for full documentation on functions

As with Eugen++ functions can be written as one-liner with only one statement or with multiple lines and multiple statements

func sum(a, b) -> a + b

PRINTLN(sum(6, 5))
func names()
PRINTLN("Paul")
PRINTLN("Richard")
PRINTLN("Emma")
}

names()

Including files

See here for full documentation for # directives

Including files is done through the #module directive and an Identifier. Eugen++ functions are usually always present and do not need a #module. Relative paths for files are also possible.

Main.epp
# module "F:\\Test.epp" as Test

PRINTLN(Test::add(5, 6))
Test.epp
func add(a,b) -> a + b