-
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
Added support for compiler behaviour modifying pragma comments #595
Merged
Luna-Klatzer
merged 10 commits into
dev-next
from
480-feature-add-support-for-compiler-behaviour-modifying-pragma-comments
Jul 4, 2024
Merged
Added support for compiler behaviour modifying pragma comments #595
Luna-Klatzer
merged 10 commits into
dev-next
from
480-feature-add-support-for-compiler-behaviour-modifying-pragma-comments
Jul 4, 2024
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
…s in parse-rule-kind-mapping.ts
…hanged type of channels to `Array<Token>`
5 tasks
size-limit report 📦
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev-next #595 +/- ##
============================================
+ Coverage 83.35% 83.66% +0.31%
============================================
Files 217 219 +2
Lines 3820 3850 +30
Branches 426 428 +2
============================================
+ Hits 3184 3221 +37
+ Misses 453 447 -6
+ Partials 183 182 -1 ☔ View full report in Codecov by Sentry. |
Luna-Klatzer
changed the title
480 feature add support for compiler behaviour modifying pragma comments
Added support for compiler behaviour modifying pragma comments
Jul 4, 2024
Luna-Klatzer
deleted the
480-feature-add-support-for-compiler-behaviour-modifying-pragma-comments
branch
July 4, 2024 22:10
This was referenced Jul 4, 2024
Merged
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Added ability to process FileScoped Pragmas.
Closes #480
Detailed Changelog
Added
DEFAULT_TOKEN_CHANNEL
, which is the channel id of the default channel storing all the parser-relevant tokens thatthe Lexer lexed.
HIDDEN
, which is the channel id of the channel storing all whitespaces and newlines that the Lexer lexed.COMMENT
, which is the channel id of the channel storing all the comments that the Lexer lexed.PRAGMA
, which is the channel id of the channel storing all pragma comments that the Lexer lexed.LexerParserData.channels
, which stores the channels generated by the Lexer.PragmaProcessor
which handles the processing of all possible Pragmas.PragmaProcessor.processSingleLine()
, which changes the compiler options according to the pragmas found in the file.PragmaProcessor.processSingleLine()
, which changes the compiler options according to the pragmas found in the file.Changed
compiler/parser
tolexer-parser
.kipper/core/compiler/parser/parser-ast-mapping.ts
toparse-rule-kind-mappings.ts
.KipperParseStream
toKipperFileStream
including its file tofile-stream.ts
.KipperParseFile
toKipperInputFile
including its file toinput-file.ts
.ParseData
toLexerParserData
.FStringPrimaryExpressionSemantics.items
toatoms
.LexerParserData.parseStream
tofileStream
.Does this PR create new warnings?
None.
Linked issues or PRs