bkbm / rslogo

A project to implement a logo interpreter in rust
0 stars 0 forks source link

Implement scanner #13

Closed bkbm closed 4 months ago

bkbm commented 4 months ago

I created the Scanner. It is a bit of a mess so will need tidying up in the future. The base understanding of the code comes from https://craftinginterpreters.com/scanning.html. My main code uses rusts iterator however during clean up i will either change it to use a list with iterator like helper functions, or pass the iterator around functions.

bkbm commented 4 months ago

Also created the base error and error reporting structs. currently only implemented functionality for the Error struct