Skip to content

Allows Python Function Registration - #18

Merged
kavigupta merged 12 commits into
mlb2251:mainfrom
meso03:py_registration
Feb 26, 2026
Merged

Allows Python Function Registration#18
kavigupta merged 12 commits into
mlb2251:mainfrom
meso03:py_registration

Conversation

@meso03

@meso03 meso03 commented Oct 6, 2025

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread src/domains/mod.rs Outdated
Comment thread src/domains/mod.rs
Comment thread src/domains/py.rs Outdated
Comment thread src/domains/py.rs Outdated
Comment thread src/domains/py.rs
Comment thread src/dsl.rs Outdated
Comment thread src/dsl.rs Outdated
Comment thread src/dsl.rs Outdated
Comment thread src/dsl.rs Outdated
/// - `lazy_args`: optional indices of lazy arguments; use None for strict
/// - `pyfunc`: owned Python callable captured into this production
#[cfg(feature = "python")]
pub fn add_python_primitive(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function should not exist directly, instead, have a function create_python_production or something in py.rs, and then call .add_entry(create_python_production(...)) where you would call this.

Comment thread src/domains/py.rs

/// by dreamegg::domain::Val so they don't appear here.
#[derive(Clone,Debug, PartialEq, Eq, Hash)]
pub enum PyVal {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could potentially just be PyAny

Comment thread src/domains/py.rs Outdated
Comment thread src/domains/py.rs
Comment thread src/domains/py.rs Outdated
Comment thread src/domains/py.rs Outdated
Comment thread src/domains/simple_python.rs
Comment thread src/dsl.rs Outdated
Comment thread src/lib.rs
@@ -1,6 +1,5 @@
#[macro_use]
mod macros;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check this out to main, to avoid a messy diff

@kavigupta
kavigupta dismissed their stale review February 26, 2026 20:34

changes made

@kavigupta
kavigupta merged commit 26fd0c4 into mlb2251:main Feb 26, 2026
4 checks passed
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