Skip to content

AddressingModeMatcher

class AddressingModeMatcher

Determines which addressing modes match a given line in the source code.

DEFINITION
class AddressingModeMatcher;

method add_notation

DEFINITION
void  add_notation ( Symbol  addressing_mode,
size_t  notation_index,
const AddressingMode::Notation & notation,
const std::unordered_map< Symbol, std::unique_ptr< AddressingMode::Argument > > & arguments );
PARAMETERDESCRIPTION
addressing_mode
notation_index
notation
arguments

method matchconst

DEFINITION
std::unordered_set< AddressingModeMatcherResult >  match ( const std::vector< std::shared_ptr< Node > > & nodes ) const;
PARAMETERDESCRIPTION
nodes
RETURNSDESCRIPTION
std::unordered_set< AddressingModeMatcherResult >

class AddressingModeMatcherElement

DEFINITION
class AddressingModeMatcherElement;

enum Type

DEFINITION
enum Type;
VALUEDESCRIPTION
PUNCTUATION
KEYWORD
INTEGER

constructor AddressingModeMatcherElement

DEFINITION
AddressingModeMatcherElement ( );

constructor AddressingModeMatcherElement

DEFINITION
AddressingModeMatcherElement ( Node * node );
PARAMETERDESCRIPTION
node

constructor AddressingModeMatcherElement

DEFINITION
AddressingModeMatcherElement ( Type  type,
Symbol  symbol );
PARAMETERDESCRIPTION
type
symbol

method elements_forstatic

DEFINITION
static std::vector< AddressingModeMatcherElement >  elements_for ( const AddressingMode::Notation::Element & element,
const std::unordered_map< Symbol, std::unique_ptr< AddressingMode::Argument > > & arguments );
PARAMETERDESCRIPTION
element
arguments
RETURNSDESCRIPTION
std::vector< AddressingModeMatcherElement >

method operator==const

DEFINITION
bool  operator== ( const AddressingModeMatcherElement & other ) const;
PARAMETERDESCRIPTION
other
RETURNSDESCRIPTION
bool

member symbol

DEFINITION
Symbol  symbol;

member type

DEFINITION
Type  type;

class AddressingModeMatcherResult

DEFINITION
class AddressingModeMatcherResult;

constructor AddressingModeMatcherResult

DEFINITION
AddressingModeMatcherResult ( Symbol  addressing_mode,
size_t  notation_index );
PARAMETERDESCRIPTION
addressing_mode
notation_index

method operator==const

DEFINITION
bool  operator== ( const AddressingModeMatcherResult & other ) const;
PARAMETERDESCRIPTION
other
RETURNSDESCRIPTION
bool

member addressing_mode

DEFINITION
Symbol  addressing_mode;

member notation_index

DEFINITION
size_t  notation_index;

class hash< AddressingModeMatcherElement >

DEFINITION
class hash< AddressingModeMatcherElement >;

method operator()const

DEFINITION
std::size_t  operator() ( AddressingModeMatcherElement const & element ) const;
PARAMETERDESCRIPTION
element
RETURNSDESCRIPTION
std::size_t

class hash< AddressingModeMatcherResult >

DEFINITION
class hash< AddressingModeMatcherResult >;

method operator()const

DEFINITION
std::size_t  operator() ( AddressingModeMatcherResult const & result ) const;
PARAMETERDESCRIPTION
result
RETURNSDESCRIPTION
std::size_t