Using a DSL to generate C# Code

前端 未结 3 636
面向向阳花
面向向阳花 2021-02-09 19:00

Currently the project I\'m working with does not have completely fixed models (due to an external influence) and hence I\'d like some flexibility in writing them. Currently they

3条回答
  •  猫巷女王i
    2021-02-09 19:30

    This can be easily done with ANTLR. If the output is similar enough you can simply use the text templating mechanism—otherwise it can generate an abstract syntax tree for you to traverse.

提交回复
热议问题