You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Migrate from old using_directives to Scala-rewritten directives-parser module (#4192)
* Migrate from old `using_directives` to Scala-rewritten `directives-parser` module
* Refactor tests
* Handle edge cases
* Include `directives-parser` module in `AGENTS.md`
|`options`|`BuildOptions`, `SharedOptions`, and all option types. |
69
+
|`directives-parser`| Pure Scala 3 parser for `//> using` directive syntax: comment extraction, lexing, and parsing into AST nodes. |
67
70
|`directives`| Using directive handlers — the bridge between `//> using` directives and `BuildOptions`. |
68
71
|`build-module` (aliased from `build` in mill) | The main build pipeline: preprocessing, compilation, post-processing. Most business logic lives here. |
69
72
|`cli`| Command definitions, argument parsing (CaseApp), the `ScalaCli` entry point. Packaged as the native image. |
@@ -106,9 +109,9 @@ Using directives are in-source configuration comments:
106
109
//>usingtest.deporg.scalameta::munit::1.1.1
107
110
```
108
111
109
-
Directives are parsed by `using_directives`, then `ExtractedDirectives` → `DirectivesPreprocessor` → `BuildOptions`/
110
-
`BuildRequirements`. **CLI options override directive values.** To add a new directive,
111
-
see [agentskills/adding-directives/](agentskills/adding-directives/SKILL.md).
112
+
Directives are parsed by the `directives-parser` module (`CommentExtractor` → `Lexer` → `Parser`), then
0 commit comments