class AVR::OpcodeDecoder::OperandParser
Constants
- ProcType
Attributes
parse_proc[R]
pattern[R]
Public Class Methods
new(pattern, parse_proc)
click to toggle source
# File lib/avr/opcode_decoder.rb, line 101 def initialize(pattern, parse_proc) @pattern = T.let(pattern.gsub(/[^01a-zA-Z_]/, ''), String) @parse_proc = T.let(parse_proc, OperandParser::ProcType) end
Public Instance Methods
parse(cpu, operands)
click to toggle source
# File lib/avr/opcode_decoder.rb, line 107 def parse(cpu, operands) parse_proc.call(cpu, operands) end