author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Wed, 12 Aug 2015 07:32:13 +0100 | |
changeset 43 | 9327987437ae |
parent 32 | d7464405cbda |
permissions | -rw-r--r-- |
32
d7464405cbda
Package renamed from cvut:fel/cface to jv:cface
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
24
diff
changeset
|
1 |
"{ Package: 'jv:cface' }" |
1 | 2 |
|
3 |
"{ NameSpace: Cface }" |
|
4 |
||
5 |
Object subclass:#Platform |
|
6 |
instanceVariableNames:'' |
|
7 |
classVariableNames:'TheInstance' |
|
8 |
poolDictionaries:'' |
|
9 |
category:'Cface-Platforms' |
|
10 |
! |
|
11 |
||
12 |
||
13 |
!Platform class methodsFor:'accessing'! |
|
14 |
||
15 |
theInstance |
|
16 |
||
17 |
TheInstance ifNil: |
|
18 |
[Smalltalk isSmalltalkX |
|
24 | 19 |
ifTrue:[TheInstance := Cface::SmalltalkX new] |
1 | 20 |
ifFalse:[self error:'Unsupported platform']]. |
21 |
^TheInstance |
|
22 |
||
23 |
"Created: / 08-02-2008 / 08:17:48 / janfrog" |
|
24 | 24 |
"Modified: / 05-09-2012 / 10:57:02 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1 | 25 |
! ! |
26 |
||
27 |
!Platform methodsFor:'accessing'! |
|
28 |
||
29 |
generator |
|
30 |
||
31 |
^self generatorClass new |
|
32 |
||
33 |
"Created: / 18-02-2008 / 15:31:25 / janfrog" |
|
34 |
! |
|
35 |
||
36 |
generatorCommand |
|
37 |
||
38 |
^GeneratorCommand new platform: self |
|
39 |
||
40 |
"Created: / 18-02-2008 / 15:34:28 / janfrog" |
|
41 |
! |
|
42 |
||
43 |
mappings |
|
44 |
^ self mappingClass new |
|
45 |
||
46 |
"Created: / 27-05-2008 / 14:23:37 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
47 |
! |
|
48 |
||
49 |
parser |
|
50 |
||
51 |
^self parserClass |
|
52 |
||
53 |
"Created: / 18-02-2008 / 15:38:41 / janfrog" |
|
54 |
! |
|
55 |
||
56 |
typeMapper |
|
57 |
||
58 |
^self typeMapperClass new |
|
59 |
||
60 |
"Created: / 18-02-2008 / 15:32:12 / janfrog" |
|
61 |
! |
|
62 |
||
63 |
typeResolver |
|
64 |
||
65 |
^self typeResolverClass new |
|
66 |
||
67 |
"Created: / 18-02-2008 / 15:32:05 / janfrog" |
|
68 |
! ! |
|
69 |
||
70 |
!Platform methodsFor:'accessing - classes'! |
|
71 |
||
72 |
generatorClass |
|
73 |
"raise an error: must be redefined in concrete subclass(es)" |
|
74 |
||
75 |
^ self subclassResponsibility |
|
76 |
||
77 |
"Created: / 18-02-2008 / 15:31:35 / janfrog" |
|
78 |
! |
|
79 |
||
80 |
mappingClass |
|
81 |
||
82 |
^TypeMapping |
|
83 |
||
84 |
"Created: / 27-05-2008 / 14:22:28 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
85 |
! |
|
86 |
||
87 |
parserClass |
|
88 |
||
89 |
||
90 |
^CDefinitionParser |
|
91 |
||
92 |
"Created: / 18-02-2008 / 15:38:12 / janfrog" |
|
93 |
! |
|
94 |
||
95 |
typeMapperClass |
|
96 |
"raise an error: must be redefined in concrete subclass(es)" |
|
97 |
||
98 |
^TypeMapper |
|
99 |
||
100 |
"Created: / 18-02-2008 / 15:31:55 / janfrog" |
|
101 |
! |
|
102 |
||
103 |
typeResolverClass |
|
104 |
"raise an error: must be redefined in concrete subclass(es)" |
|
105 |
||
106 |
^TypeResolver |
|
107 |
||
108 |
"Created: / 18-02-2008 / 15:31:46 / janfrog" |
|
109 |
! ! |
|
110 |
||
111 |
!Platform class methodsFor:'documentation'! |
|
112 |
||
113 |
version |
|
19
1297bf936bfb
Some fixes for modern GCC XML
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14
diff
changeset
|
114 |
^ '$Id$' |
14 | 115 |
! |
116 |
||
117 |
version_SVN |
|
118 |
^ '$Id$' |
|
1 | 119 |
! ! |
43
9327987437ae
Added mappings for LLVM C and LLVM C Extensions
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
32
diff
changeset
|
120 |