nitlang / nit

Nit language
http://nitlanguage.org
Apache License 2.0
238 stars 64 forks source link

astbuilder: Introduction of new construction services #2815

Closed Delja closed 4 years ago

Delja commented 4 years ago

Add two new services in the astbuilder module:

Delja commented 4 years ago

@privat The create_ast_representation methods can be moved in the ast builder.

Regarding the methods of the NitBuilder class, there is not really a correct class to put them. The objective of the ModelBuilder is to instantiate the model according to the AST and the ASTBuilder has instantiated the elements of the AST. In our case, we do both at the same time. Maybe the module/class name is incorrect.