Commit 7fa967fd authored by Dylan Trotter's avatar Dylan Trotter

Add SyntaxError type.

parent 4dc8bffa
......@@ -135,6 +135,7 @@ var builtinTypes = map[*Type]*builtinTypeInfo{
StopIterationType: {global: true},
StrType: {init: initStrType, global: true},
superType: {init: initSuperType, global: true},
SyntaxErrorType: {global: true},
SyntaxWarningType: {global: true},
SystemErrorType: {global: true},
SystemExitType: {global: true, init: initSystemExitType},
......
......@@ -65,6 +65,8 @@ var (
StandardErrorType = newSimpleType("StandardError", ExceptionType)
// StopIterationType corresponds to the Python type 'StopIteration'.
StopIterationType = newSimpleType("StopIteration", ExceptionType)
// SyntaxErrorType corresponds to the Python type 'SyntaxError'.
SyntaxErrorType = newSimpleType("SyntaxError", StandardErrorType)
// SyntaxWarningType corresponds to the Python type 'SyntaxWarning'.
SyntaxWarningType = newSimpleType("SyntaxWarning", WarningType)
// SystemErrorType corresponds to the Python type 'SystemError'.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment