|
1 " |
|
2 Copyright (C) 2015-now Jan Vrany |
|
3 |
|
4 This code is not an open-source (yet). You may use this code |
|
5 for your own experiments and projects, given that: |
|
6 |
|
7 * all modification to the code will be sent to the |
|
8 original author for inclusion in future releases |
|
9 * this is not used in any commercial software |
|
10 |
|
11 This license is provisional and may (will) change in |
|
12 a future. |
|
13 " |
|
14 "{ Package: 'jv:tea/compiler' }" |
|
15 |
|
16 "{ NameSpace: Smalltalk }" |
|
17 |
|
18 TObjectWithProperties subclass:#TCompilerOptions |
|
19 instanceVariableNames:'' |
|
20 classVariableNames:'' |
|
21 poolDictionaries:'' |
|
22 category:'Languages-Tea-Compiler' |
|
23 ! |
|
24 |
|
25 !TCompilerOptions class methodsFor:'documentation'! |
|
26 |
|
27 copyright |
|
28 " |
|
29 Copyright (C) 2015-now Jan Vrany |
|
30 |
|
31 This code is not an open-source (yet). You may use this code |
|
32 for your own experiments and projects, given that: |
|
33 |
|
34 * all modification to the code will be sent to the |
|
35 original author for inclusion in future releases |
|
36 * this is not used in any commercial software |
|
37 |
|
38 This license is provisional and may (will) change in |
|
39 a future. |
|
40 " |
|
41 ! ! |
|
42 |
|
43 !TCompilerOptions methodsFor:'accessing'! |
|
44 |
|
45 optionAt: option |
|
46 ^ self propertyAt: option |
|
47 |
|
48 "Created: / 24-09-2015 / 16:12:59 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
49 ! |
|
50 |
|
51 optionAt: option default: default |
|
52 ^ self propertyAt: option ifAbsent:[ default ] |
|
53 |
|
54 "Created: / 24-09-2015 / 16:13:20 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
55 ! |
|
56 |
|
57 optionAt: option put: value |
|
58 ^ self propertyAt: option put: value |
|
59 |
|
60 "Created: / 24-09-2015 / 16:13:08 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
61 ! ! |
|
62 |
|
63 !TCompilerOptions methodsFor:'options'! |
|
64 |
|
65 emitIR |
|
66 ^ self optionAt: #emitIR default: false |
|
67 |
|
68 "Created: / 24-09-2015 / 16:38:58 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
69 ! |
|
70 |
|
71 emitIR: aBoolean |
|
72 self optionAt: #emitIR put: aBoolean |
|
73 |
|
74 "Created: / 24-09-2015 / 16:39:12 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
75 ! |
|
76 |
|
77 output |
|
78 ^ self optionAt: #output default: nil |
|
79 |
|
80 "Created: / 24-09-2015 / 16:38:28 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
81 ! |
|
82 |
|
83 output: aSgtring |
|
84 self optionAt: #output put: aSgtring. |
|
85 |
|
86 "Created: / 24-09-2015 / 16:38:15 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
87 ! ! |
|
88 |
|
89 !TCompilerOptions class methodsFor:'documentation'! |
|
90 |
|
91 version |
|
92 ^ 'Path: jv/tea/compiler/TCompilerOptions.st, Version: 1.0, User: jv, Time: 2015-09-25T03:26:11.669+01' |
|
93 ! |
|
94 |
|
95 version_HG |
|
96 ^ 'Path: jv/tea/compiler/TCompilerOptions.st, Version: 1.0, User: jv, Time: 2015-09-25T03:26:11.669+01' |
|
97 ! ! |
|
98 |