Add text-DSL parser with line-numbered errors

Two-pass-free line-based scanner. Each directive carries its source
line so downstream validation errors can be attributed correctly.
Parser checks syntax only — atlas/tile resolution and bounds checks
are deferred to the builder so each tier has one responsibility.
This commit is contained in:
Axel Meyer
2026-05-23 14:19:10 +02:00
parent a3ff2f5e6e
commit e96431b44f
5 changed files with 329 additions and 0 deletions

4
tests/fixtures/dsl/minimal.txt vendored Normal file
View File

@@ -0,0 +1,4 @@
size 4 4
atlas atlas_a
layer surface
set 0 0 atlas_a:grass