pkl / PR 1821

Add pkl:syntax stdlib module

apple/pkl#1821 openmixed

+3327/−126lines
42files
85comments
2026-08-12opened
-merged

What it touches

test: 20 main: 19 other: 2 build: 1

Modules: pkl-core (31), pkl-parser (6), pkl-formatter (3), stdlib (2)

Architectural impact (arcade-agent diff_impact)

11files mapped to the graph
322entities in those files
Core, Formatter, Parsercomponents
2818entities within 3 hops downstream

Most depended-upon changed entities

EntityDependents
org.pkl.core.runtime.VmUtils522
org.pkl.core.runtime.Identifier308
org.pkl.parser.syntax.generic.Node.Node214
org.pkl.formatter.Formatter.Formatter40
org.pkl.formatter.Builder.Builder16
org.pkl.formatter.Builder.nodes4

Computed against the current default branch, not the PR base commit; files renamed or deleted since then are unmatched. Downstream counts are a reverse-dependency closure to depth 3 and over-approximate real blast radius.

Build & CI relevance

Files

buildpkl-core/pkl-core.gradle.kts
mainpkl-core/src/main/java/org/pkl/core/runtime/Identifier.java
mainpkl-core/src/main/java/org/pkl/core/runtime/MirrorFactories.java
mainpkl-core/src/main/java/org/pkl/core/runtime/ModuleCache.java
mainpkl-core/src/main/java/org/pkl/core/runtime/ReflectModule.java
mainpkl-core/src/main/java/org/pkl/core/runtime/SyntaxModule.java
mainpkl-core/src/main/java/org/pkl/core/runtime/VmUtils.java
mainpkl-core/src/main/java/org/pkl/core/stdlib/syntax/FormattingRendererNodes.java
mainpkl-core/src/main/java/org/pkl/core/stdlib/syntax/GenericNodeNodes.java
mainpkl-core/src/main/java/org/pkl/core/stdlib/syntax/ParserNodes.java
mainpkl-core/src/main/java/org/pkl/core/stdlib/syntax/SyntaxNodes.java
mainpkl-core/src/main/java/org/pkl/core/stdlib/syntax/package-info.java
mainpkl-core/src/main/resources/org/pkl/core/errorMessages.properties
testpkl-core/src/test/files/LanguageSnippetTests/input-helper/syntax/spans/sample.pkl
testpkl-core/src/test/files/LanguageSnippetTests/input/errors/syntaxParseExpression.pkl
testpkl-core/src/test/files/LanguageSnippetTests/input/errors/syntaxParseModule.pkl
testpkl-core/src/test/files/LanguageSnippetTests/input/syntax/query.pkl
testpkl-core/src/test/files/LanguageSnippetTests/input/syntax/render.pkl
testpkl-core/src/test/files/LanguageSnippetTests/input/syntax/spans.pkl
testpkl-core/src/test/files/LanguageSnippetTests/input/syntax/transform.pkl
testpkl-core/src/test/files/LanguageSnippetTests/input/syntax/transformTree.pkl
testpkl-core/src/test/files/LanguageSnippetTests/input/syntax/traversal.pkl
testpkl-core/src/test/files/LanguageSnippetTests/output/errors/cannotFindStdLibModule.err
testpkl-core/src/test/files/LanguageSnippetTests/output/errors/syntaxParseExpression.err
testpkl-core/src/test/files/LanguageSnippetTests/output/errors/syntaxParseModule.err
testpkl-core/src/test/files/LanguageSnippetTests/output/syntax/query.pcf
testpkl-core/src/test/files/LanguageSnippetTests/output/syntax/render.pcf
testpkl-core/src/test/files/LanguageSnippetTests/output/syntax/spans.pcf
testpkl-core/src/test/files/LanguageSnippetTests/output/syntax/transform.pcf
testpkl-core/src/test/files/LanguageSnippetTests/output/syntax/transformTree.pcf
testpkl-core/src/test/files/LanguageSnippetTests/output/syntax/traversal.pcf
mainpkl-formatter/src/main/java/org/pkl/formatter/Builder.java
mainpkl-formatter/src/main/java/org/pkl/formatter/Formatter.java
testpkl-formatter/src/test/kotlin/org/pkl/formatter/FormatterTest.kt
mainpkl-parser/src/main/java/org/pkl/parser/GenericParser.java
mainpkl-parser/src/main/java/org/pkl/parser/GenericParserImpl.java
mainpkl-parser/src/main/java/org/pkl/parser/syntax/generic/FullSpan.java
mainpkl-parser/src/main/java/org/pkl/parser/syntax/generic/Node.java
mainpkl-parser/src/main/java/org/pkl/parser/syntax/generic/NodeType.java
testpkl-parser/src/test/kotlin/org/pkl/parser/GenericSexpRenderer.kt
otherstdlib/reflect.pkl
otherstdlib/syntax.pkl