I am using parsing combinators in scala If I have recursive parser:
val uninterestingthings = ".".r
val parser = "(?ui)(regexvalue)".r | (uninterestingthings~>parser)
How can I check how many characters of input my parser consumed?
有一个positioned
组合器(引用其文档)“将解析器的结果与其使用的输入的起始位置一起装饰”。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.