Skip to content
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

Implement the CSET machine, along with macros #1728

Open
wants to merge 30 commits into
base: master
Choose a base branch
from

Conversation

s-kybound
Copy link
Member

@s-kybound s-kybound commented Nov 3, 2024

Description

This PR introduces the T component to the CSE machine, which tracks a set of transformers with which we can use to expand macros into simpler forms. This enables the Scheme language to use macros in Source Academy

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Code quality improvements

Checklist

  • I have tested this code
  • I have updated the documentation

@coveralls
Copy link

coveralls commented Nov 3, 2024

Pull Request Test Coverage Report for Build 11929582114

Details

  • 491 of 596 (82.38%) changed or added relevant lines in 11 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage increased (+0.04%) to 81.654%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/createContext.ts 5 6 83.33%
src/cse-machine/utils.ts 31 32 96.88%
src/cse-machine/continuations.ts 10 13 76.92%
src/cse-machine/interpreter.ts 47 50 94.0%
src/cse-machine/macro-utils.ts 29 36 80.56%
src/cse-machine/scheme-macros.ts 189 199 94.97%
src/cse-machine/patterns.ts 166 246 67.48%
Files with Coverage Reduction New Missed Lines %
src/cse-machine/utils.ts 1 91.65%
Totals Coverage Status
Change from base Build 11907028652: 0.04%
Covered Lines: 11474
Relevant Lines: 13663

💛 - Coveralls

@s-kybound s-kybound marked this pull request as ready for review November 13, 2024 10:10
@s-kybound s-kybound changed the title Implement the CSEP machine, along with macros Implement the CSET machine, along with macros Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants