Related articles |
---|
State-of-the-art algorithms for lexical analysis? costello@mitre.org (Roger L Costello) (2022-06-05) |
Re: State-of-the-art algorithms for lexical analysis? gah4@u.washington.edu (gah4) (2022-06-05) |
Re: State-of-the-art algorithms for lexical analysis? DrDiettrich1@netscape.net (Hans-Peter Diettrich) (2022-06-06) |
State-of-the-art algorithms for lexical analysis? christopher.f.clark@compiler-resources.com (Christopher F Clark) (2022-06-06) |
Re: State-of-the-art algorithms for lexical analysis? DrDiettrich1@netscape.net (Hans-Peter Diettrich) (2022-06-07) |
Re: State-of-the-art algorithms for lexical analysis? christopher.f.clark@compiler-resources.com (Christopher F Clark) (2022-06-07) |
Re: State-of-the-art algorithms for lexical analysis? DrDiettrich1@netscape.net (Hans-Peter Diettrich) (2022-06-08) |
Re: counted characters in strings robin51@dodo.com.au (Robin Vowels) (2022-06-10) |
Re: counted characters in strings martin@gkc.org.uk (Martin Ward) (2022-06-11) |
Re: counted characters in strings drb@msu.edu (2022-06-11) |
From: | "Robin Vowels" <robin51@dodo.com.au> |
Newsgroups: | comp.compilers |
Date: | Fri, 10 Jun 2022 12:21:00 +1000 |
Organization: | Compilers Central |
References: | 22-06-006 22-06-007 22-06-008 22-06-013 22-06-015 22-06-019 22-06-021 22-06-025 |
Injection-Info: | gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="88392"; mail-complaints-to="abuse@iecc.com" |
Keywords: | lex |
Posted-Date: | 10 Jun 2022 11:41:04 EDT |
From: "gah4" <gah4@u.washington.edu>
Subject: Re: counted strings
> On Thursday, June 9, 2022 at 9:33:52 AM UTC-7, Hans-Peter Diettrich wrote:
>
> In any case, if you write your program on a coding form, with
> each character in a little box, it is easy to know how many are
> in each H constant.
Nevertheless, counting the number of characters was a constant source of error.
It was easy enough to include the letter 'H' in the character count, sp that
the following character became gobbled up in the Hollerith constant,
and resulting in weird error messages.
When a Hollerith constant was long enough to require a continuation card,
it was even easier to lose count; the continuation character in column 6
sometimes being included.
And when the Hollerith constant required 133 characters, how many coud reliably
count all of them?
Return to the
comp.compilers page.
Search the
comp.compilers archives again.