--
You received this message because you are subscribed to the Google Groups "nanopass-framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nanopass-framework+unsub...@googlegroups.com.
To post to this group, send email to nanopass-framework@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nanopass-framework/CAKUgKwxn1c5XZJt7-uH7s%2BeNrk8y9gBDjV8%2BziHkwErz1YcauA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
This merits a proper write up and I'll make a quick blog post describing it tonight.Then you just put my-identifier in the terminals section of your language.(struct my-identifier (name srcloc))The other way is to store all of your identifiers as structs rather than symbols. That way you can store source locations attached to identifiers.You are correct that there is no mechanism built into Nanopass to do this. But this is a great question, and there are several ways you can store source locations.The first is just to store the source locations inside of the nanopass expression itself.
~Leif Andersen
On Wed, Aug 24, 2016 at 11:47 AM, Jonathan Schuster <schu...@ccs.neu.edu> wrote:
Is there a way to get syntactic position information like line and column number from the input program to Nanopass? I'd like to add some line-based annotations to my program for analysis purposes.-Jon
Seems like the answer is likely no, since I think it just works on s-expressions, but I thought I'd check.
--
You received this message because you are subscribed to the Google Groups "nanopass-framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nanopass-framework+unsubscribe@googlegroups.com.
To post to this group, send email to nanopass-framework@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nanopass-framework/CAKUgKwxn1c5XZJt7-uH7s%2BeNrk8y9gBDjV8%2BziHkwErz1YcauA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "nanopass-framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nanopass-framework+unsub...@googlegroups.com.
To post to this group, send email to nanopass-framework@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nanopass-framework/CAAVaeECmHkRwKbntvSDoN7-_GL87XdSCvMwYPDU3nYgB%2BtaY%2Bw%40mail.gmail.com.