Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
pharmakom
on Oct 22, 2022
|
parent
|
context
|
favorite
| on:
Incremental Parsing in Go
> a successful parse consumes at least one rune
This avoids infinite loops?
Jtsummers
on Oct 22, 2022
[–]
Yes, there would be two outcomes for an attempted parsing. Either it succeeds and makes progress (and eventually terminates) or it fails and consumes nothing (and terminates because eventually you run out of parsers to try).
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
This avoids infinite loops?