Skip to content

selfhost: port Physics DSL parser primitives to Flow - #710

Merged
godofecht merged 3 commits into
mainfrom
selfhost/port-physics-dsl-core
Aug 22, 2026
Merged

godofecht merged 3 commits into
mainfrom
selfhost/port-physics-dsl-core

Conversation

@godofecht

Copy link
Copy Markdown
Contributor

Continues #682 by moving deterministic Physics DSL primitives out of src/flow/physics_dsl.py into native Flow.

This first slice ports line classification for world/entity/const/rule/constraint/interact, simplified entity-field syntax validation, Vec2 type recognition, and the exact shipped SoA slot/offset arithmetic used by the Python compiler.

The regex/AST expansion and generated-code assembly remain in Python for now; this PR intentionally moves only logic that is independent of the production Python object graph.

Adds tests/lang/test_physics_dsl_port.flow with direct native coverage.

Related: #674 #682

chore: sync overload self-hosting into Physics DSL branch
@godofecht
godofecht marked this pull request as ready for review August 22, 2026 13:34
@godofecht
godofecht merged commit 3f81844 into main Aug 22, 2026
22 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.

1 participant