Parsing huge XML files with Go
blog.davidsingleton.org
blog.davidsingleton.org
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
thank you ! this is an excellent talk. having concurrent implementation of lexer & parser as co-routines communicating over message channels is very, very cool.
It was impossible with out rewriting everything to use a SAX style parser.
This category is generally called "pull parsers" (as opposed to SAX-style event-driven parsers)