|
| 1 | +# EZProj |
| 2 | + |
| 3 | +<details open> |
| 4 | +<summary>Directory</summary> |
| 5 | + |
| 6 | +- [Syntax](#syntax) |
| 7 | +- [Properties](#properties) |
| 8 | +- [Variables](#vars) |
| 9 | +- [Comments](#comments) |
| 10 | +- [Code Seperation](#code-seperation) |
| 11 | +- [Examples](#examples) |
| 12 | +</details> |
| 13 | + |
| 14 | +## Syntax |
| 15 | + |
| 16 | +The Syntax is simple, |
| 17 | +``` |
| 18 | +name:"Hello World Test" |
| 19 | +icon:"~/icon.ico" |
| 20 | +startup:"~/Main.ezcode" |
| 21 | +``` |
| 22 | +It's the [property](#propery), a colon `:`, and then the value in quotations `""`. |
| 23 | + |
| 24 | +## Properties |
| 25 | + |
| 26 | +<details open> |
| 27 | +<summary>Properties</summary> |
| 28 | + |
| 29 | +- [Clearconsole](#clear-console) |
| 30 | +- [Closeonend](#close-on-end) |
| 31 | +- [Debug](#debug) |
| 32 | +- [Exclude](#exclude) |
| 33 | +- [Fileinerror](#file-in-error) |
| 34 | +- [Icon](#icon) |
| 35 | +- [Include](#include) |
| 36 | +- [Isvisual](#is-visual) |
| 37 | +- [Name](#name) |
| 38 | +- [Showbuild](#show-build) |
| 39 | +- [Startup](#start-up) |
| 40 | +- [Window](#window) |
| 41 | +</details> |
| 42 | + |
| 43 | +### Clear Console |
| 44 | + |
| 45 | +The `clearconsole` property will clear the console before playing the program. |
| 46 | + |
| 47 | +Default = "True" |
| 48 | + |
| 49 | +### Close On End |
| 50 | + |
| 51 | +the `closeonend` property will Stop the program when the program ends. |
| 52 | + |
| 53 | +Default = "True" |
| 54 | + |
| 55 | +### Debug |
| 56 | + |
| 57 | +The `debug` property will Open a Debug window if the project property [Window](#window) is true. This Debug window contains a console and a quit button. |
| 58 | + |
| 59 | +Default = "False" |
| 60 | + |
| 61 | +### Exclude |
| 62 | + |
| 63 | +The `exclude` property excludes files in the program. It takes a full or local file path (`~/` or `~\`) that has the EZCode extension `.ezcode`. It can also take `"all"` or `"folder"`. |
| 64 | +- `"all"`: will get all of the files in the current directory. It will get all `.ezcode` files including sub directories. |
| 65 | +- `"folder"`: will get all of the files in the current folder. It will not get any sub directories. |
| 66 | + |
| 67 | +This is especially used when [Include](#include) proprety has `"all"` but a file or two needs to be excluded. |
| 68 | + |
| 69 | +### File In Error |
| 70 | + |
| 71 | +The `fileinerror` will show the file path the error occured in when an error occurers. |
| 72 | + |
| 73 | +Default = "True" |
| 74 | + |
| 75 | +### Icon |
| 76 | + |
| 77 | +The `icon` property is the Icon of the program. It takes a file path with a `.ico` extension. The path can be local using `~/` or `~\`. |
| 78 | + |
| 79 | +Default = "C:\\Users\\<USER_NAME>\\AppData\\Roaming\\EZCode\\EZCode\\EZCode_Logo.ico" |
| 80 | + |
| 81 | +### Include |
| 82 | + |
| 83 | +The `include` property includes files into the program. It takes a full or local file path (`~/` or `~\`) that has the EZCode extension `.ezcode`. It can also take `"all"` or `"folder"`. |
| 84 | +- `"all"`: will get all of the files in the current directory. It will get all `.ezcode` files including sub directories. |
| 85 | +- `"folder"`: will get all of the files in the current folder. It will not get any sub directories. |
| 86 | + |
| 87 | +### Is Visual |
| 88 | + |
| 89 | +The `isvisual` proprety will tell the program that the code uses the [visual-output](Programs#visual-output). |
| 90 | + |
| 91 | +Default = "False" |
| 92 | + |
| 93 | +### Name |
| 94 | + |
| 95 | +The `name` property sets the name of the program. |
| 96 | + |
| 97 | +Default = "EZCode_v{EzCode.Version}" |
| 98 | + |
| 99 | +### Show Build |
| 100 | + |
| 101 | +The `showbuild` property will show `Build Started` and `Build Ended` whenever the program starts and ends. |
| 102 | + |
| 103 | +Default = "False" |
| 104 | + |
| 105 | +### Start Up |
| 106 | + |
| 107 | +The `startup` property sets the start up file for the program. Takes a full or local path (`~/` or `~\`). If there is only one file in the program, then using both `include` and `startup` is not needed, just choose one of them. See the example in [Syntax](#syntax). |
| 108 | + |
| 109 | +The Default is the first file that was included. If includes `"all"`, the first on alphabetically. |
| 110 | + |
| 111 | +### Window |
| 112 | + |
| 113 | +The `window` property tells the program that this program uses one or more windows. |
| 114 | + |
| 115 | +## Variable |
| 116 | + |
| 117 | +This is a more complex use of EZProj syntax. To declare a variable, just put its name in quotation marks and the value on the other side of the colon also in quotation marks, |
| 118 | +``` |
| 119 | +"varName":"value" |
| 120 | +``` |
| 121 | +Then to use the variable, |
| 122 | +``` |
| 123 | +isvisual:"varName" |
| 124 | +``` |
| 125 | + |
| 126 | +Another feature of variables is to read a file and get its value from that. It will read the file if the value side does not contain any quotations. Here is an example, |
| 127 | +``` |
| 128 | +"varName":~/file.txt |
| 129 | +``` |
| 130 | + |
| 131 | +## Comments |
| 132 | + |
| 133 | +Comments are apart of the code that doesn't run. It is started with // and the rest of that line is excluded from being executed. Here is an example, `name:"Hello World Test" // This sets the project name to 'Hello World Test' and doesn't cause any errors becaues of the presence of '//'`. |
| 134 | + |
| 135 | +## Code Seperation |
| 136 | + |
| 137 | +Each line of code is seperated by a newline, or the pipe character `|`. Here is an example, |
| 138 | + |
| 139 | +``` |
| 140 | +isvisual:"true" | clearconsole:"false" |
| 141 | +``` |
| 142 | + |
| 143 | +## Examples |
| 144 | + |
| 145 | +Here is an example of a program that contains [windows](ezcode-docs#window). |
| 146 | +``` |
| 147 | +name:"Hello World Test" |
| 148 | +window:"true" |
| 149 | +icon:"~/icon.ico" |
| 150 | +startup:"~/Main.ezcode" |
| 151 | +include:"all" |
| 152 | +``` |
| 153 | + |
| 154 | +Here is an example of a program that uses the [visual-output](Programs#visual-output). |
| 155 | +``` |
| 156 | +name:"Visual Test" |
| 157 | +isvisual:"true" |
| 158 | +startup:"~\Main.ezcode" |
| 159 | +``` |
| 160 | + |
| 161 | +Here is an example of a program that just uses the [console](Programs#console). |
| 162 | +``` |
| 163 | +name:"Console Test" |
| 164 | +startup:"~\Main.ezcode" |
| 165 | +``` |
0 commit comments