Instead, there are 3 types of error messages that are thrown:
Unknown opcode x0
Unable to tokenize the rest of the input: ...
Invalid instruction format for ADDI. Expected GeneralRegisterAndInmediate format, got Noop format or similar
Ideally, it should be only one error message, clearly indicating that the immediate value has a wrong format. Arguably, the worst one is the invalid instruction format, that unfortunately seems very common.
Also, this issue is intended for collecting feedbacks of other unclear messages and possible solutions.
It would be expected that the following codes, which have an erroneously written immediate value, have all the same type of error message.
Instead, there are 3 types of error messages that are thrown:
Ideally, it should be only one error message, clearly indicating that the immediate value has a wrong format. Arguably, the worst one is the invalid instruction format, that unfortunately seems very common.
Also, this issue is intended for collecting feedbacks of other unclear messages and possible solutions.