Implement function-level generics in parser/AST#81
Closed
LqauzDev wants to merge 7 commits intoOttrlang:mainfrom
Closed
Implement function-level generics in parser/AST#81LqauzDev wants to merge 7 commits intoOttrlang:mainfrom
LqauzDev wants to merge 7 commits intoOttrlang:mainfrom
Conversation
…er and Maintainers pages
This commit introduces support for PowerPC (32/64-bit) architecture in the BloodHorn bootloader. Key changes include: - Added PowerPC CPU detection using PVR (Processor Version Register) - Implemented early hardware initialization for PPC440, PPC405, and PPC460 platforms - Added UART console support for early debugging - Integrated PowerPC-specific initialization into the boot process - Maintained compatibility with existing x86/ARM boot paths The implementation provides: - Platform detection and validation - Basic hardware initialization - Console output via UART - Memory management setup - Exception handling framework This enables BloodHorn to run on PowerPC-based systems while preserving all existing functionality for other architectures.
Collaborator
|
thank you so much just make sure windows cl works! |
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
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.
Summary
This adds parsing and AST support for function generics (fn name<T, U>(...)), includes a small runnable example, and updates docs to present generics as a shipped language feature. It’s the parser/AST and docs half of the work; typechecking and codegen follow-ups are tracked separately.
Files changed
nodes.rs
grammar.rs
examples/generics.ot
TUTORIALS.md
EXAMPLES.md
FFI_GUIDE.md
ROADMAP.md
LANGUAGE_SPEC.md
Parser accepts optional <T, U> generic parameter lists on fn declarations.
AST node carries the generic parameter names.
Example examples/generics.ot demonstrates struct and function generics.
Docs updated to describe generics as available and to explain FFI behavior for generic instantiations.
Why
Users can now write generic functions in source and find accurate examples and docs in-tree. This is necessary before wiring up typechecker inference and codegen for generics.
Notes and constraints
Runtime and ABI unchanged. This PR is syntactic + docs.
Typechecker inference, bounds, and monomorphization are follow-up work.
If you prefer to gate the feature behind a feature flag, we can add that in a follow-up.
was tested on WSL and Windows.