Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.compilers > #1133

Re: Language translation

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.iecc.com!.POSTED!nerds-end
From Kaz Kylheku <kaz@kylheku.com>
Newsgroups comp.compilers
Subject Re: Language translation
Date Wed, 5 Mar 2014 16:08:11 +0000 (UTC)
Organization Aioe.org NNTP Server
Lines 19
Sender news@iecc.com
Approved comp.compilers@iecc.com
Message-ID <14-03-011@comp.compilers> (permalink)
References <14-03-009@comp.compilers>
NNTP-Posting-Host news.iecc.com
X-Trace miucha.iecc.com 1394103841 82109 64.57.183.58 (6 Mar 2014 11:04:01 GMT)
X-Complaints-To abuse@iecc.com
NNTP-Posting-Date Thu, 6 Mar 2014 11:04:01 +0000 (UTC)
Keywords translator, comment
Posted-Date 06 Mar 2014 06:04:01 EST
X-submission-address compilers@iecc.com
X-moderator-address compilers-request@iecc.com
X-FAQ-and-archives http://compilers.iecc.com
Xref csiph.com comp.compilers:1133

Show key headers only | View raw


On 2014-03-05, Anthony Williams <awgold70@gmail.com> wrote:
> Dear Group,
>
> I'm facing the problem to translate language A into language B. The
> problem is, that A is an object oriented language (it supports
> classes, attributes of classes ...).  But B is much simpler. It hasn't
> support for classes. There is only variables, functions.  And my
> Question: How Could I Implement Classes in B. ...

It may not be possible if language B doesn't have things like pointers,
aggregate types such as vectors, or function indirection.

This question is too vague in its current form, lacking a detailed
specification of A and B.

[Of course it's possible unless the language is weaker than Tiny
Basic.  But it might be really ugly, e.g., parallel arrays to simulate
structures and glue functions that dispatch on an index parameter to
sort of fake function pointers.  Like I said, it's tedious. -John]

Back to comp.compilers | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


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