Skip to content

Allow rulesets on legacy functions#177

Merged
Rider-Linden merged 9 commits into
mainfrom
rider/ruleset_adjustments
Jul 13, 2026
Merged

Allow rulesets on legacy functions#177
Rider-Linden merged 9 commits into
mainfrom
rider/ruleset_adjustments

Conversation

@Rider-Linden

@Rider-Linden Rider-Linden commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

Allows the ruleset tables to be use in the legacy functions, and removes llhttp:request

Issue #175

related PRs

secondlife/slua#87
https://github.com/secondlife/server/pull/2574

@tapple tapple left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The generated files look right. I can't really check anything else. Approved

Comment thread lsl_definitions/lsl.py
bool_semantics: bool
"""Represents a boolean"""
ruleset: str | None
"""Name of a builder-ruleset for dict-to-list coercion"""

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nice. I'll need to add this to the type-semantics dict in #164

Comment thread generated/secondlife_selene.yml Outdated
args:
- type: string
- type: table
- type: any

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

in the selene_type function:

if type_str in type_map:
return type_map[type_str]
if type_str in type_aliases:
return type_aliases[type_str].selene_type
if type_str.startswith("{") and type_str.endswith("}"):

add a rule

        if type_str.startswith("list | "):
            return "table"

so this stays a table.

Maybe I should move some of that selene logic to LSLTypeSemantics in #164

@HaroldCindy HaroldCindy left a comment

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.

Maybe verb-ify llprim.particleSystem() -> llprim.setParticleSystem()? Other than that lgtm.

@Rider-Linden Rider-Linden merged commit 48ad8ad into main Jul 13, 2026
5 checks passed
@Rider-Linden Rider-Linden deleted the rider/ruleset_adjustments branch July 13, 2026 20:04
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 13, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants