bugfixes & improved language design

This commit is contained in:
Sven Heidemann
2020-05-25 20:32:46 +02:00
parent b9e938f8a1
commit b01204fdd4
6 changed files with 109 additions and 38 deletions

View File

@@ -1,3 +1,5 @@
use Test from test;
// hi1
# hi2
/*
@@ -11,6 +13,8 @@ lib Main {
var testEmpty: emptyType = empty;
var testNum: number = 3.0;
var testBool_2: bool = 3 > 1;
var testTest: Test = Test();
testTest.outp();
output('Hello World');
output(66);
output(3 + 3);
@@ -24,7 +28,7 @@ lib Main {
test1234(range(0, 10));
}
# public func test1234(param: list) {
# public func test1234(param: list): list {
public func test1234(): void
{
/*for i in range(0, length(param)) {
@@ -40,5 +44,9 @@ lib test
public class Test
{
public func outp(): void {
output('Hello_world3');
}
}
}