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

Fix a few bugs with reflection-based unparse mechanism #838

Closed krame505 closed 3 months ago

krame505 commented 3 months ago

Changes

Fix some issues with handling newlines in syntactic terminals, such as in multi-line doc comments and string templates. Also refactor some functions added/changed since #822.

./self-compile --refactor-concise-functions is now clean when run on the Silver compiler, and does not perform any additional changes.

Documentation

Added a comment. This is a bug fix.

Testing

Ran the concise functions refactoring pass on Silver and ableC, it now does not cause any superfluous indentation changes.