Simple Pascal Interpreter

agolangf · · 481 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>Hey all. I set out to learn a bit about the compiling process, ran into a beautiful (though incomplete) series ruslanspivak.com/lsbasi-part1 without knowing a lick of python and re-implemented it in Go! It&#39;s up to part 10, it shows the lexer, parser, ast, and interpreter processes. And generates nice images to visualize the AST trees. I&#39;m a hobbyist programmer whose hoping to land a job programming (im tired of the IT side of things) - so any comments and criticism very welcome- i need to know where to improve!</p> <p>The big step im working on figuring out right now is handling multiple types being passed around, so for now, everything is treated as a float64. I&#39;ve got a few ideas but I need to think on it a bit more.</p> <p><a href="https://github.com/thegtproject/spi" rel="nofollow">https://github.com/thegtproject/spi</a></p> <hr/>**评论:**<br/><br/>SerifAndSemaphore: <pre><p>It&#39;s been like 20 years since I wrote Pascal and this makes me want to tinker with it again. I don&#39;t know why, but I have fond memories of it.</p></pre>_crackling: <pre><p>Its been a very long time for me using pascal as well, but writing a parser for it was thoroughly enjoyable.</p></pre>

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

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