Skip to content

Reusable LSL type semantics#164

Open
tapple wants to merge 20 commits into
secondlife:mainfrom
tapple:lsl-type-semantics
Open

Reusable LSL type semantics#164
tapple wants to merge 20 commits into
secondlife:mainfrom
tapple:lsl-type-semantics

Conversation

@tapple

@tapple tapple commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

lsl_definitions.yaml has -semantics fields that tightly associate with the type field. This PR combines them into a shared data structure. This merges how rulesets and functions were handling type semantics into one reusable data structure.

I also verified that slua's gen_primparams_methods.py requires no code changes and generates an identical llprim_set_primitive_params.inl despite the type class changing from BuilderParamType to LSLTypeSemantics.

I expect the rulesets code change is the most contentious part of this PR; it is isolated to a single commit just in case: 1a42af5

@Suzanna-Linn

Copy link
Copy Markdown
Contributor

It looks very well.

@tapple tapple marked this pull request as ready for review June 27, 2026 16:53
Comment thread lsl_definitions/lsl.py
Comment on lines +252 to +254
ENUM = "enum", LSLType.INTEGER, "number"
PARAM = "param", LSLType.LIST, "{number}"
PARAM_GET = "param-get", LSLType.LIST, "{number}"

@tapple tapple Jun 27, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@tapple tapple Jun 27, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This and #113 have many conflicts. It would be slightly easier for me if #113 was merged first, due to this PR having no generated file changes, while #113 does. But, I can handle either order

@tapple tapple force-pushed the lsl-type-semantics branch from a5cfc53 to a9cb385 Compare July 2, 2026 21:51
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