parser: Merge consecutive "Unexpected tokens" errors

Fixes #24
This commit is contained in:
James Westman 2021-12-16 23:18:31 -06:00
parent 5b76a3b8dd
commit 8e1a9f72dd
No known key found for this signature in database
GPG key ID: CE2DBA0ADB654EA6
5 changed files with 34 additions and 5 deletions

View file

@ -85,6 +85,11 @@ at {filename} line {line_num} column {col_num}:
print()
class UnexpectedTokenError(CompileError):
def __init__(self, start, end):
super().__init__("Unexpected tokens", start, end)
@dataclass
class CodeAction:
title: str