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"
]
}
REQUIRED PROPERTY
This is the name of the project
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
.
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.
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
.