cclang/doc/test.bl

52 lines
1021 B
Plaintext
Raw Normal View History

2020-05-25 20:32:46 +02:00
use Test from test;
// hi1
# hi2
/*
hi3
*/
lib Main {
class Program {
2020-05-25 16:36:44 +02:00
func Main(): void {
var testBool: bool;
var testEmpty: emptyType = empty;
var testNum: number = 3.0;
var testBool_2: bool = 3 > 1;
2020-05-25 21:05:52 +02:00
# var testTest: Test = Test();
# testTest.outp();
output('Hello World');
output(66);
output(3 + 3);
2020-05-25 16:36:44 +02:00
var test: string = input('# ');
output(test);
output(false);
2020-05-23 13:40:51 +02:00
/*if (testBool != empty) {
output(testEmpty);
2020-05-23 13:40:51 +02:00
}*/
test1234(range(0, 10));
}
2020-05-25 21:05:52 +02:00
public func test1234(param: list): list {
# public func test1234(): void
# {
2020-05-23 13:40:51 +02:00
/*for i in range(0, length(param)) {
output(i);
2020-05-23 13:40:51 +02:00
}*/
pass;
}
}
2020-05-24 17:56:15 +02:00
}
lib test
{
public class Test
{
2020-05-25 20:32:46 +02:00
public func outp(): void {
output('Hello_world3');
}
2020-05-24 17:56:15 +02:00
}
}