Type Alias cpclib_asm::assembler::processed_token::AssemblerInfo

source ·
pub type AssemblerInfo = AssemblerError;

Aliased Type§

enum AssemblerInfo {
Show 54 variants AlreadyRenderedError(String), LocatedListingError(Arc<LocatedListing>), MultipleErrors { errors: Vec<AssemblerError>, }, EmptyBinaryFile(String), AmsdosError { error: AmsdosError, }, BugInAssembler { file: &'static str, line: u32, msg: String, }, BugInParser { error: String, context: ParserContext, }, SyntaxError { error: Z80ParserError, }, IncludedFileError { span: Z80Span, error: Box<AssemblerError>, }, BasicError { error: BasicError, }, DisassemblerError { msg: String, }, AssemblingError { msg: String, }, InvalidArgument { msg: String, }, Fail { msg: String, }, AssertionFailed { test: String, msg: String, guidance: String, }, SymbolAlreadyExists { symbol: String, }, CounterAlreadyExists { symbol: String, }, IncoherentCode { msg: String, }, UnknownMacro { symbol: SmolStr, closest: Option<SmolStr>, }, MacroError { name: SmolStr, root: Box<AssemblerError>, }, WrongNumberOfParameters { symbol: String, nb_paramers: usize, nb_arguments: usize, }, UnknownSymbol { symbol: SmolStr, closest: Option<SmolStr>, }, InvalidSymbol(SmolStr), WrongSymbolType { symbol: SmolStr, isnot: SmolStr, }, AlreadyDefinedSymbol { symbol: SmolStr, kind: SmolStr, }, IOError { msg: String, }, UnknownAssemblingAddress, ReadOnlySymbol(Symbol), RunAlreadySpecified, NoActiveCounter, NoDataToCrunch, NotAllowed, OutputExceedsLimits(PhysicalAddress, usize), OutputAlreadyExceedsLimits(usize), OutputProtected { area: RangeInclusive<u16>, address: u16, }, OverrideMemory(PhysicalAddress, usize), ExpressionUnresolvable { expression: Expr, }, ExpressionError(ExpressionError), RelativeAddressUncomputable { address: i32, pass: AssemblingPass, error: Box<AssemblerError>, }, CrunchedSectionError { error: Box<AssemblerError>, }, RelocatedError { error: Box<AssemblerError>, span: Z80Span, }, RelocatedWarning { warning: Box<AssemblerError>, span: Z80Span, }, RelocatedInfo { info: Box<AssemblerError>, span: Z80Span, }, ForIssue { error: Box<AssemblerError>, span: Option<Z80Span>, }, RepeatIssue { error: Box<AssemblerError>, span: Option<Z80Span>, repetition: i32, }, WhileIssue { error: Box<AssemblerError>, span: Option<Z80Span>, }, MMRError { value: i32, }, SnapshotError { error: SnapshotError, }, FunctionWithoutReturn(String), FunctionWithEmptyBody(String), FunctionUnknown(String), FunctionWithWrongNumberOfArguments(String, usize, usize), FunctionError(String, Box<AssemblerError>), ExpressionTypeError(ExpressionTypeError),
}

Variants§

§

AlreadyRenderedError(String)

Dirty trick to not play with memory

§

LocatedListingError(Arc<LocatedListing>)

Parse of a located listing failed, but the error is in fact stored within the located listing object…

§

MultipleErrors

Fields

§

EmptyBinaryFile(String)

§

AmsdosError

Fields

§

BugInAssembler

Fields

§file: &'static str
§line: u32
§

BugInParser

Fields

§error: String
§

SyntaxError

Fields

§

IncludedFileError

Fields

§span: Z80Span
§

BasicError

Fields

§

DisassemblerError

Fields

§

AssemblingError

Fields

§

InvalidArgument

Fields

§

Fail

Fields

§

AssertionFailed

Fields

§test: String
§guidance: String
§

SymbolAlreadyExists

Fields

§symbol: String
§

CounterAlreadyExists

Fields

§symbol: String
§

IncoherentCode

Fields

§

UnknownMacro

Fields

§symbol: SmolStr
§closest: Option<SmolStr>
§

MacroError

Fields

§name: SmolStr
§

WrongNumberOfParameters

Fields

§symbol: String
§nb_paramers: usize
§nb_arguments: usize
§

UnknownSymbol

Fields

§symbol: SmolStr
§closest: Option<SmolStr>
§

InvalidSymbol(SmolStr)

§

WrongSymbolType

Fields

§symbol: SmolStr
§isnot: SmolStr
§

AlreadyDefinedSymbol

Fields

§symbol: SmolStr
§kind: SmolStr
§

IOError

Fields

§

UnknownAssemblingAddress

§

ReadOnlySymbol(Symbol)

§

RunAlreadySpecified

§

NoActiveCounter

§

NoDataToCrunch

§

NotAllowed

§

OutputExceedsLimits(PhysicalAddress, usize)

§

OutputAlreadyExceedsLimits(usize)

§

OutputProtected

Fields

§address: u16
§

OverrideMemory(PhysicalAddress, usize)

§

ExpressionUnresolvable

Fields

§expression: Expr
§

ExpressionError(ExpressionError)

§

RelativeAddressUncomputable

Fields

§address: i32
§

CrunchedSectionError

Fields

§

RelocatedError

Several errors has been generated without span information. RelocatedError allows them to be approximately located

Fields

§span: Z80Span
§

RelocatedWarning

Fields

§span: Z80Span
§

RelocatedInfo

Fields

§span: Z80Span
§

ForIssue

Fields

§

RepeatIssue

Fields

§repetition: i32
§

WhileIssue

Fields

§

MMRError

Fields

§value: i32
§

SnapshotError

Fields

§

FunctionWithoutReturn(String)

§

FunctionWithEmptyBody(String)

§

FunctionUnknown(String)

§

FunctionWithWrongNumberOfArguments(String, usize, usize)

§

FunctionError(String, Box<AssemblerError>)

§

ExpressionTypeError(ExpressionTypeError)