Expose position on Moa errors
Changes
1. Introduce moa.ErrPosition
This change adds a standardized way to track where errors occur in the code being processed.
The error types EvalError and ParseError now implement methods to report their position and length within the input text. A new interface called ErrPosition is also introduced to ensure any error that needs to report its location follows the same pattern.
This enhancement allows systems using Moa to provide more helpful error messages by showing users exactly where in their input the problem occurred.
Related
Edited by Cameron Swords