News for hackers. Stuff that matters.
Re:Participle: A parser library for Go by pjmlp on Tuesday July 17, 2018 @08:16AM (#17549124)
Clever idea of using struct tags for grammar rules.
Re:Participle: A parser library for Go by childintime on Tuesday July 17, 2018 @09:30AM (#17549581)
This maps well to how I think of parsing. Refreshing. I will have to give it a shot.
Re:Participle: A parser library for Go by laumars on Tuesday July 17, 2018 @09:24AM (#17549538)
Wouldn't that then require reflection, which is "slow" (comparatively speaking - if this isn't in a hot path then perhaps who cares?)
Re:Participle: A parser library for Go by bpicolo on Tuesday July 17, 2018 @09:38AM (#17549624)
It's not in the hot path, it's used to generate the parser.
Re:Participle: A parser library for Go by laumars on Tuesday July 17, 2018 @09:57AM (#17549752)
Ahhh, then that's a cool approach to take parser generation.