🐛 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) {
|
if (!rate) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
std::clog << " " << oprand_name_table[i.first] << " : ";
|
std::clog << " " << operand_name_table[i.first] << " : ";
|
||||||
std::clog << i.second << " (" << rate << "%)\n";
|
std::clog << i.second << " (" << rate << "%)\n";
|
||||||
}
|
}
|
||||||
std::clog << " total : " << total << '\n';
|
std::clog << " total : " << total << '\n';
|
||||||
|
|
|
@ -192,7 +192,7 @@ public:
|
||||||
filename(""), res(""),
|
filename(""), res(""),
|
||||||
invalid_char(0) {}
|
invalid_char(0) {}
|
||||||
const error& scan(const std::string&);
|
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 {
|
namespace nasal {
|
||||||
|
|
||||||
const char* oprand_name_table[] = {
|
const char* operand_name_table[] = {
|
||||||
"exit ",
|
"exit ",
|
||||||
"repl ",
|
"repl ",
|
||||||
"intl ",
|
"intl ",
|
||||||
|
@ -124,7 +124,7 @@ void codestream::dump(std::ostream& out) const {
|
||||||
}
|
}
|
||||||
|
|
||||||
// dump operand name
|
// dump operand name
|
||||||
out << " " << oprand_name_table[op] << " ";
|
out << " " << operand_name_table[op] << " ";
|
||||||
|
|
||||||
switch(op) {
|
switch(op) {
|
||||||
case op_addeq:
|
case op_addeq:
|
||||||
|
|
|
@ -128,6 +128,6 @@ public:
|
||||||
|
|
||||||
std::ostream& operator<<(std::ostream&, const codestream&);
|
std::ostream& operator<<(std::ostream&, const codestream&);
|
||||||
|
|
||||||
extern const char* oprand_name_table[];
|
extern const char* operand_name_table[];
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue