aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/azalea
AgeCommit message (Collapse)Author
2026-11-11internal/rosa/azalea: include position in token errorOphestra
Position information was not fully populated when this was first implemented. The lack of any position information keeps the user guessing. This change includes position information in the error and formats it as part of the error message. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-30internal/rosa/azalea: record position in func exprOphestra
This is included in the evaluation error message. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-30internal/rosa/azalea: use expr text for errorsOphestra
This is significantly more readable and helpful than simply using the %#v verb. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-30internal/rosa/azalea: re-construct expr textOphestra
This significantly helps with debugging: the %#v text is incredibly unhelpful to read, and just ends up filling the terminal with useless information. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-28internal/rosa/azalea: treat keys as standard valueOphestra
This allows expressions like string concatenation for the KV key part. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-23internal/rosa: cross-only native toolsOphestra
For situations where a package uses a just-built program as part of its own build process. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-22internal/rosa: initial cross-compilation supportOphestra
This successfully cross-compiles the toolchain. More work is needed to support cross-compilation on all native helpers and existing packages. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-09-05internal/rosa: separate native tools from librariesOphestra
This removes most redundant runtime arguments and is useful for cross-compilation. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-09-05internal/rosa/azalea: handle nil specialsOphestra
Specials are hacked on, so they do not support regular nil values. This change handles the nil identifier as a special case. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-08-10internal/rosa/azalea: implement nil identifierOphestra
This also implements a nil-capable string type. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-06-08all: apply modernisersOphestra
Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-05-24internal/rosa/azalea: replace binding tokenOphestra
This replaces the '*' placeholder with a less confusing '#'. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-05-21internal/rosa/azalea: integer arraysOphestra
This is useful for some helper functions. Performance is unaffected. Before: BenchmarkStage3-128 8308 1960687 ns/op 1023794 B/op 14755 allocs/op BenchmarkAll-128 3331 5518571 ns/op 2902320 B/op 37993 allocs/op After: BenchmarkStage3-128 8330 1946273 ns/op 1023046 B/op 14750 allocs/op BenchmarkAll-128 3296 5585805 ns/op 2901746 B/op 37991 allocs/op Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-05-21internal/rosa: extra inputs in alternative pathOphestra
This works around particularly unwieldy build systems. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-05-21internal/rosa: use string pair for filesOphestra
This is a much cleaner representation than the separator syntax. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-05-19internal/rosa/azalea: pass through source identOphestra
For source handle special case. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-05-18internal/rosa: initial azalea bindingsOphestra
Supported fields are still rather minimal, but evaluation works, and resulting artifacts cure correctly. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-05-17internal/rosa/azalea: package special caseOphestra
This is more efficient for the inputs array and packages in general. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-05-17internal/rosa/azalea: evaluatorOphestra
Performance is sufficient for the use case, despite the fact that I could not even think of a lower-effort way to do this: BenchmarkParse-128 55100 21494 ns/op BenchmarkEvaluate-128 131670 9248 ns/op Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-05-16internal/rosa/azalea: ast and parserOphestra
This syntax is not final, but acts as a stopgap solution and a proof of concept. Signed-off-by: Ophestra <cat@gensokyo.uk>