Enum aluasm::LexerError [−][src]
pub enum LexerError<'i> {}Show 37 variants
UnknownSegment(Rule), LibNoName(Src<'i>), LibNoId(Src<'i>), RoutineNoName(Src<'i>), RoutineUnrecognized(Src<'i>), StatementNoInstruction(Src<'i>), StatementNoFlag(Src<'i>), OperatorMiscomposition(Src<'i>), FlagWithoutValue(Src<'i>), RegisterNoType(Src<'i>), RegisterNoName(Src<'i>), RegisterNameNonDecimal(Src<'i>, ParseIntError), RegisterNoIndex(Src<'i>), RegisterIndexNonDecimal(Src<'i>, ParseIntError, &'i str), RegisterUnknown(Src<'i>), CallWithoutLibName(Src<'i>), CallWithoutRoutineName(Src<'i>), OperandUnknown(Src<'i>, &'i str), LiteralNoData(Src<'i>), LiteralWrongDec(Src<'i>, &'i str, ParseIntError), LiteralWrongHex(Src<'i>, &'i str, Error), LiteralWrongOct(Src<'i>, &'i str, ParseIntError), LiteralWrongBin(Src<'i>, &'i str, ParseIntError), FloatNoWhole(Src<'i>), FloatNoFraction(Src<'i>), FloatWholeNotNumber(Src<'i>, ParseIntError), FloatFractionNotNumber(Src<'i>, ParseIntError), FloatExponentialNotNumber(Src<'i>, ParseIntError), LiteralUnknown(Src<'i>, Rule), ConstNoName(Src<'i>), ConstNoValue(Src<'i>), VarNoName(Src<'i>), VarNoType(Src<'i>), VarNoDescription(Src<'i>), VarWrongDescription(Src<'i>), VarTypeUnknown(String, Src<'i>), ProgramAbsent,
Variants
unknown program segment {0:?}
Tuple Fields of UnknownSegment
0: Rule
library statement {0:#}
has no detectable name
{0}
Tuple Fields of LibNoName
0: Src<'i>
library statement {0:#}
has no detectable lib id
{0}
Tuple Fields of LibNoId
0: Src<'i>
routine {0:#}
has no detectable name
{0}
Tuple Fields of RoutineNoName
0: Src<'i>
routine {0:#}
does not start with neither .MAIN or .ROUTINE
{0}
Tuple Fields of RoutineUnrecognized
0: Src<'i>
label in {0:#}
is not followed by an instruction
{0}
Tuple Fields of StatementNoInstruction
0: Src<'i>
mnemonic is followed by non-flag rules {0}
Tuple Fields of StatementNoFlag
0: Src<'i>
operator {0:#}
is not composed of mnemonic and flags
{0}
Tuple Fields of OperatorMiscomposition
0: Src<'i>
flag without flag value {0}
Tuple Fields of FlagWithoutValue
0: Src<'i>
register operand contains no register type {0}
Tuple Fields of RegisterNoType
0: Src<'i>
register operand does not specify register name {0}
Tuple Fields of RegisterNoName
0: Src<'i>
register name must be encoded as a decimal number {0} details: {1}
Tuple Fields of RegisterNameNonDecimal
0: Src<'i>
1: ParseIntError
register operand does not specify register index {0}
Tuple Fields of RegisterNoIndex
0: Src<'i>
register index {2} is not a decimal number {0} details: {1}
Tuple Fields of RegisterIndexNonDecimal
unknown register type {0}
Tuple Fields of RegisterUnknown
0: Src<'i>
call statement without library name {0}
Tuple Fields of CallWithoutLibName
0: Src<'i>
call statement without routine name {0}
Tuple Fields of CallWithoutRoutineName
0: Src<'i>
unknown operand format {1}
inside the statement {0:#}
{0}
literal contains no data {0}
Tuple Fields of LiteralNoData
0: Src<'i>
incorrect decimal literal {1}
{0}
details: {2}
Tuple Fields of LiteralWrongDec
incorrect hex literal {1}
{0}
details: {2}
incorrect oct literal {1}
{0}
details: {2}
Tuple Fields of LiteralWrongOct
incorrect bin literal {1}
{0}
details: {2}
Tuple Fields of LiteralWrongBin
float literal contains no whole mantissa part {0}
Tuple Fields of FloatNoWhole
0: Src<'i>
float literal contains no fractional mantissa part {0}
Tuple Fields of FloatNoFraction
0: Src<'i>
float literal mantissa whole part is not an integer {0} details: {1}
Tuple Fields of FloatWholeNotNumber
0: Src<'i>
1: ParseIntError
float literal mantissa fraction part is not an integer {0} details: {1}
Tuple Fields of FloatFractionNotNumber
0: Src<'i>
1: ParseIntError
float literal exponential part is not an integer {0} details: {1}
Tuple Fields of FloatExponentialNotNumber
0: Src<'i>
1: ParseIntError
unknown type of literal {1:?}
{0}
constant statement has no name {0}
Tuple Fields of ConstNoName
0: Src<'i>
constant statement has no value {0}
Tuple Fields of ConstNoValue
0: Src<'i>
input variable has no name {0}
Tuple Fields of VarNoName
0: Src<'i>
input variable has no type {0}
Tuple Fields of VarNoType
0: Src<'i>
input variable has no description {0}
Tuple Fields of VarNoDescription
0: Src<'i>
input variable description is not a string literal {0}
Tuple Fields of VarWrongDescription
0: Src<'i>
unknown variable type {0}
{1}
unable to detect program code
Implementations
Trait Implementations
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl<'i> RefUnwindSafe for LexerError<'i>
impl<'i> Send for LexerError<'i>
impl<'i> Sync for LexerError<'i>
impl<'i> Unpin for LexerError<'i>
impl<'i> UnwindSafe for LexerError<'i>
Blanket Implementations
Mutably borrows from an owned value. Read more