func GetErrors() []string {
	return errors
}
GetErrors returns the array of errors.
package reporter
import (
	"fmt"
	"github.com/fadion/aria/token"
)
type ErrorType string
const (
	PARSE   ErrorType = "Parse Error"
	RUNTIME ErrorType = "Runtime Error"
)
var errors []string
func Error(errortype ErrorType, location token.Location, message string) {
	errors = append(errors, fmt.Sprintf("%s [Line %d:%d]: %s", errortype, location.Row, location.Col, message))
}
func HasErrors() bool {
	return len(errors) > 0
}