Post #1060623
2026-04-10 23:41 UTC
I have been thinking, after attempting to work PCRE2 into hiha. It is too complicated. So OUT it goes.
(I did use it in an Ada program some months ago, but that was different.)
Instead I am going to use the Pratt parser itself! There will be no such thing as a scanner error. Only parser errors. But parsing will take place in phases...
Replies (1)
-
@chemoelectric@masto.ai 2026-04-10 23:46
Oh, yes, we are getting like Scheme or CL here. Parsing takes place in phases. The first phase will be ... you guessed it ... EXPANSION. But we really start simple. This actually encompasses the READER phase of Scheme as well. And Scheme is not at all good about letting you work with the reader. Here it will be no problem. Because the initial tokens from the scanner will be just two: EOF and CODE-POINT You add rules to the Pratt parser to transform these to new tokens...