Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor parser #23

Merged
merged 12 commits into from Mar 21, 2024
3 changes: 0 additions & 3 deletions slox/ParseError.swift
Expand Up @@ -34,7 +34,6 @@ enum ParseError: CustomStringConvertible, Equatable, LocalizedError {
case missingDotAfterSuper(Token)
case expectedSuperclassMethodName(Token)
case missingCloseBracketForSubscriptAccess(Token)
case unsupportedJumpStatement(Token)

var description: String {
switch self {
Expand Down Expand Up @@ -90,8 +89,6 @@ enum ParseError: CustomStringConvertible, Equatable, LocalizedError {
return "[Line \(token.line)] Error: expected superclass method name"
case .missingCloseBracketForSubscriptAccess(let token):
return "[Line \(token.line)] Error: expected closing bracket after subscript index"
case .unsupportedJumpStatement(let token):
return "[Line \(token.line)] Error: unsupported jump statement"
}
}
}