Fractal++

Key Features

Code Examples

Basic Structure


# Import module
<^> ::= import io

# Define constant
<#> ::= "Fractal++ is the best language!"

# Define print function
<$> ::= (msg) => {
    io.console(msg)
}

# Main program
<&> ::= {
    let message = <#>
    <$>(message)
}

# Call main
<%> ::= () => <&>

<^>
<%>()
                

This code demonstrates the basic structure of a Fractal++ program, including module imports, constant definitions, function definitions, and the main program structure.

Function Reference

Back to Home