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.
是否有像 plus() 这样具有上限的解析器来模拟像这样的表达式Item <- [a-zA-Z0-9]{1,5}?
Item <- [a-zA-Z0-9]{1,5}
同样对于类似的东西Item <- [a-zA-Z0-9]{3,5}?
Item <- [a-zA-Z0-9]{3,5}
是的,repeat运营商这样做:
repeat
Parser item = word().repeat(1, 5);
检查JavaDoc以获取更多信息。