-
Notifications
You must be signed in to change notification settings - Fork 5
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
v0.10.0-alpha.1 #267
Merged
Merged
v0.10.0-alpha.1 #267
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…LI option `log-timestamp`
…very-for-the-kipper-compiler' into 198-feature-implement-error-recovery-for-the-kipper-compiler
…as multiple bugs)
…ode` and its subclasses
…very-for-the-kipper-compiler' into 198-feature-implement-error-recovery-for-the-kipper-compiler # Conflicts: # CHANGELOG.md
…very-for-the-kipper-compiler' into 198-feature-implement-error-recovery-for-the-kipper-compiler
…very-for-the-kipper-compiler' into 198-feature-implement-error-recovery-for-the-kipper-compiler # Conflicts: # CHANGELOG.md
…a and type data to ensure safe processing
…-recovery-for-the-kipper-compiler Implemented error recovery for the Kipper compiler
Luna-Klatzer
added
release
New release of the Kipper module.
skip changelog
Do not include in the changelog when a new release is drafted
labels
Aug 2, 2022
Codecov Report
@@ Coverage Diff @@
## main #267 +/- ##
==========================================
+ Coverage 86.25% 86.40% +0.14%
==========================================
Files 55 55
Lines 3325 3442 +117
Branches 207 212 +5
==========================================
+ Hits 2868 2974 +106
- Misses 384 390 +6
- Partials 73 78 +5
Help us with your feedback. Take ten seconds to tell us how you rate us. |
size-limit report 📦
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
release
New release of the Kipper module.
skip changelog
Do not include in the changelog when a new release is drafted
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What type of change does this PR perform?
Summary
New development version
v0.10.0-alpha.1
, which implements a new type system and semantic analysis algorithm with a new error recovery system. This allows the compiler to recover from most errors and handle issues so that the compiler doesn't abort on the first error it encounters.Summary of Changes
CompilableASTNode
.TypeData
and generic argumentTypeSemantics
in all AST nodes. This new system migrates all type-related data from theprimarySemanticAnalysis()
tosemanticTypeChecking()
.CompileConfig
optionsrecover
andabortOnFirstError
.--log-timestamp
,--recover
and--abort-on-first-error
to commandscompile
andrun
.Does this PR create new warnings?
No.
Detailed Changelog
Added
TypeSemantics
toASTNode
, which defines the type data that the AST Node should evaluate during type checking.run
andcompile
:--log-timestamp
, which enables timestamps for the log messages.--recover
, which enables error recovery for the Kipper compiler.--abort-on-first-error
, which aborts the compilation on the first compiler error that is encountered.KipperWarning
, which is a subclass ofKipperError
that is used to indicate a warning.This replaces the use of
KipperError
for warnings.ASTNode.getTypeSemantics
, which returns the type semantics if they are defined, otherwise throws anUndefinedSemanticsError
.CompilableASTNode.semanticTypeChecking
, which performs type checking for the AST node and its children nodes. This is called in the functionRootASTNode.semanticAnalysis
afterCompilableASTNode.semanticAnalysis()
.CompilableASTNode.wrapUpSemanticAnalysis
, which performs wrap-up semantic analysis for the target of the AST node. This is called in the functionRootASTNode.semanticAnalysis
afterCompilableASTNode.semanticTypeChecking()
.TypeData
, which represents the type data of anASTNode
.NoTypeSemantics
, which hints that anASTNode
has no type semantic data.CompileConfig.recover
, which if set enables compiler error recovery.CompileConfig.abortOnFirstError
, which changes the compiler error handling behaviour and makes itabort on the first error encountered. This overwrites
recover
per default.ASTNode.typeSemantics
, which contains the type data for an ASTNode that was evaluated during type checking.ScopeFunctionDeclaration.typeData
, which returns the type data of the function AST node.ScopeVariableDeclaration.typeData
, which returns the type data of the variable AST node.Changed
UnableToDetermineMetadataError
toUndefinedSemanticsError
.Removed
KipperError.isWarning
, which has been replaced by the new classKipperWarning
.Linked other issues or PRs