摘要: 我觉得这几周学到了很多和以前所知不太相同的东西,大致记录一下。 最主要的一个方面,源自下面这段代码: type stateFn func(*lexer) stateFn for state := startState; state != nil; { state = state(lexer) } (这里是YouTube视频地址:http://youtu.be/HxaD_trXwRE; 演讲的稿子在这里:http://rspace.googlecode.com/hg/slide/lex.html) 这段代码是用go语言写的(go语言在大部... 阅读全文
posted @ 2012-04-14 23:26 川川-Leo 阅读(378) 评论(0) 推荐(0) 编辑