jaysmito101 / tovie Goto Github PK
View Code? Open in Web Editor NEWAn Stack Based Programming Language (Compiler + VM)
License: MIT License
An Stack Based Programming Language (Compiler + VM)
License: MIT License
Tovie is quite a simple language but still it is getting more complex day by day so it is very important to have a documentation.
The VM and compiler are quite small and single file so you can refer to see how tovie works :
https://github.com/Jaysmito101/tovie/blob/master/src/vm.cpp
https://github.com/Jaysmito101/tovie/blob/master/src/compiler.cpp
Also if you need any help ask us in discord : https://discord.gg/3h5S2cSbm8
Would it be possible to shorten the parser to just allow for "end" to close the last
top-statement? This reminds me a bit of shell scripts which can be weird.
Tovie has a python transpiler. Variables are mostly implemented in the transpiler only thing left is implementing operations for the variables over here :
tovie/src/python_transpiler.cpp
Line 477 in 2572c4d
Line 1254 in 2572c4d
In the file toviec.cpp line 26, it show that you don't handle the std::stoi error about large number (std::out_of_range)
operations.push_back(Operation(OperationType::PUSH, std::stoi(token)));
The input file:
99999999999999
Solution:
1 - Try handle it and give the user error about integer too big
2 - Use multiprecision library such as mpir or boost.multiprecision
Note: multiprecision maybe slower than pure int
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.