Skip to content

File structure #19

@DarekKrawczyk

Description

@DarekKrawczyk

The Eden executable should follow a structured format where:

  • Functions can be defined outside the main execution block.
  • Global variables can be declared outside as well.
  • Execution takes place within the Program block.

Example:

Function Int function() {
    Return 5i;
};

Var Float pi = 3.14f;

Program {
    Var Int popo = pi * function();
    Print(popo);
};

This ensures a clear separation between definition and execution, improving readability and structure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions