3 ms·
Personally, I have a penchant for writing my own pull parsers. Its a mind-expanding exercise. The neat thing about Go is that parsers can return functions tha
by willvarfar 14y ago
Personally, I have a penchant for writing my own pull parsers. Its a mind-expanding exercise.
The neat thing about Go is that parsers can return functions that consume the next token. Rob Pike has an excellent video about this: http://www.youtube.com/watch?v=HxaD_trXwRE http://www.youtube.com/watch?v=HxaD_trXwRE
- pjmlp 14y agoAs in any language that supports functions as first class objects.
- signa11 14y ago> Rob Pike has an excellent video about this: http://www.youtube.com/watch?v=HxaD_trXwRE http://www.youtube.com/watch?v=HxaD_trXwRE thank you ! this is an excellent talk. having concurrent implementation of lexer & parser as co-routines communicating over message channels is very, very cool.