Related articles |
---|
Best language for implementing compilers? costello@mitre.org (Costello, Roger L.) (2019-02-08) |
Re: Best language for implementing compilers? nalaginrut@gmail.com (Nala Ginrut) (2019-02-09) |
Re: Best language for implementing compilers? gneuner2@comcast.net (George Neuner) (2019-02-08) |
Re: Best language for implementing compilers? robin51@dodo.com.au (Robin Vowels) (2019-02-09) |
Re: Best language for implementing compilers? bc@freeuk.com (Bart) (2019-02-11) |
Best language for implementing compilers? davidlovemore@gmail.com (David Lovemore) (2019-02-12) |
Re: Best language for implementing compilers? drb@ihatespam.msu.edu (2019-02-12) |
Re: Best language for implementing compilers? 157-073-9834@kylheku.com (Kaz Kylheku) (2019-02-12) |
Re: Best language for implementing compilers? costello@mitre.org (Costello, Roger L.) (2019-02-12) |
Re: Best language for implementing compilers? 157-073-9834@kylheku.com (Kaz Kylheku) (2019-02-12) |
Re: Best language for implementing compilers? drb@ihatespam.msu.edu (2019-02-19) |
[19 later articles] |
From: | Bart <bc@freeuk.com> |
Newsgroups: | comp.compilers |
Date: | Mon, 11 Feb 2019 12:59:08 +0000 |
Organization: | virginmedia.com |
References: | 19-02-002 19-02-004 |
Injection-Info: | gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="99615"; mail-complaints-to="abuse@iecc.com" |
Keywords: | code, ML, comment |
Posted-Date: | 12 Feb 2019 09:43:43 EST |
Content-Language: | en-GB |
On 08/02/2019 23:36, George Neuner wrote:
> On Fri, 8 Feb 2019 12:20:18 +0000, "Costello, Roger L."
> <costello@mitre.org> wrote:
>
>> What is it about ML that makes it such a good language for implementing
>> compilers?
>
> Compiling involves a lot of pattern matching, and pattern matching is
> a native feature of ML.
You mean for tokenising and parsing? That would be a small part of
compilation (the easy bit, in my view), although it seems to be a
preoccupation of this group.
But don't people (not me) tend to use external tools for that?
I would say that no special language features at all are required for
writing a compiler, even if parsing is directly coded in the language.
In fact it is one of the least demanding kinds of programs as usually it
will take one or more files as input, and write one or more files as output.
It doesn't even need flexible strings, as suggested in another post, as
most strings once encountered will be a fixed size. (Although
first-class string handling is useful if generating another source code
as output.)
--
bart
[If a language doesn't have some sort of data structures, pointers, and
dynamic memory allocation, writing a compiler in it will be painful. -John]
Return to the
comp.compilers page.
Search the
comp.compilers archives again.