author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Mon, 06 Jul 2015 07:18:24 +0100 | |
changeset 36 | 4e586238a9f7 |
parent 32 | d7464405cbda |
child 37 | 1ad7fb72801a |
permissions | -rw-r--r-- |
32
d7464405cbda
Package renamed from cvut:fel/cface to jv:cface
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
19
diff
changeset
|
1 |
"{ Package: 'jv:cface' }" |
1 | 2 |
|
3 |
"{ NameSpace: Cface }" |
|
4 |
||
5 |
CTypeNode subclass:#CBuiltinNode |
|
6 |
instanceVariableNames:'' |
|
7 |
classVariableNames:'' |
|
8 |
poolDictionaries:'' |
|
9 |
category:'Cface-C AST' |
|
10 |
! |
|
11 |
||
12 |
||
13 |
!CBuiltinNode methodsFor:'accessing'! |
|
14 |
||
16 | 15 |
cByteSize |
16 |
"superclass Cface::CTypeNode says that I am responsible to implement this method" |
|
17 |
||
18 |
^ self shouldImplement |
|
19 |
! |
|
20 |
||
18 | 21 |
ffiPointerTypeSymbol |
22 |
||
23 |
^ (self ffiTypeSymbol , 'Pointer') asSymbol |
|
24 |
||
25 |
"Created: / 18-07-2011 / 16:40:04 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
26 |
! |
|
27 |
||
16 | 28 |
ffiTypeSymbol |
29 |
"superclass Cface::CTypeNode says that I am responsible to implement this method" |
|
30 |
||
31 |
^ self shouldImplement |
|
32 |
! |
|
33 |
||
1 | 34 |
smalltalkName |
35 |
||
36 |
^self subclassResponsibility |
|
37 |
||
38 |
"Created: / 12-02-2008 / 22:06:11 / janfrog" |
|
39 |
! |
|
40 |
||
41 |
smalltalkName: aSymbol |
|
42 |
||
43 |
^self shouldNotImplement |
|
44 |
||
45 |
"Created: / 12-02-2008 / 22:05:16 / janfrog" |
|
46 |
! ! |
|
47 |
||
18 | 48 |
!CBuiltinNode methodsFor:'printing'! |
49 |
||
50 |
printOn: stream indent: level |
|
51 |
||
52 |
stream next: level put: Character tab. |
|
53 |
stream nextPutAll: self ffiTypeSymbol. |
|
54 |
||
55 |
"Created: / 18-07-2011 / 16:51:21 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
56 |
! ! |
|
57 |
||
16 | 58 |
!CBuiltinNode methodsFor:'visiting'! |
59 |
||
60 |
acceptVisitor:aVisitor |
|
61 |
"Double dispatch back to the visitor, passing my type encoded in |
|
62 |
the selector (visitor pattern)" |
|
63 |
||
64 |
"stub code automatically generated - please change if required" |
|
65 |
||
66 |
^ aVisitor visitCBuiltinNode:self |
|
67 |
! ! |
|
68 |
||
1 | 69 |
!CBuiltinNode class methodsFor:'documentation'! |
70 |
||
71 |
version |
|
19
1297bf936bfb
Some fixes for modern GCC XML
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18
diff
changeset
|
72 |
^ '$Id$' |
14 | 73 |
! |
74 |
||
75 |
version_SVN |
|
76 |
^ '$Id$' |
|
1 | 77 |
! ! |