我正在使用'Token()‘方法丢弃前导和尾随空格,但它不会,此测试失败,并显示消息Expected string to be "token", but it has unexpected whitespace at the end.如何正确使用Token()方法?public void Test() Parser<string> parser = Parse.AnyChar.Many().T
我让set来解析一个方程,其中包含了许多不同的方法调用。在解析该方法之后,是否有方法确定原始字符串中的索引值?也许Parse有一个“当前索引”值和“长度”值,这是可以访问的吗?IndexOf("fred", 2) + IndexOf("bob")Parser<Expression> FunctionCall = from namePart in Parse.Letter.Many().Text()
from lparen in Parse.Char('