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
§
errors: Vec<AssemblerError>EmptyBinaryFile(String)
AmsdosError
Fields
§
error: AmsdosErrorBugInAssembler
BugInParser
SyntaxError
Fields
§
error: Z80ParserErrorIncludedFileError
BasicError
Fields
§
error: BasicErrorDisassemblerError
AssemblingError
InvalidArgument
Fail
AssertionFailed
SymbolAlreadyExists
CounterAlreadyExists
IncoherentCode
UnknownMacro
MacroError
WrongNumberOfParameters
UnknownSymbol
InvalidSymbol(SmolStr)
WrongSymbolType
AlreadyDefinedSymbol
IOError
UnknownAssemblingAddress
ReadOnlySymbol(Symbol)
RunAlreadySpecified
NoActiveCounter
NoDataToCrunch
NotAllowed
OutputExceedsLimits(PhysicalAddress, usize)
OutputAlreadyExceedsLimits(usize)
OutputProtected
OverrideMemory(PhysicalAddress, usize)
ExpressionUnresolvable
ExpressionError(ExpressionError)
RelativeAddressUncomputable
CrunchedSectionError
Fields
§
error: Box<AssemblerError>RelocatedError
Several errors has been generated without span information. RelocatedError allows them to be approximately located
RelocatedWarning
RelocatedInfo
ForIssue
RepeatIssue
WhileIssue
MMRError
SnapshotError
Fields
§
error: SnapshotError