ECE-492-SnakesAndAdders / python-interpreter

C3Python is an entirely custom-made Python interpreter designed to run on proprietary hardware.
Creative Commons Attribution 4.0 International
0 stars 0 forks source link

Refactor to improve code quality #4

Closed ijoffe closed 7 months ago

ijoffe commented 7 months ago

Extract some more general functions in the lexer so that other future pieces can use them too.

Adopt a header-based implementation so it is easy to change implementations as needed (probably for speed/memory concerns).

Everything compiles properly: image

ijoffe commented 7 months ago

Confirmed it executes the same on the hardware, merging