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

BUG: Refactor on test-branch does not work #2

Closed ijoffe closed 9 months ago

ijoffe commented 9 months ago

I made a test-branch branch to attempt a refactor of the lexer. In this version, some of the more general utility functions are moved from the Lexer class to the utility.h file so that they are accessible to other areas of they program (they may be useful). I set it up in the standard C way of having a .cpp and .h file, and a few other ways, but they still don't work.

The code compiles, but it doesn't cross-compile, which is what makes it bizarre. I think it is valid C++ because it originally compiles, it's some board-specific problem.

image

ijoffe commented 9 months ago

I guess I missed some duplicated code somehow. It compiles now: image

ijoffe commented 9 months ago

Also, a small that can solve bugs sometimes -- you need to regenerate the build folder and the CMake build chain after adding/removing files