What interests me especially is the ability to define the grammar in the code as regular code without unnecessary jerking.
I know that I can use IronPython. I do not want.
UPDATE:
To further explain what I'm looking for, I include some sample piping code. This is an incomplete parser for converting emacs bright keys to more conventions. This example, of course, is small enough for the string functions to be sufficient, but this is just to show the purity and brevity of the pyrapes.
from pyparsing import Literal, OneOrMore, Optional, Word, printables, replaceWith CTRL_MODIFIER = Literal('C').setParseAction(replaceWith('Ctrl')) META_MODIFIER = Literal('M').setParseAction(replaceWith('Alt')) MODIFIER = CTRL_MODIFIER | META_MODIFIER
I would like to be able to write grammar in .NET with the same ease in the form of several lines.
source share