File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ![ Main Image] ( https://raw.githubusercontent.com/JBrosDevelopment/EZCode/master/docs/Images/EZCode_Wide_Logo.png )
2+
3+ ---
4+
15## \*\* * Version 3.0.0 Currently in Development* \*\*
26* What EZCode v3 is going to look like,*
3- ```
7+ ``` ezcode
8+ include main
9+
410make ^int {NAME} {VALUE} => var {NAME} new : {VALUE}
511// turns: var name 0
612// into: var name new : 0
713// which is the valid way to create class instance
814
915// color class that stores R, G, B values
10- // looks for c[R G B] and turns that into a new color instance
16+ // looks for c[R;G; B] and turns that into a new color instance
1117class color {
12- explicit watch c\[{R} {G} {B}\] => set : R, G, B
18+ explicit watch c\[{R}; {G}; {B}\] => set : R, G, B
1319 int R 0
1420 int G 0
1521 int B 0
@@ -20,18 +26,16 @@ class color {
2026 }
2127}
2228
23- // prints color with the new instance of color class c[50 60 90]
24- printColor : c[50 60 90]
29+ // prints color with the new instance of color class c[50;60; 90]
30+ printColor : c[50;60; 90]
2531
2632method printColor : @color:c {
27- print The color: 'c:r ' 'c:g ' 'c:b '
33+ print The color: 'c:R ' 'c:G ' 'c:B '
2834}
2935// Outputs:
30- // The color: 50 60 90
36+ // The color: 50 60 90
3137```
3238
33-
34- ![ Main Image] ( https://raw.githubusercontent.com/JBrosDevelopment/EZCode/master/docs/Images/EZCode_Wide_Logo.png )
3539---
3640
3741<details open >
You can’t perform that action at this time.
0 commit comments