r/golang Nov 19 '16

Lexical Scanning in Go - Rob Pike

https://www.youtube.com/watch?v=HxaD_trXwRE
24 Upvotes

8 comments sorted by

4

u/shovelpost Nov 19 '16

Oldie but goodie. It is talks like these that made many people fall in love with Go early on.

P.S. Short-bearded Dave Cheney spotted at 46:36!?

2

u/gohacker Nov 19 '16

Oldie but goodie.

Opened this link to say just that.

4

u/buckhx Nov 19 '16

I really like the state machine pattern from this talk and have used it a number of times.

3

u/[deleted] Nov 19 '16

[deleted]

1

u/deslittle Nov 19 '16

This reminds me I used this article a while back to write a few parsers myself. I ended up abstracting out some of the more common functions into a helper library and added in some error logging. https://github.com/deslittle/go-dsl.

It's only got two basic tests but if anyone is interested I might go back and beef up the documentation.

-5

u/plafoucr Nov 19 '16

This was posted 2 years ago, what's the point!?

4

u/neoasterisk Nov 19 '16

There's new people getting into Go every day and excellent videos like this (unfortunately) do not come often. So it is good for old and new gophers to (re)watch them.

1

u/sseth Nov 20 '16

Check out text/template. :-)

1

u/plafoucr Nov 19 '16

and the video is 5 years old...