feat: 增加了analyzer, compiler不再分析并且报错, 只生产 bytecode, analyzer作为前端结束最后一道防线检查代码,同时引入一个简单的LSP
This commit is contained in:
+3
-2
@@ -42,10 +42,11 @@ namespace Fig
|
||||
ExpectedExpression,
|
||||
SyntaxError,
|
||||
|
||||
// compiler errors
|
||||
// analyzer errors
|
||||
RedeclarationError,
|
||||
UseUndeclaredIdentifier,
|
||||
NotAnLvalue
|
||||
NotAnLvalue,
|
||||
TypeError,
|
||||
};
|
||||
|
||||
const char *ErrorTypeToString(ErrorType type);
|
||||
|
||||
Reference in New Issue
Block a user