This repository has been archived by the owner on Dec 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfinal-pitch.clt
106 lines (106 loc) · 3.89 KB
/
final-pitch.clt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
[{<Ax000001>@<main>},1;1]->"Test 1!";
[{<Ax000002>@<main>},1;1]->"Test 2!";
[{<Ax000004>@<Ax000003>@<main>},6;1]->group AnotherLibrary {
[{<Ax000004>@<Ax000003>@<main>},8;5]->class MyClass {
[{<Ax000004>@<Ax000003>@<main>},10;9]->func:int NumOne(){
[{<Ax000004>@<Ax000003>@<main>},12;13]->return 1;
[{<Ax000004>@<Ax000003>@<main>},14;9]->}
[{<Ax000004>@<Ax000003>@<main>},16;5]->}
[{<Ax000004>@<Ax000003>@<main>},18;1]->}
[{<Ax000003>@<main>},9;1]->group::public LibFilNam {
[{<Ax000003>@<main>},11;5]->class::public section {
[{<Ax000003>@<main>},13;9]->func:string myFunction(input:int) {
[{<Ax000003>@<main>},15;13]->var:string output;
[{<Bx000007>@<Ax000003>@<main>},19;13]->0;
[{<Ax000003>@<main>},22;13]->return output;
[{<Ax000003>@<main>},24;9]->}
[{<Ax000003>@<main>},26;5]->}
[{<Ax000003>@<main>},28;1]->}
[{<main>},44;1]->setsize int 2;
[{<main>},45;1]->setsize double 10;
[{<main>},54;1]->group::public FinalPitch {
[{<main>},60;5]->class::public Program {
[{<main>},66;9]->var::public:int globA = 0;
[{<main>},67;9]->var::public:double globB = 0.0;
[{<main>},68;9]->var::public:float globC = 0.0;
[{<main>},69;9]->var::public:char globD = 'D';
[{<main>},70;9]->var::public:string globE = "Global E";
[{<main>},71;9]->var::public:bool globF = true;
[{<main>},72;9]->var::public:file globG = new file.stream("path/to/my/file.txt");
[{<main>},73;9]->var::public:hex globH = 0xFF;
[{<main>},74;9]->var::public:string[] globI = new array.string(6);
[{<main>},75;9]->var::private:hex[,] globJ = new array.hex(8, 2);
[{<main>},77;9]->func::public:int Main(envi:string[], length:int){
[{<main>},86;13]->Func();
[{<main>},88;13]->var:^int a = 0;
[{<main>},91;13]->var:int b = 1;
[{<main>},94;13]->var:^int c = Test(a, 1);
[{<main>},96;13]->a = 1, c = 5;
[{<main>},98;13]->a = c = 6;
[{<main>},102;13]->PlusOne(b:refer);
[{<main>},104;13]->var:bool myTest = false;
[{<main>},106;13]->if(myTest == true){
[{<main>},110;13]->}else if(false){
[{<main>},114;13]->}else{
[{<main>},118;13]->}
[{<main>},120;13]->if(myTest != true){
[{<main>},124;13]->}
[{<main>},126;13]->if(1 >= 5 || 1 > 5 || (1 > 1 && 1 < 1)){
[{<main>},130;13]->}
[{<main>},132;13]->if(1 <= 5 || 1 < 5){
[{<main>},136;13]->}
[{<main>},138;13]->io.console.print("Hello there!");
[{<main>},140;13]->return ZERO;
[{<main>},142;9]->}
[{<main>},144;9]->func::private:void Func(){
[{<main>},152;9]->}
[{<main>},154;9]->func::public:^int Test(a:^int, b:int){
[{<main>},156;13]->a = (^int) b;
[{<main>},159;13]->return a;
[{<main>},161;9]->}
[{<main>},163;9]->func::public:void PlusOne(a:int:refer){
[{<main>},168;13]->a++;
[{<main>},170;9]->}
[{<main>},172;9]->func::public:void myTests(){
[{<main>},174;13]->var:bool myTest = false;
[{<main>},175;13]->var:int a = 0, b = 0;
[{<main>},176;13]->var:double c = 4, d = 3;
[{<main>},178;13]->myTest!!;
[{<main>},179;13]->myTest = !myTest;
[{<main>},180;13]->a++;
[{<main>},181;13]->a += 1;
[{<main>},182;13]->a = a + 1;
[{<main>},183;13]->b--;
[{<main>},184;13]->b -= 1;
[{<main>},185;13]->b = b - 1;
[{<main>},187;13]->c %= d;
[{<main>},188;13]->c % d;
[{<main>},189;13]->c /= 0.5;
[{<main>},190;13]->c / d;
[{<main>},191;13]->c *= d;
[{<main>},192;13]->c = c * d;
[{<main>},194;9]->}
[{<main>},196;9]->func:string myStringTest(a:string){
[{<main>},198;13]->var:string b = "Hi!";
[{<main>},199;13]->delete b;
[{<main>},205;13]->var:int b = 100, c = 0;
[{<main>},207;13]->delete d, c;
[{<main>},214;9]->}
[{<main>},216;9]->func:hex[,] ReturnHexArray(){
[{<main>},218;13]->return this.globJ;
[{<main>},220;9]->}
[{<main>},222;5]->}
[{<main>},228;5]->class::public AnotherClass {
[{<main>},230;9]->var::public:int a = 0;
[{<main>},231;9]->var::private:int b = 0;
[{<main>},233;9]->func::public:AnotherClass Construct(a:int, b:int){
[{<main>},235;13]->this.a = a;
[{<main>},236;13]->this.b = b;
[{<main>},238;9]->}
[{<main>},240;5]->}
[{<main>},242;5]->class Smth {
[{<main>},244;9]->func:void myTest(a:int){
[{<main>},248;9]->}
[{<main>},250;5]->}
[{<main>},252;1]->}
[FileEnd]