Comments (3)
In addition:
let truthy = a > 0
then truthy is a boolean value
from guide-to-interpreters-series.
@tlaceby Are you planning on making more updates to this repository?
from guide-to-interpreters-series.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from guide-to-interpreters-series.