Skip to content

Latest commit

 

History

History
51 lines (33 loc) · 1.37 KB

Projects.md

File metadata and controls

51 lines (33 loc) · 1.37 KB

Projects Docs

Project.json

The project.json is the config file for the EZCode Project. It uses the custom schema from the projects repo

Here is a sample of the project.json

{
    "$schema":"https://raw.githubusercontent.com/EZCodeLanguage/Projects/main/ezcode.project.schema.json",
    "Name":"NAME",
    "Files": [
        "NAME.ezcode"
    ]
}

Name

REQUIRED PROPERTY
This is the name of the project

Files

REQUIRED PROPERTY
This is all of the EZCode files included in the project. It doesn't matter the order as long as there is the entry, method start.

Creating a Project

To create a project, use the ez CLI:

ez new project NAME

This will create a project.json and entry.ezcode. You can add more files that can hold methods or classes that can be called.

Running a Project

To run the project from the command line, use:

ez "path/to/json"

To run it from C#, use the API function EZCodeLanguage.EZCode.RunProject.