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) |
Re: Editing/storing syntax trees jhallen@world.std.com (1995-06-27) |
Re: Editing/storing syntax trees boggs@osage.csc.ti.com (1995-06-27) |
[2 later articles] |
Newsgroups: | comp.compilers |
From: | daniels@cse.ogi.edu (Scott David Daniels) |
Keywords: | design, syntax |
Organization: | Oregon Graduate Institute (formerly OGC), Beaverton, OR |
References: | 95-04-013 95-05-131 |
Date: | Fri, 23 Jun 1995 04:03:23 GMT |
Status: | RO |
To the general topic of this thread:
>> ... Wouldn't it be so much easier to store your source as a syntax-tree ?
Preston Briggs replies:
> I disagree. ASCII source is actually a fine representation, small and
> convenient. Syntax trees, on disk, are bulky and inconvenient.
Although I have for some time been a strong believer in storing syntax
trees, I am reluctantly coming to the conclusion that ASCII is a better
representation. In any case, I'd like to mention a not-entirely-obvious
possible flaw to stored syntax. I was working with a theorem proving
system that allows the user to define structures and their syntax. In
the course of working on a proof, I was having the devil of a time on
a lemma that should have been obvious. The problem eventually turned
out to be that two expressions which printed identically were in fact
distinct structures. It is _vital_ that distinct structures display
in obviously different ways, and just as important that structures that
match produce identical displays. Once this requirement is accepted,
it becomes much less of a reach to say that source is ASCII rather
than syntax trees.
-Scott David Daniels
daniels@cse.ogi.edu
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.