momiji

m68k emulator infrastructure

About Source code

Table of contents

momiji::ParserError

Defined in header <momiji/Parser.h>

struct ParserError

A struct representing a parsing error.

Typedefs

Type Definition Notes
ErrorType
std::variant<momiji::errors::UnknownError,
             momiji::errors::InvalidRegisterNumber,
             momiji::errors::NoInstructionFound,
             momiji::errors::NoLabelFound,
             momiji::errors::OperandTypeMismatch,
             momiji::errors::DataTypeMismatch,
             momiji::errors::UnexpectedCharacter,
             momiji::errors::MissingCharacter,
             momiji::errors::UnknownOperand,
             momiji::errors::UnexpectedSectionContent>;

A variant describing the possible types of errors.

Member fields

Field Type Notes Default value
line

std::int64_t

The line where the error occured.

0

errorType

ErrorType

The type of the error.

momiji::errors::UnknownError

codeStr

std::string

The string of the line where the error occured.