Related articles |
---|
Re: Q: Definition of a scripting lang. lwall@netlabs.com (1995-03-27) |
Editing/storing syntax trees preston@tera.com (1995-05-28) |
Re: Editing/storing syntax trees stefan.monnier@epfl.ch (Stefan Monnier) (1995-06-05) |
Re: Editing/storing syntax trees hbaker@netcom.com (1995-06-23) |
Re: Editing/storing syntax trees daniels@cse.ogi.edu (1995-06-23) |
Re: Editing/storing syntax trees bevan@cs.man.ac.uk (1995-06-23) |
Re: Editing/storing syntax trees frode@news2.deltanet.com (Frode Odegard) (1995-06-24) |
Re: Editing/storing syntax trees hagerman@ece.cmu.edu (1995-06-24) |
Re: Editing/storing syntax trees preston@tera.com (1995-06-24) |
[4 later articles] |
Newsgroups: | comp.compilers |
From: | Stefan Monnier <stefan.monnier@epfl.ch> |
Keywords: | parse |
Organization: | Ecole Polytechnique Federale de Lausanne |
References: | 95-04-013 95-05-131 |
Date: | Mon, 5 Jun 1995 02:31:29 GMT |
Status: | RO |
Preston Briggs <preston@tera.com> wrote:
] I disagree. ASCII source is actually a fine representation, small and
] convenient. Syntax trees, on disk, are bulky and inconvenient.
But "on disk" might be in the same address space if you have a SASOS coupled
with a persistent object store, in which case you don't care that much about
"bulkyness".
] Separate your concerns. Use a single, good editor for all your
] programming languages, and individual compilers for each language.
] Otherwise, you get stuck using/writing a new editor for each new
] language. You might be able to make them all feel the same, but it's
] still a major multiplication of your programming effort.
]
] If you want general access to a syntax tree, say for use by several
] different tools, write a single scanner-parser combination that builds
] a tree form from the source form; but please don't multiply your editors.
I agree that using a syntax tree is not currently a practical
alternative. But I think it would be the right thing *if* you had a
good structure editor which would be used for editing any object
(node of the syntax tree, for instance).
The description of the syntax that should be used to display an
object could be embedded in its class, for instance (so the same
editor canbe used to edit any language).
In systems such as unix, most tools are designed to work with text,
so it's a pain to deal with anything else than text. But if every
tool would be designed to deal with objects, ...
Stefan
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.