简体   繁体   中英

Parser combinators info

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM