-
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.7.0-rc.0 #126
Merged
Merged
v0.7.0-rc.0 #126
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
…ssignment expression in Kipper.g4
…lasses-kippersemanticchecker-and-kippertypechecker-as-a-replacement-for-compileassert' into 124-feature-implement-seperate-classes-kippersemanticchecker-and-kippertypechecker-as-a-replacement-for-compileassert
…ate-classes-kippersemanticchecker-and-kippertypechecker-as-a-replacement-for-compileassert Implemented `KipperSemanticChecker` and `KipperTypeChecker`
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
Merges new release candidate v0.7.0-rc.0 into main.
Changes
KipperSemanticChecker
andKipperTypeChecker
.Does this PR create new warnings?
No.
Changelog
Added
VariableDeclarationSemantics.value
, which represents the expression that was assigned in the definition.This field is
undefined
ifVariableDeclarationSemantics.isDefined
isfalse
.CompileAssert.validAssignment()
, which asserts that an assignment expression is valid.abstract CompilableParseToken.semanticTypeChecking()
, which must be implemented by every child and should serveas a separate semantic type checking step outside of
primarySemanticAnalysis()
.KipperAsserter
, which is an abstract base class that represents a class that can be used to assert certain truthsand handle/throw compile errors.
KipperTypeChecker
andKipperSemanticChecker
, which perform specialised semantic checking and verify logicalintegrity and cohesion. These two classes replace
CompileAssert
.Changed
compiler
folder structure of the core package:compiler/parser
from now on contains everything parser and lexer-related.compiler/parser/antlr
from now on contains the Antlr4 generated parser and lexer files.compiler/semantics
from now on contains everything semantics related, such as the file listener, the Kippertokens, logical constants etc.
compiler/translation
from now on contains the classes and tools used for translating Kipper code into anotherlanguage.
compiler/targets
from now on contains the existing targets for Kipper, such astypescript
.compiler/lib
from now on contains the standard library and built-ins for Kipper.compiler/lib/import
from now on contains the default importable libraries for Kipper.InvalidTypeError
toTypeError
.KipperProgramContext.addNewGlobalScopeEntry
toaddGlobalVariable()
.CompoundStatement.addNewLocalVariable
toaddLocalVariable()
.Removed
Linked other issues or PRs
KipperSemanticChecker
andKipperTypeChecker
#125KipperSemanticChecker
andKipperTypeChecker
as a replacement forCompileAssert
#124@kipper/core
package #123