A couple of questions about arrays and slices

Cecil Ward cecil at cecilward.com
Sat Jun 24 16:47:25 UTC 2023


On Saturday, 24 June 2023 at 16:42:45 UTC, Cecil Ward wrote:
> On Saturday, 24 June 2023 at 15:12:14 UTC, Jonathan M Davis 
> wrote:
>> [...]
>
> Yeah, it would take me forever to get my head around that, and 
> I only want a crude toy partial parser for certain portions of 
> the grammar, and the parsing code is done now. A hand-written 
> recursive descent type thing mainly dealing with things like 
> comments and literal string that have to be taken account of as 
> they prevent hazards to naive straight string searching for 
> what you want to find, as comments and eg double-quoted strings 
> could have things in them that are red-herrings or the things 
> that you want to find items in, depending on circumstances.
>
> [...]

I read an article about just that good strings trick many many 
years back, and the author called it ‘a string universe’, which I 
really liked.


More information about the Digitalmars-d-learn mailing list