Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.compilers > #1134
| From | Jens Kallup <jkallup@web.de> |
|---|---|
| Newsgroups | comp.compilers |
| Subject | Re: Language translation |
| Date | 2014-03-06 20:31 +0100 |
| Organization | 1&1 Internet AG |
| Message-ID | <14-03-012@comp.compilers> (permalink) |
| References | <14-03-009@comp.compilers> |
Hello,
for my compiler, i do some test's.
when i had a class "Aclass", then i check it's parent.
It can be "Acustom", or an other class "Aform".
So, i have 2 types:
Acustom // parent (super)
Aclass // my plain class
Acustom // parent (super)
Aform // form class (window)
Aclass // class -> Aform = parent
You can build a tree:
CLASS Aform // you can leave the parent, if you know it is Acustom
...
ENDCLASS
CLASS Aclass OF Aform
...
ENDCLASS
Then you can build code:
(All classes becomes numbers - you reserve a part
for your static parents...)
push 10 ; push 10 (Aform - if you wish it is a window)
push 0 ; parent (window) class
push CNAME ; rtti - name the class
call create_class ; call function to create the class
; e.g. init window size
The best way is, you should consult the assembler code,
which is created by follpwing command:
gcc -S test.cc
cheers
Jens
Back to comp.compilers | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Language translation Anthony Williams <awgold70@gmail.com> - 2014-03-05 06:27 -0800
Re: Language translation Hans-Peter Diettrich <DrDiettrich1@aol.com> - 2014-03-05 16:42 +0100
Re: Language translation Kaz Kylheku <kaz@kylheku.com> - 2014-03-05 16:08 +0000
Re: Language translation Jens Kallup <jkallup@web.de> - 2014-03-06 20:31 +0100
Re: Language translation Nor Jaidi Tuah <norjaidi.tuah@ubd.edu.bn> - 2014-03-10 08:37 +0800
Re: Language translation Anthony Williams <awgold70@gmail.com> - 2014-03-10 10:23 -0700
csiph-web