Currently, the Lox class exposes a static error method for error handling. This creates a circular dependency (Lox -> Scanner for lexical analysis while Scanner -> Lox for error handling).
We should improve this by abstracting the error handling into it's own system so that the circular dependency is removed.
Currently, the
Loxclass exposes a staticerrormethod for error handling. This creates a circular dependency (Lox->Scannerfor lexical analysis whileScanner->Loxfor error handling).We should improve this by abstracting the error handling into it's own system so that the circular dependency is removed.