Rob174 / GenerationTerrain

GenerationTerrain
MIT License
0 stars 0 forks source link

Save preprocessing steps #6

Open Rob174 opened 3 years ago

Rob174 commented 3 years ago

Goals

Rob174 commented 3 years ago

Approach Command Pattern

Rob174 commented 3 years ago

Parse preprocessing file / function

Using ast library Can easily get the argument of a method/function and intermediate variables But can be a problem if intermediates variables Maybe use comments to split parts How to link parts ?

ast get_source_segment can allow to access node original source code and get the parameters target of node assign can allow to get the variable