Extending C# .NET application - build a custom scripting language or not?

后端 未结 9 1224
情书的邮戳
情书的邮戳 2020-12-31 10:08

I need to build a scripting interface for my C# program that does system level testing of embedded firmware.

My application contains libraries to fully interact with

9条回答
  •  孤城傲影
    2020-12-31 10:31

    Irony could also be a good candidate here. Here is an example which creates animation for the given image on the fly.

    Set camera size: 400 by 300 pixels.
    Set camera position: 100, 100.
    Move 200 pixels right.
    Move 100 pixels up.
    Move 250 pixels left.
    Move 50 pixels down.
    

    The tutorial for creating such DSL is here:Writing Your First Domain Specific Language

    It is an old tutorial but the author still maintains his library here: Github Irony

提交回复
热议问题