reference counting

This commit is contained in:
nora 2023-08-02 23:19:10 +02:00
parent d9ab81bed1
commit 9ece18a48a
18 changed files with 477 additions and 159 deletions

View file

@ -206,7 +206,7 @@ export function tokenize(file: LoadedFile): Token[] {
default:
throw new CompilerError(
`invalid escape character: ${input[i]}`,
new Span(span.end - 1, span.end, file)
new Span(span.end - 1, span.end, file),
);
}
continue;
@ -231,7 +231,7 @@ export function tokenize(file: LoadedFile): Token[] {
const int = parseInt(digit, 10);
if (Number.isNaN(int)) {
throw new Error(
`\`${digit}\` was tokenized to a number even though it is not`
`\`${digit}\` was tokenized to a number even though it is not`,
);
}