Groups | Search | Server Info | Keyboard shortcuts | Login | Register
Groups > comp.compilers > #3429
| From | Thomas Koenig <tkoenig@netcologne.de> |
|---|---|
| Newsgroups | comp.compilers |
| Subject | Re: A simpler way to tokenize and parse? |
| Date | 2023-03-27 05:08 +0000 |
| Organization | news.netcologne.de |
| Message-ID | <23-03-027@comp.compilers> (permalink) |
| References | <23-03-025@comp.compilers> |
Christopher F Clark <christopher.f.clark@compiler-resources.com> schrieb: > If I recall correctly, at one time, PCCTS and it’s related tool > Sorcerer used an S-expression-like representation for ASTs, including an > equivelnt to CAR and CDR, whose names I don’t recall but they were > something like “down” and “right”. S-expressions are a fairly natural representation of using trees, at least for expressions. An example: If you use gfortran's -fdump-fortran-original option, you will get its internal expression after parsing on standard output. For example, the code of real function foo(x,y) foo = 2.3 + 5.0*x*y end function foo is represented as ASSIGN foo:foo (+ 2.29999995 (* (* 5.00000000 foo:x) foo:y)) where the internal representation is a tree.
Back to comp.compilers | Previous | Next — Previous in thread | Find similar
Re: A simpler way to tokenize and parse? Christopher F Clark <christopher.f.clark@compiler-resources.com> - 2023-03-26 17:11 +0300 Re: A simpler way to tokenize and parse? Thomas Koenig <tkoenig@netcologne.de> - 2023-03-27 05:08 +0000
csiph-web