Cesium icon indicating copy to clipboard operation
Cesium copied to clipboard

Automate AST generation

Open ForNeVeR opened this issue 1 year ago • 2 comments

In #678, we've got a manual AST generator for verification purposes.

For now, it is fully manually written, and I believe this is far from productive.

Let's consider automating it somehow. Some basic ideas:

  1. Get an AST visitor and use it instead of manual enumeration of all nodes
  2. Write a source gen
  3. Convert to JSON and then make some basic string or JSON tree transforms

ForNeVeR avatar Oct 29 '24 21:10 ForNeVeR

I think AST nodes should have information about their range and source file of origin.

kant2002 avatar Oct 30 '24 05:10 kant2002

They should, but this is separate topic I believe. Let's say it's currently anchored by #526.

ForNeVeR avatar Oct 30 '24 14:10 ForNeVeR