Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.compilers > #3423
| From | Kaz Kylheku <864-117-4973@kylheku.com> |
|---|---|
| Newsgroups | comp.compilers |
| Subject | Re: Lisp syntax, was A simpler way to tokenize and parse? |
| Date | 2023-03-26 00:46 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <23-03-021@comp.compilers> (permalink) |
| References | <23-03-011@comp.compilers> <23-03-018@comp.compilers> |
On 2023-03-25, Anton Ertl <anton@mips.complang.tuwien.ac.at> wrote: >>[[...] The original plan was that Lisp 2 >>would have M expressions that looked more like a normal language but >>it's over 50 years later and they still haven't gotten around to it. >>-John] > > Actually they have. Some HOPL paper (or several of them) discuss > this: There were several attempts at an Algol-like syntax, but Lisp > proprammers found that they preferred programming in S-Expressions > over the Algol-like syntax, whether it's M-Expressions, Dylan syntax, > or several other attempts. The situation is more nuanced. Common Lisp has programmable read tables which let you have any surface syntax, and this is used. It's just not the predominant mode of writing the bulk of the code. For instance, the cl-interpol library provides string syntax with interpolation. There exists an open source module for Common Lisp called named-readtables which provides disciplined registration for managing multiple read-tables. If a developer wants to mix multiple read-table-based syntaxes in the same source, they can clash. Racket is a popular language based on Scheme, which also has programmable syntax. A Racket source file can begin with a #lang directive which indicates which language module is being used; that syntax then applies to the rest of the file. I have the impression that this is farily widely used in the Racket world. -- TXR Programming Language: http://nongnu.org/txr Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal Mastodon: @Kazinator@mstdn.ca
Back to comp.compilers | Previous | Next — Previous in thread | Next in thread | Find similar
A simpler way to tokenize and parse? Roger L Costello <costello@mitre.org> - 2023-03-24 14:45 +0000
Re: Lisp syntax, was A simpler way to tokenize and parse? Spiros Bousbouras <spibou@gmail.com> - 2023-03-25 11:55 +0000
Re: Lisp syntax, was A simpler way to tokenize and parse? gah4 <gah4@u.washington.edu> - 2023-03-25 14:32 -0700
Re: Lisp syntax, was A simpler way to tokenize and parse? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2023-03-25 13:14 +0000
Re: Lisp syntax, was A simpler way to tokenize and parse? Kaz Kylheku <864-117-4973@kylheku.com> - 2023-03-26 00:46 +0000
Re: A simpler way to tokenize and parse? Lieven Marchand <mal@wyrd.be> - 2023-03-25 19:58 +0100
Re: A simpler way to tokenize and parse? Spiros Bousbouras <spibou@gmail.com> - 2023-03-26 14:10 +0000
Re: A simpler way to tokenize and parse? Kaz Kylheku <864-117-4973@kylheku.com> - 2023-03-26 18:19 +0000
Re: Lisp syntax, A simpler way to tokenize and parse? Lieven Marchand <mal@wyrd.be> - 2023-03-27 23:15 +0200
Re: A simpler way to tokenize and parse? Kaz Kylheku <864-117-4973@kylheku.com> - 2023-03-26 01:17 +0000
csiph-web