From T3 · · 30s
Parser Combinators
How to build simple parsers for text and numbers.
In brief
How to build simple parsers for text and numbers. Parser combinators create reusable code for parsing text and numbers like IP addresses. Originally reported by T3.
pString
This parser matches exact text like PING.
pInteger
This parser matches whole numbers like 64.
pDecimal
This parser matches numbers with optional fractions like 68.7.
pIpV4Address
This parser matches IP addresses like 1.1.1.1.
In short
Parser combinators create reusable code for parsing text and numbers like IP addresses.




