iwillspeak / ullage

A statically-typed compiled language defined by a simple grammar
http://willspeak.me/ullage/
Other
23 stars 1 forks source link

Tree Building and Syntax Factories #34

Closed iwillspeak closed 2 years ago

iwillspeak commented 5 years ago

The current checkparse tests are getting unwieldy. Writing the tree to match against is a bit of a pain. It would be nice to introduce a builder API similar to the Roslyn "quoter" API. This allows building more complex trees part by part and stubs in tokens when trees are not being directly backed by source. This would be useful when creating replacement trees in a syntax transformation.