Giter VIP home page Giter VIP logo

jlox's Introduction

关于jlox

jlox是《crafting interpreters》一书中,作者实现解释器的代码,在阅读过程中,跟着作者的思路,敲下了这些代码

本来这个语言叫做Lox,但是由于当前的Lox实际上是建立在Java语言上的,对于Lox程序,我们的jlox会扫描,解析,并在Java语言的基础上执行,算是名副其实的“解释器”,所以才会在其前面加上了“j”

也因为如此,该书并没有涉及到关于JVM的东西,但实际上JVM也包含解释器,将字节码指令解释为机器指令执行

为什么代码与书中不完全相同

本人在跟着书学习过程中,加了一些自己的想法,同时在书中整个框架的基础上,加入了break以及continue关键字的支持

后续会根据自己的时间,断断续续地维护,并加一些新功能(佛系

jlox's People

Contributors

javen-liu avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.