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- # ** Version 3.0.0 Currently in Development**
2-
31![ Main Image] ( https://raw.githubusercontent.com/JBrosDevelopment/EZCode/master/docs/Images/EZCode_Wide_Logo.png )
2+
3+ ---
4+
5+ ## \*\* * Version 3.0.0 Currently in Development* \*\*
6+ * What EZCode v3 is going to look like,*
7+ ``` ezcode
8+ include main
9+
10+ make ^int {NAME} {VALUE} => var {NAME} new : {VALUE}
11+ // turns: var name 0
12+ // into: var name new : 0
13+ // which is the valid way to create class instance
14+
15+ // color class that stores R, G, B values
16+ // looks for c[R;G;B] and turns that into a new color instance
17+ class color {
18+ explicit watch c\[{R};{G};{B}\] => set : R, G, B
19+ int R 0
20+ int G 0
21+ int B 0
22+ method set : @int:r, @int:g, @int:b {
23+ R = r
24+ G = g
25+ B = b
26+ }
27+ }
28+
29+ // prints color with the new instance of color class c[50;60;90]
30+ printColor : c[50;60;90]
31+
32+ method printColor : @color:c {
33+ print The color: 'c:R' 'c:G' 'c:B'
34+ }
35+ // Outputs:
36+ // The color: 50 60 90
37+ ```
38+
439---
540
641<details open >
You can’t perform that action at this time.
0 commit comments