author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Thu, 03 Jul 2008 22:00:07 +0000 | |
changeset 2 | cfd2c393abfe |
parent 1 | b6c0180314d1 |
child 5 | c110eef5b9ef |
permissions | -rw-r--r-- |
1 | 1 |
"{ Package: 'cvut:fel/cface' }" |
2 |
||
3 |
"{ NameSpace: Cface }" |
|
4 |
||
5 |
CBuiltinNode subclass:#CFloatNode |
|
6 |
instanceVariableNames:'' |
|
7 |
classVariableNames:'' |
|
8 |
poolDictionaries:'' |
|
9 |
category:'Cface-C AST' |
|
10 |
! |
|
11 |
||
12 |
||
13 |
!CFloatNode methodsFor:'accessing'! |
|
14 |
||
2
cfd2c393abfe
Smalltalk/X generator improvements:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
15 |
ffiTypeSymbol |
cfd2c393abfe
Smalltalk/X generator improvements:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
16 |
"Superclass Cface::CTypeNode says that I am responsible to implement this method" |
cfd2c393abfe
Smalltalk/X generator improvements:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
17 |
|
cfd2c393abfe
Smalltalk/X generator improvements:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
18 |
^ #float |
cfd2c393abfe
Smalltalk/X generator improvements:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
19 |
|
cfd2c393abfe
Smalltalk/X generator improvements:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
20 |
"Created: / 03-07-2008 / 22:54:39 / Jan Vrany <vranyj1@fel.cvut.cz>" |
cfd2c393abfe
Smalltalk/X generator improvements:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
21 |
! |
cfd2c393abfe
Smalltalk/X generator improvements:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
22 |
|
1 | 23 |
smalltalkName |
24 |
"Superclass says that I am responsible to implement this method" |
|
25 |
||
26 |
^#Float |
|
27 |
||
28 |
"Created: / 12-02-2008 / 22:06:24 / janfrog" |
|
29 |
! ! |
|
30 |
||
31 |
!CFloatNode methodsFor:'printing'! |
|
32 |
||
33 |
printOn: stream indent: indent |
|
34 |
||
35 |
stream nextPutAll:'float' |
|
36 |
||
37 |
"Created: / 04-03-2008 / 10:57:12 / janfrog" |
|
38 |
! ! |
|
39 |
||
40 |
!CFloatNode methodsFor:'testing'! |
|
41 |
||
42 |
isCFloatNode |
|
43 |
^ true |
|
44 |
||
45 |
"Created: / 17-02-2008 / 21:50:25 / janfrog" |
|
46 |
! ! |
|
47 |
||
48 |
!CFloatNode methodsFor:'visiting'! |
|
49 |
||
50 |
acceptVisitor:aVisitor |
|
51 |
"Double dispatch back to the visitor, passing my type encoded in |
|
52 |
the selector (visitor pattern)" |
|
53 |
||
54 |
"stub code automatically generated - please change if required" |
|
55 |
||
56 |
^ aVisitor visitCFloatNode:self |
|
57 |
||
58 |
"Created: / 12-02-2008 / 23:03:58 / janfrog" |
|
59 |
! ! |
|
60 |
||
61 |
!CFloatNode class methodsFor:'documentation'! |
|
62 |
||
63 |
version |
|
64 |
^ '$Header: /opt/data/cvs/cvut-fel/cface/Cface__CFloatNode.st,v 1.1 2008/02/26 15:58:57 vranyj1 Exp $' |
|
65 |
! ! |