fsacer / faillang Goto Github PK
View Code? Open in Web Editor NEWLanguage based on lox from book "Crafting Interpreters" by @munificent
Language based on lox from book "Crafting Interpreters" by @munificent
In for loop the current implementation of continue does not increment the incrementors and is behaving like inside while loop.
I'm having the same issue with implementing exponents in my own interpreter.
2^2^4 evaluates to 256 instead of 65536.
Hi Franci, I would like to ask how did you test each component of the interpreter as you were following the crafting interpreter's book, I really like the book and would also like to learn how to make one, finding it hard to set up the first part and trying to test the Scanner feature of the interpreter.
Would I have to build and use the lox interpreter to test each component? or is there another way? I have kept trying to compile it in Java with javac
but kept getting many errors.
Hi @fsacer,
I am actually working on my own dialect of Lox at the moment and I'm thinking about implementing the tree-walk interpreter. So far, there are some blanks in my head with some of the code involved. I was wondering how hard was it to implement Lox? Did you understand the book? And how difficult was it to add your own features?
Any responses would be much appreciated!
Add string multiplication based on Python.
var a = 1;
var a = 2;
var a = 3;
print a;
// Output: 3
// Expect: Variable with this name already declared in this scope.
Currently there is no way to print multiple numbers in the same line. Either cast operator or stringify everything is needed.
Add if, while, for
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.