Re: eonhs (Also,)
Kevin Reid <kpreid-M/[email protected]>
| Newsgroups | gmane.comp.lang.e.general |
|---|---|
| Message-ID | <[email protected]> |
On Apr 12, 2011, at 15:09, Nathan wrote: >> Kernel-E is a kernel. It sounds like you haven't spent enough time >> studying >> E code as actually written (any of the code in esrc/ in the E-on-Java >> distribution, or any standalone E program, should do). > > I'll change my approach to spam this list with fewer such questions. > Instead I'll > track those questions on the eonhs wiki and answer them by my own > research. > If something seems surprising, or the answer is not readily on the > wiki, I'll update > the wiki. Please don't take this as “ask fewer questions”. I only meant that your research should include studying examples of E as written in practice. > Thanks! On my todo list is to hunt down a reference for all the > syntactic sugar translations between E to Kernel-E such as this. The existant such reference is <http://www.erights.org/elang/grammar/index.html >. Note that in E-on-Java, E source is always parsed into Kernel-E; there is no full-E AST except as implicitly defined by the EBuilder (or is it ENode. In E-on-CL, there are “nonkernel” AST node types. Future plans include migrating to the latter approach, because it enables code transformation applications where the result should be human- readable (prettyprinting, refactoring, etc.), and because the introduction of concretely-named temporaries interferes with e`` AST manipulations. -- Kevin Reid <http://switchb.org/kpreid/>