utils

package
v0.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2025 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

src/utils/error_printer.go

Index

Constants

View Source
const (
	Reset  = "\033[0m"
	Red    = "\033[31m"
	Green  = "\033[32m"
	Yellow = "\033[33m"
	Blue   = "\033[34m"
	Bold   = "\033[1m"
	Cyan   = "\033[36m"
)

ANSI color codes for terminal output

View Source
const MAX_REPL_HISTORY = 1000

Variables

This section is empty.

Functions

func ClearReplHistory

func ClearReplHistory()

ClearReplHistory clears the stored REPL history

func PrintError

func PrintError(err *object.ErrorWithTrace)

PrintError formats and prints a Carrion error with source context

func PrintParseFail

func PrintParseFail(filename string, content string, errors []string)

PrintParseFail formats parser error information

func RegisterReplLine

func RegisterReplLine(lineNum int, content string)

RegisterReplLine stores a line from REPL history for error context

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL