Versions in this module Expand all Collapse all v0 v0.1.0 Sep 3, 2025 Changes in this version + type Error struct + Message string + Position lexer.Position + Source string + Type ErrorType + func NewLexicalError(message string, pos lexer.Position) *Error + func NewSemanticError(message string, pos lexer.Position) *Error + func NewSyntaxError(message string, pos lexer.Position) *Error + func (e *Error) Error() string + func (e *Error) PrintFormatted() string + func (e *Error) String() string + func (e *Error) WithSource(source string) *Error + type ErrorList []*Error + func (el *ErrorList) Add(err *Error) + func (el *ErrorList) AddLexicalError(message string, pos lexer.Position) + func (el *ErrorList) AddSemanticError(message string, pos lexer.Position) + func (el *ErrorList) AddSyntaxError(message string, pos lexer.Position) + func (el ErrorList) Count() int + func (el ErrorList) Error() string + func (el ErrorList) FilterByType(errorType ErrorType) ErrorList + func (el ErrorList) GetLexicalErrors() ErrorList + func (el ErrorList) GetSemanticErrors() ErrorList + func (el ErrorList) GetSyntaxErrors() ErrorList + func (el ErrorList) HasErrors() bool + func (el ErrorList) String() string + type ErrorReporter struct + func NewErrorReporter(source string) *ErrorReporter + func (er *ErrorReporter) Clear() + func (er *ErrorReporter) GetErrorCount() int + func (er *ErrorReporter) GetErrors() ErrorList + func (er *ErrorReporter) HasErrors() bool + func (er *ErrorReporter) Report(err *Error) + func (er *ErrorReporter) ReportLexicalError(message string, pos lexer.Position) + func (er *ErrorReporter) ReportSemanticError(message string, pos lexer.Position) + func (er *ErrorReporter) ReportSyntaxError(message string, pos lexer.Position) + type ErrorType int + const LexicalError + const SemanticError + const SyntaxError