Could .NET be parsed and evaluated at runtime

前端 未结 6 1472
轻奢々
轻奢々 2021-01-14 09:25

I thought it would be fun if I could write vb.net or c# code at runtime and the interpreter would automatically parse it like python does it, so I made a little program, whi

6条回答
  •  抹茶落季
    2021-01-14 10:16

    So my question is: Is it possible to make vb.net or c# like python - interpreted at runtime?

    Sure. Start writing an interpreter for it and then you can interpret it. Start with a nice syntax parser. Then go on from there.

提交回复
热议问题