teikalang / teika

MIT License
324 stars 7 forks source link

teika: split error module from context #153

Closed EduardoRFS closed 1 year ago

EduardoRFS commented 1 year ago

Goals

Allow for printing errors without cycle with Context.

Context

At some point the term printer and future error printer will need to depend on the Context module, but the Context module depends on the printer, this makes a cycle. To avoid it, this PR lifts the errors to it's own module.