mirror of
https://github.com/Noratrieb/riverdelta.git
synced 2026-01-15 17:05:03 +01:00
reference counting
This commit is contained in:
parent
d9ab81bed1
commit
9ece18a48a
18 changed files with 477 additions and 159 deletions
|
|
@ -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`,
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue