melt-umn / silver

An attribute grammar-based programming language for composable language extensions
http://melt.cs.umn.edu/silver/
GNU Lesser General Public License v3.0
58 stars 7 forks source link

Feature/agnosis-utils #833

Closed krame505 closed 5 months ago

krame505 commented 5 months ago

Changes

Some utilities for use by the debugger folks.

This adds a localLazy method in DecoratedNode, and getSourceLocation on Lazy objects to get the source of locations. For collection attributes, it just returns the location of the base equation for now.

Documentation

Added doc comments.

Testing

Inspected the generated code to see that locations are correct. Otherwise, let me know if this doesn't work!