forked from 00laboratories/PBHGEN
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Test.pb
122 lines (81 loc) · 2.48 KB
/
Test.pb
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
IncludeFile #PB_Compiler_File + "i" ;- PBHGEN
; This is weird
Procedure NormalEmptyProcedure()
; Hello World
ProcedureReturn 0
EndProcedure
;Procedure HehThisIsAComment()
;EndProcedure
Procedure WithOptionalArguments(heh.l, Something$="Procedure WithOptionalArguments(Something$)" + "lol")
MultiLine(0,0,0,0)
EndProcedure
ProcedureC StructureThing(*Hello.SYSTEM_INFO, *Okay.SYSTEM_ALARM_ACE)
EndProcedure
Procedure ArrayThing(Array HelloWorld.SYSTEM_INFO(1))
EndProcedure
Procedure BracketStuff(String$ = "heh" + Chr(50), Okay.l = 50)
EndProcedure
DeclareModule EmptyModuleWithoutProcedures
EndDeclareModule
Module EmptyModuleWithoutProcedures
EndModule
Procedure.i MultiLine( _nbNiveaux.u,
numNiveauDepart.u,
_nbViesDepart.a,
_IAGlobale.b = 0)
; etc...
EndProcedure
Macro FUNNY1
Procedure This#Macro#Functon1()
EndProcedure
Procedure This#Macro#Functon2()
EndProcedure;COMMENT
EndMacro
Macro FUNNY2() : Procedure God#No!() : Debug "heh" : EndProcedure : EndMacro
Runtime Procedure RuntimeProc(lol.l)
EndProcedure
ProcedureDLL DLLProcedure()
: EndProcedure ; comment
ProcedureCDLL CDLLProcedure()
EndProcedure
Procedure A() : PeekS(*lol) : EndProcedure : ;Procedure B() : PeekA(*pff) : EndProcedure
Procedure C() : PeekS(*lol) : EndProcedure : Procedure D() : PeekA(*pff) : EndProcedure
DeclareModule TestA
Global String$
Declare Func1()
EndDeclareModule
Module TestA
IncludeFile #PB_Compiler_File + "i" ;- PBHGEN
Global String$ = ""
Procedure Func1()
Debug #PB_Compiler_Module
Func2()
EndProcedure
Macro FUNNY3() : Procedure God#Yes!() : Debug "cwap" : EndProcedure : EndMacro
Procedure Func2()
TestA::String$ = "OL"
Debug TestA::String$
TestA::Func1()
EndProcedure
Runtime Procedure A() : PeekS(*lol) : EndProcedure : ;Procedure B() : PeekA(*pff) : EndProcedure
EndModule;COMMENT
DeclareModule TestB
Declare FuncHurrDurr(Cheese$ = "I love::sandwhiche~")
Structure AEffect
Value.a
EndStructure
EndDeclareModule
Module TestB
IncludeFile #PB_Compiler_File + "i" ;- PBHGEN
Runtime Procedure FuncHurrDurr(Cheese$ = "I love::sandwhiche~")
EndProcedure
EndModule
Procedure OnVstMain(*Effect.TestB::AEffect)
Debug "Cheese": :;::Debug "LOL"
EndProcedure
; IDE Options = PureBasic 5.72 (Windows - x64)
; CursorPosition = 77
; FirstLine = 66
; Folding = -----
; EnableXP
; Executable = build\PBHGEN.exe