Skip to content

Commit 9775b11

Browse files
authored
Update README-LanguageDraft-2.0.md
1 parent 2268604 commit 9775b11

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

README-LanguageDraft-2.0.md

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
![LOGO](https://raw.githubusercontent.com/andreasdr/minitscript/master/resources/github/minitscript-logo.png)
22

3-
# 1 MinitScript 2.0: new language features draft
3+
# 1. MinitScript 2.0: new language features draft
44

5-
- inline comments with #- $x = 1 -#
5+
## 1.1. Inline comments with #- $x = 1 -#
66

77
```
88
function: bubbleSortA(&$array)
@@ -19,7 +19,7 @@
1919
end
2020
```
2121

22-
- enums
22+
## 1.2. Enums
2323

2424
```
2525
enum Colors
@@ -51,7 +51,7 @@
5151
end
5252
```
5353

54-
- structures, which are data only
54+
## 1.3. Structures, which are data only
5555

5656
```
5757
# maybe, not sure if required 100%
@@ -61,7 +61,7 @@
6161
end
6262
```
6363

64-
- structure data validations, which are type hinted interfaces alike
64+
## 1.4. Structure data validations, which are type hinted interfaces alike
6565

6666
```
6767
# maybe, but looks good already
@@ -71,7 +71,7 @@
7171
end
7272
```
7373

74-
- interfaces for class methods
74+
## 1.5. Interfaces for class methods
7575

7676
```
7777
interface CarInterface
@@ -90,7 +90,7 @@
9090
end
9191
```
9292

93-
- classes with optional interface and data validation
93+
## 1.6. Classes with optional interface and data validation
9494

9595
```
9696
class Car[ implements CarInterface [validated-by CarData]
@@ -135,7 +135,7 @@
135135
$car = Car(4, Colors.$RED) + Car(4, Colors.$BLUE)
136136
```
137137

138-
- Static member variables
138+
## 1.7. Static member variables
139139
- maybe by mapping to global variables
140140
- Class::$classProperty would map to $$.___Class_classProperty
141141

@@ -145,7 +145,7 @@
145145
end
146146
```
147147

148-
- Static member methods
148+
## 1.8. Static member methods
149149

150150
```
151151
class Class
@@ -154,3 +154,10 @@
154154
end
155155
end
156156
```
157+
158+
# 2. Links
159+
160+
- MinitScript, see [README.md](./README.md)
161+
- MinitScript - How to build, see [README-BuildingHowTo.md](./README-BuildingHowTo.md)
162+
- MinitScript - How to use, see [README-Tools.md](./README-Tools.md)
163+
- The Mindty Kollektiv [Discord Server](https://discord.gg/Na4ACaFD)

0 commit comments

Comments
 (0)