branchrust_reboot/main/hackweek_vi_rust_expressioncancel

32 Commits over 0 Days - ∞cph!

10 Months Ago
Fixed more type errors
10 Months Ago
Fixed a bunch of type errors with maths expressions and binary expressions. Added type error checking.
10 Months Ago
Added persistent variables to symbol table.
10 Months Ago
Added accumulator. Fixed conversions and literals not being converted to floats.
10 Months Ago
Updated WIP in game chip.
10 Months Ago
Added input and output expressions to link chip code with rust in game io.
10 Months Ago
Added bunch of trig functions: cos, sin, tan, acos, asin, atan Added pi and tau as preset variables.
10 Months Ago
Added infinite loop detection to try and stop these infinite loops from freezing everything :( Message stack clears itself between runs Omg I think I fixed the infinite loops Added support for true and false values
10 Months Ago
Fixed infinite loop bug Greatly improved error recovery Greatly improved block recognition Fixed errors with discovering new line New lines now seperate statments the same way as semi colon does in other languages
10 Months Ago
Code won't be run in parser if lexer has an issue. Lexer now outputs to error stack. All expressions now output to error stack. Symbol table now outputs to error stack.
10 Months Ago
Fixed in game console not pushing stack messages correctly.
10 Months Ago
Setup stack system for messages and errors.
10 Months Ago
Added console and basic instructions to in game code editor.
10 Months Ago
Added editor in game.
10 Months Ago
Added scripting menu item
10 Months Ago
Added in game WIP version of the programmable chip. Removed strings for the time being. Prevented a couple of infinite loops in the parser.
11 Months Ago
Fixed printing issue. Fixed issue with parser clearing tokens. Parser now listens for end of file token.
11 Months Ago
Interpreter now runs multi line expressions as well as statements. Parser now returns list of expressions rather than single one. Added AST printing.
11 Months Ago
Added assignment expression.
11 Months Ago
Clear symbol table between code runs. Broke variable assignement. Print statement just runs on evaluation. Fixed lexer issues between runs.
11 Months Ago
Fixed parser skipping last token. Added debug print for symbol table Lexer numbers handled better. Fixed issue with variable declaration.
11 Months Ago
Fixed a bunch of lexing errors.
11 Months Ago
Fixed issue with number lexing.
11 Months Ago
Added null and iif support to parser. Renamed lexer keywords. Added statement support Fixed binary epression bug Wrote basic interpreter Added system to run code wrote in game with editor Added null expression support
11 Months Ago
Added global symbol table. Implemented support for variables and their identifiers into parser.
11 Months Ago
Added block expression support
11 Months Ago
Wrote basic recusrive descent parser. Added support for Unary Expressions,
11 Months Ago
Added definitions for grouping, binary and literal expressions. Removed redundant token types. Forced all lower case input to lexer.
11 Months Ago
Added lexing support for keywords.
11 Months Ago
Added lexing support for literals and single character tokens
11 Months Ago
Fixed caret. Added blinking and ensured it respects text editor width/height
11 Months Ago
Basic blockout in game code editor added. Not useable yet.