Lex/Yacc for C#?

前端 未结 12 1893
隐瞒了意图╮
隐瞒了意图╮ 2020-11-29 06:21

Actually, maybe not full-blown Lex/Yacc. I\'m implementing a command-interpreter front-end to administer a webapp. I\'m looking for something that\'ll take a grammar definit

12条回答
  •  误落风尘
    2020-11-29 06:32

    I've done a couple of small projects with GPLEX/GPPG, which are pretty straightforward reimplementations of LEX/YACC in C#. I've not used any of the other tools above, so I can't really compare them, but these worked fine.

    GPPG can be found here and GPLEX here.

    That being said, I agree, a full LEX/YACC solution probably is overkill for your problem. I would suggest generating a set of bindings using IronPython: it interfaces easily with .NET code, non-programmers seem to find the basic syntax fairly usable, and it gives you a lot of flexibility/power if you choose to use it.

提交回复
热议问题