package
0.0.0-20230827225450-169fbabbf91c
Repository: https://github.com/rect-lang/rect-go-compiler.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
Error prints custom error message and code snippet to terminal/console Uses old colour formatting method, will switch to Format() later.
ErrorS basically Error but returns a string instead of printing.
ErrorTypeToCode https://discord.com/channels/751171532398788720/937451421702455306/943557950260269179.
Format multiline coloring made easier! use colour codes in the string like "&pHello gamers, %rHow are you doing today&dgr?" and Format will colour code it for you.
No description provided by the author
LookUp prints an explanation of an error message.
No description provided by the author
No description provided by the author
PrintCodeSnippet does what it says on the label, it prints a snippet of the code in CodeReference.
PrintCodeSnippetS returns a code snippet string instead of returning it like PrintCodeSnippet.
No description provided by the author
Warning prints custom warning message and code snippet to terminal/console.
No description provided by the author
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
&bl.
&b.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
&c.
&db.
&dc.
&dgr.
&dg.
&dr.
&dy.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Binder Errors.
3009.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Preprocessor Errors.
Preprocessor ErrorCodes.
No description provided by the author
1004.
No description provided by the author
1005.
No description provided by the author
1006.
No description provided by the author
No description provided by the author
&gr.
&g.
Depreciated (because it's kind of dumb).
Depreciated.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
&m.
No description provided by the author
No description provided by the author
Developer Error.
Developer ErrorCodes (start at 9000) (Why? Fuck logic that's why).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
&p.
No description provided by the author
1007.
&r.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Lexer Errors.
1003.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Parser Errors.
Parser ErrorCodes (start at 2000).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NOTE: this error does not exist, and I have no idea why!.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Packager Errors.
Packager ErrorCodes.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Emitter Errors.
Emitter ErrorCodes.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
&w.
&y.

# Variables

CodeReference stores code for both error lookups and compiler-time error messages.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

ErrorReport is a structure to hold all info about an error.
No description provided by the author

# Type aliases

ErrorCode the numerical representation of an Error, this allows it to be "looked up" using the Error lookup system.
ErrorType stores the string value of errors, it's helpful to have all the error in one place.