Skip to content

selfhost: port Field DSL lexical core to Flow - #707

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

godofecht merged 2 commits into
mainfrom
selfhost/port-field-dsl-core

Conversation

@godofecht

Copy link
Copy Markdown
Contributor

Ports a deterministic slice of src/flow/field_dsl.py into compiler/src/field_dsl_core.flow.

The Flow module handles Field DSL line classification, f64[N] extent extraction, the Stage-1 on Line domain check, and the size > 1 rule using simple scans rather than Python regex.

The host boundary remains intentional: full field/boundary parsing, diagnostics, helper generation, import injection, and source rewriting remain in Python for now.

Adds tests/lang/test_field_dsl_core.flow covering field/boundary/evolves recognition, extent parsing, malformed extents, domain validation, and the Stage-1 size constraint.

@godofecht
godofecht marked this pull request as ready for review August 22, 2026 07:08
@godofecht
godofecht merged commit 05fe463 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