Re: Languages with optional spaces

"Ev. Drikos" <drikosev@gmail.com>
Thu, 12 Mar 2020 17:45:51 +0200

          From comp.compilers

Related articles
[11 earlier articles]
Re: Languages with optional spaces DrDiettrich1@netscape.net (Hans-Peter Diettrich) (2020-03-01)
Re: Languages with optional spaces christopher.f.clark@compiler-resources.com (Christopher F Clark) (2020-03-01)
Re: Languages with optional spaces drikosev@gmail.com (Ev. Drikos) (2020-03-01)
Re: Languages with optional spaces christopher.f.clark@compiler-resources.com (Christopher F Clark) (2020-03-02)
Re: Languages with optional spaces drikosev@gmail.com (Ev. Drikos) (2020-03-02)
Re: Languages with optional spaces gah4@u.washington.edu (2020-03-02)
Re: Languages with optional spaces drikosev@gmail.com (Ev. Drikos) (2020-03-12)
Re: Languages with optional spaces gene.ressler@gmail.com (Gene) (2020-04-14)
Re: Languages with optional spaces mertesthomas@gmail.com (2020-04-19)
Re: Languages with optional spaces aston.goldsmith@gmail.com (2020-05-05)
| List of all articles for this month |
From: "Ev. Drikos" <drikosev@gmail.com>
Newsgroups: comp.compilers
Date: Thu, 12 Mar 2020 17:45:51 +0200
Organization: Aioe.org NNTP Server
References: 20-02-015 20-02-016
Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="54657"; mail-complaints-to="abuse@iecc.com"
Keywords: lex
Posted-Date: 13 Mar 2020 08:26:08 EDT
Content-Language: en-US

On 21/02/2020 08:38, Jerry wrote:
> class Lexer:
> """
> Lexer emulates quirky Applesoft tokenizer as closely as possible.
>
> Thus, it diverges from what a normal lexer would do. In
> particular, spaces are completely insignificant, except within
> strings, except if it finds "AT" followed by a space and then an
> "N" appears. That is parsed as "AT N", not "ATN". Fun?;)
> """


Hello,


Lacking any Python skills, I can't test the lexer but if this comment is
accurate, then any spaces in literals should normally be ignored.


The AppleSoft II manual in page 69 at www.classiccmp.org/cini/pdf/Apple/
implies that spaces are also important in literals after first position,
similar comment in the Basic dialect supported by the Compukit UK101 at
http://uk101.sourceforge.net/docs/index.html


Rather than critique, it's a detail I'm interested in, see next question.


Ev. Drikos



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.