Closed ByteWolf-dev closed 1 month ago
Path | Size | Loading time (3g) | Running time (snapdragon) | Total time |
---|---|---|---|---|
./kipper/web/kipper-standalone.min.js | 140.8 KB (+0.2% 🔺) | 2.9 s (+0.2% 🔺) | 3.5 s (+12.59% 🔺) | 6.3 s |
./kipper/web/kipper-standalone.js | 140.84 KB (+0.2% 🔺) | 2.9 s (+0.2% 🔺) | 3.2 s (+12.13% 🔺) | 6 s |
Attention: Patch coverage is 98.05825%
with 2 lines
in your changes missing coverage. Please review.
Project coverage is 83.66%. Comparing base (
94f91f9
) to head (fa3f1d1
).
Files | Patch % | Lines |
---|---|---|
kipper/cli/src/input/input-file.ts | 87.50% | 1 Missing :warning: |
kipper/core/src/compiler/pragma-processor.ts | 92.30% | 0 Missing and 1 partial :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
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 that the 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