[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to add source position information to readers
From: |
Arun Isaac |
Subject: |
Re: How to add source position information to readers |
Date: |
Wed, 13 Apr 2022 01:14:24 +0530 |
Hi Ludo,
> If a reader returns sexps, then the only way to add location info is via
> source properties. I think it’s OK to use that throughout the code.
> The outline and RSS readers don’t do that but they should.
Ah, I didn't realize I could attach source properties to S-expressions!
I'll work on adding source position information via source properties
after the basic gemtext reader is in master.
> In Guile 3.0.8, ‘read-syntax’ returns location info directly in syntax
> objects, but I’m not sure Skribilo readers should return syntax objects,
> that sounds inconvenient.
I agree.
Regards,
Arun