Unable to parse IP address #234
sebbbastien
started this conversation in
General
Replies: 1 comment
-
Your intuition is correct, the default lexer will greedily match that input. You'll need a custom lexer. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm unable to parse an IP address with a basic definition (Int.Int.Int.Int).
Here is a quick exemple: https://go.dev/play/p/s8XBKsabqXx
As far as I understand, it fails on the second dot, as if the float parser takes precedence.
Thanks in advance for your help!
Beta Was this translation helpful? Give feedback.
All reactions