Have the Golang developed moved Away from BISON ?

blov · · 382 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>I was looking into a blog post from back in 2015 about the Go Internals ( blog.altoros.com/golang-part-1-main-concepts-and-project-structure.html ), and it states that the development used Bison for Grammar and Parser. </p> <p>It seems that it has changed. How are the Lexical and Grammatical parts of Golang being developed now ? How can I go deeper into understanding it ?</p> <hr/>**评论:**<br/><br/>dgryski: <pre><p>Yes, it now uses a hand-written recursive descent parser I believe.</p></pre>kostix: <pre><blockquote> <p>The yacc tool (previously available by running “go tool yacc”) has been removed. As of Go 1.7 it was no longer used by the Go compiler. It has moved to the “tools” repository and is now available at golang.org/x/tools/cmd/goyacc.</p> </blockquote> <p><a href="https://golang.org/doc/go1.8#tool_yacc" rel="nofollow">https://golang.org/doc/go1.8#tool_yacc</a></p> <p>The first version of Go written in Go (self-bootstrapped) was <a href="https://golang.org/doc/go1.5#c" rel="nofollow">1.5</a>.</p></pre>jackmott2: <pre><p>not entirely relevant but rob pike had a nice talk on writing a lexer in Go:</p> <p><a href="https://www.youtube.com/watch?v=HxaD_trXwRE&amp;t=1579s" rel="nofollow">https://www.youtube.com/watch?v=HxaD_trXwRE&amp;t=1579s</a></p></pre>auyer: <pre><p>Very relevant to be honest.</p></pre>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

382 次点击  
加入收藏 微博
0 回复
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传