Re: target language grammars. (VBDis)
7 Nov 2004 12:09:29 -0500

          From comp.compilers

Related articles
target language grammars. (2004-11-06)
Re: target language grammars. (Larry Evans) (2004-11-07)
Re: target language grammars. (Dobes Vandermeer) (2004-11-07)
Re: target language grammars. (Lujop) (2004-11-07)
Re: target language grammars. (2004-11-07)
Re: target language grammars. (2004-11-07)
Re: target language grammars. (Ken Rose) (2004-11-14)
Re: target language grammars. (Ira Baxter) (2004-11-14)
target language grammars. (A.T. Hofkamp) (2004-11-14)
Re: target language grammars. (Zbigniew Chamski) (2004-11-14)
| List of all articles for this month |

From: (VBDis)
Newsgroups: comp.compilers
Date: 7 Nov 2004 12:09:29 -0500
Organization: AOL Bertelsmann Online GmbH & Co. KG
References: 04-11-013
Keywords: parse, code
Posted-Date: 07 Nov 2004 12:09:29 EST (Ralph Boland) schreibt:

>Does it make sence to make use of a grammar of the target language in
>any way?

Grammars can be seen from two viewpoints: they can be used to
recognize sentences, but they also can be used to construct sentences
of a language. A language translator (from language into language)
depends on a common intermediate structure (parse tree...), that can
be produced from language A and then can be transformed into language

This is just the point where the translation of natural languages
failed, because it usually is impossible to create such a unique
intermediate representation. This can be observed in re-translations,
e.g. from English into Russian and back again into English. In natural
languages a word-by-word translation is useless, and also a
sentence-by-sentence translation often is not appropriate. In a
translation of formal languages it may be possible to translate
without considering too much context information, depending on the
involved languages. Nonetheless it's IMO a good idea to look at the
problems in natural language translations, in order to find out how
the developed techniques can be used in a translation of formal

Perhaps it's a good idea to develop language translators in pairs,
i.e. A->B together with B->A, in order to figure out a useful common
intermediate representation for such translations.


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.