patrickfeltes / ti-basic-interpreter Goto Github PK
View Code? Open in Web Editor NEWAn application to interpret and run TI BASIC code on computers. Based off the interpreter from craftinginterpreters.com
License: MIT License
An application to interpret and run TI BASIC code on computers. Based off the interpreter from craftinginterpreters.com
License: MIT License
Gonna be a lot of code to change, pretty much every cast to a double will need to be changed
Not user defined, just standard library functions from the calculator.
"123" -> A is a working piece of code. We want some way to statically type variables so that numbers can't be stored into list variables, strings into number variables, etc...
For example Disp "X", which is a display command with multiple whitespaces before the argument will cause an error. So we need to tokenize spaces when they are appropriate (i.e. not in strings).
See visitBinaryExpr in Interpreter.java
I want to use this in an android project and was wondering what the status of the project is?
What have you implemented? What is still missing that I would have to add to get it to a functional state?
Thanks
Makes no sense, and I don't see any defined behavior on the calculator for jumping into a block.
Should be easy to do, just pull label statements into their own level of statement above regular statements
labelStatement : "Lbl" labelIdentifier
| statement ;
The current implementation using an AST doesn't really lend well to skipping around since it is a recursive implementation. https://stackoverflow.com/questions/8642355/implementing-goto-in-an-ast
Currently is a statement, might be better suited as an expression that returns a value, will check on actual TI calculator.
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.