Kipper-Lang / Kipper

The Kipper programming language for Browsers and Node.js 🦊✨ Made at HTL Leonding & JKU Linz
https://kipper-lang.org
GNU General Public License v3.0
26 stars 4 forks source link

Implemented Lambda Expressions #650

Closed lorenzholzbauer closed 2 months ago

lorenzholzbauer commented 2 months ago

What type of change does this PR perform?

Summary

This PR introduces the implementation of lambda expressions in the JavaScriptTargetCodeGenerator class. It enables the translation of lambda expressions from Kipper to JS or TS.

Closes #572

Detailed Changelog

Added

Does this PR create new warnings?

None.

Linked issues or PRs

codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 89.88764% with 9 lines in your changes missing coverage. Please review.

Project coverage is 83.78%. Comparing base (7b38fe2) to head (82d9b6e).

Files Patch % Lines
...expressions/lambda-expression/lambda-expression.ts 89.74% 3 Missing and 1 partial :warning:
kipper/core/src/compiler/ast/ast-generator.ts 82.35% 0 Missing and 3 partials :warning:
kipper/target-js/src/code-generator.ts 85.71% 1 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## dev-next #650 +/- ## ============================================ + Coverage 83.66% 83.78% +0.11% ============================================ Files 219 222 +3 Lines 3850 3909 +59 Branches 428 432 +4 ============================================ + Hits 3221 3275 +54 - Misses 447 451 +4 - Partials 182 183 +1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.