Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Parsecparse pattern "(some_input)" input返回解析后的数据(正如我在pattern.
parse pattern "(some_input)" input
pattern
如何知道input它消耗了多少(模式不是用 eof 锚定的)?我不想通过 allpattern的内部添加长度跟踪(如果丢弃输入的某些部分)。
input
getInput
(答案基于对问题的评论)