-
Notifications
You must be signed in to change notification settings - Fork 1
Independent scheme #165
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
Open
TRK95
wants to merge
16
commits into
main
Choose a base branch
from
SRI-NA
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Independent scheme #165
Conversation
This file contains hidden or 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
- Add complete CSE machine implementation with SICP Chapter 1 support - Add Source Academy Conductor integration following py-slang pattern - Add complex numbers support (exceeds py-slang capabilities) - Add comprehensive test suite with 100% pass rate - Add UMD bundle build system for production deployment - Preserve original transpiler system unchanged
…function definition parsing
Pull Request Test Coverage Report for Build 16865846198Details
💛 - Coveralls |
…STORE_ENV instruction to properly restore environment after function calls - Fix function parameter binding in CSE machine - Compound functions now work correctly (functions using other functions) - Linear recursion and iteration working properly
…o handle (list) as function call instead of list literal - Fix car/cdr to work with both lists and pairs - Fix pair? to recognize lists as pairs - Fix list? to recognize empty list () as list - Add length function for lists and pairs - Fix quote syntax to parse 'a 'b 'c as symbols
…ct formatting standards - Fix CI pipeline formatting check
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.
This PR adds comprehensive Scheme language support to Source Academy, implementing a complete Scheme Chapter 1 interpreter with direct SCM AST parsing (bypassing JavaScript's ES AST) and full integration with the Source Academy conductor system.
Integration Details:
Feature Flag Configuration:
The Scheme language module is available at:
Key Features Implemented:
Core Language Features (Scheme Chapter 1):
Variable Definitions: (define x 10) and x → 10
Function Definitions: (define (add x y) (+ x y)) and (add 3 4) → 7
Lambda Expressions: (lambda (x y) (+ x y))
Conditional Statements: (if (> 5 3) "yes" "no") → "yes"
Basic Arithmetic: (+ 3 5), (- 10 3), (* 4 2), (/ 8 2)
Comparisons: (> 5 3), (< 3 5), (= 5 5), (>= 5 5), (<= 3 5)
Boolean Operations: (and #t #f), (or #t #f), (not #f)
Technical Implementation:
Architecture:
Independent Module: Self-contained implementation that can be loaded independently
Feature Flag Ready: Can be enabled/disabled via Source Academy's feature flag system
Extensible Design: Easy to add new Scheme features and chapters