🐛 fix typo oprand => operand
This commit is contained in:
parent
1436693cd6
commit
958f669348
|
@ -46,7 +46,7 @@ void operand_line_counter::dump_operand_count() const {
|
|||
if (!rate) {
|
||||
break;
|
||||
}
|
||||
std::clog << " " << oprand_name_table[i.first] << " : ";
|
||||
std::clog << " " << operand_name_table[i.first] << " : ";
|
||||
std::clog << i.second << " (" << rate << "%)\n";
|
||||
}
|
||||
std::clog << " total : " << total << '\n';
|
||||
|
|
|
@ -192,7 +192,7 @@ public:
|
|||
filename(""), res(""),
|
||||
invalid_char(0) {}
|
||||
const error& scan(const std::string&);
|
||||
const std::vector<token>& result() const {return toks;}
|
||||
const auto& result() const {return toks;}
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
namespace nasal {
|
||||
|
||||
const char* oprand_name_table[] = {
|
||||
const char* operand_name_table[] = {
|
||||
"exit ",
|
||||
"repl ",
|
||||
"intl ",
|
||||
|
@ -124,7 +124,7 @@ void codestream::dump(std::ostream& out) const {
|
|||
}
|
||||
|
||||
// dump operand name
|
||||
out << " " << oprand_name_table[op] << " ";
|
||||
out << " " << operand_name_table[op] << " ";
|
||||
|
||||
switch(op) {
|
||||
case op_addeq:
|
||||
|
|
|
@ -128,6 +128,6 @@ public:
|
|||
|
||||
std::ostream& operator<<(std::ostream&, const codestream&);
|
||||
|
||||
extern const char* oprand_name_table[];
|
||||
extern const char* operand_name_table[];
|
||||
|
||||
}
|
Loading…
Reference in New Issue