Continuing my exploration of reimplementing GLSL for a risc32cfimv, the next step is to implement a lexer.
For starters: What would I implement it in?
If I'm saying that it'd be stored in a separate page of RAM without access to the Lua interpreter, that would suggest that we need this compiled to RISC-V Assembly. We could hand write this Assembly, or I've designed a stack-based mid-level language.
Or I suppose we could save the results from compiling some form of type-checked Lua!
1/3?