🐛 fix typo oprand => operand

This commit is contained in:
ValKmjolnir 2024-06-05 22:59:41 +08:00
parent 1436693cd6
commit 958f669348
4 changed files with 5 additions and 5 deletions

View File

@ -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';

View File

@ -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;}
};
}

View File

@ -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:

View File

@ -128,6 +128,6 @@ public:
std::ostream& operator<<(std::ostream&, const codestream&);
extern const char* oprand_name_table[];
extern const char* operand_name_table[];
}