Giter Site home page Giter Site logo

Comments (3)

m10rten avatar m10rten commented on May 25, 2024

In addition:

let truthy = a > 0

then truthy is a boolean value

from guide-to-interpreters-series.

m10rten avatar m10rten commented on May 25, 2024

@tlaceby Are you planning on making more updates to this repository?

from guide-to-interpreters-series.

tlaceby avatar tlaceby commented on May 25, 2024

Yes I plan on finishing the series however I do not think I will proceed to do anything with OOP, imports, and arrays. Arrays in our interpreter would act almost identically to our other data types present. Just like how a number in our language is a simple wrapper around a javascript primitave, an arrayn would just be a wrapper around a javascript array.

OOP would be a interesting topic to cover as I think its important in understanding however I just personally dont really want to go that far with this series. I know some people would like it however after the most recent videos that cover functions and closures I think it is possible for followers of the series to be able to figure out how classes would work.

After all a class is basically a blueprint for a custom environment. Just like a function is a blueprint. I would be happy to answer questions regarding these topics in discord however I dont think I will continue the series after the videos that would cover boolean datatypes, loops, if/else statements.

As for import and export statements I think those are good ideas for any language to impliment and I think that we would want to refactor the language to make them dynamic at runtime unlike the javascript import statement. Making them a fuction call could be quiet useful in making it possible to dynamically call them at runtime.

However if you are struggling with import statements that run before any code is executed I suggest making the language run in more than one step. Having a sweeping phase could ensure that imports and function declarations all get appended to the global scope and then you can execute top level code in the second phase statement by statement.

Hopoefully this clears up what my intentions and plans for the series are. Feel free to contact on discord or by github. Cheers!

from guide-to-interpreters-series.

Related Issues (1)

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.