Skip to content

Commit

Permalink
Error out on unimplemented directive.
Browse files Browse the repository at this point in the history
  • Loading branch information
dillof committed Aug 10, 2024
1 parent fd42245 commit 0373b85
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Assembler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,7 @@ void Assembler::parse_string_encoding() {
auto name = tokenizer.expect(Token::NAME, TokenGroup::newline);
if (tokenizer.peek().is_end_of_line()) {
// TODO: set current string encoding
throw ParseException(name, ".string_encoding is not implemented yet");
}
else if (!parsing_target) {
throw ParseException(tokenizer.current_location(), "expected newline");
Expand Down

0 comments on commit 0373b85

Please sign in to comment.