Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
75d540f
Add syntax package
stackoverflow Apr 9, 2026
1e29ca9
Add support for full round-trip of Pkl code
stackoverflow Apr 30, 2026
b196781
Add ast builders
stackoverflow May 18, 2026
dcf48d8
Fix build
stackoverflow May 27, 2026
e189aa8
Join SyntaxNodes and Builders into one; add walker, visitor, and fold
stackoverflow Jul 13, 2026
5458321
Changed tests from examples to facts
stackoverflow Jul 13, 2026
c6b2449
Move static identifiers to Identifier.java
stackoverflow Jul 13, 2026
fef2425
Change `toNode` to a property
stackoverflow Jul 14, 2026
1ab39ed
Refactor functions
stackoverflow Jul 14, 2026
cc99159
Refactor list joins
stackoverflow Jul 14, 2026
f47be50
Move parsing methods to Parser class
stackoverflow Jul 16, 2026
acbbaad
Move node building to Java
stackoverflow Jul 20, 2026
83344ed
Move builtNode to Java
stackoverflow Jul 22, 2026
7e17090
Remove unused methods
stackoverflow Jul 22, 2026
f2e6542
Improve doc comment node
stackoverflow Jul 22, 2026
81d3f5a
Make parenthesized type non-nullable
stackoverflow Jul 22, 2026
c378d82
Add docs to Node and Span
stackoverflow Jul 22, 2026
59412bf
Move format function to Renderer class
stackoverflow Jul 22, 2026
d5e5f9f
Add ExtendsOrAmendsClauseNode to CST
stackoverflow Jul 27, 2026
9b456dc
Rename extendsType to superType
stackoverflow Jul 27, 2026
83c2c62
Move top level functions to Node
stackoverflow Jul 27, 2026
fd4d48a
Fix some review remarks
stackoverflow Jul 31, 2026
2456208
Add display url to spans and source locations
stackoverflow Jul 31, 2026
66071d3
Remove span from SyntaxNode
stackoverflow Jul 31, 2026
be92f1d
Make ObjectMemberNode a sum type
stackoverflow Jul 31, 2026
aad10d1
Explode object members
stackoverflow Jul 31, 2026
8b9473c
Refine modifier list types
stackoverflow Aug 3, 2026
b08054d
Change some properties to `keyword` for consistency
stackoverflow Aug 3, 2026
4d91dba
Fix some remarks
stackoverflow Aug 3, 2026
b756406
Change binary operator to have their own classes
stackoverflow Aug 3, 2026
39c13ad
Fix bug in generic parser and syntax node
stackoverflow Aug 3, 2026
6e4a52b
Add tests for quoted identifiers
stackoverflow Aug 3, 2026
a9b7fac
Remove toNode
stackoverflow Aug 3, 2026
52e9204
Rename Node to GenricNode and SyntaxNode to Node
stackoverflow Aug 4, 2026
d8704a5
Change List to Listing for Node properties
stackoverflow Aug 4, 2026
c6bf5cd
Add members property to ModuleNode
stackoverflow Aug 4, 2026
31e951b
Add members property to ClassBodyNode
stackoverflow Aug 4, 2026
817614b
Rename StringConstantTypeNode to StringLiteralTypeNode
stackoverflow Aug 4, 2026
b610c43
Reuse extra storage for building nodes
stackoverflow Aug 4, 2026
dde5152
Remove render function from GenericNode
stackoverflow Aug 4, 2026
af30e87
Add `name` property to identifiers
stackoverflow Aug 6, 2026
79af24c
Add constraint to expr bodies
stackoverflow Aug 6, 2026
058dba7
Change variance to modifiers
stackoverflow Aug 6, 2026
3bcca77
Add members to ObjectBodyNode
stackoverflow Aug 6, 2026
119b667
Fix review remarks
stackoverflow Aug 6, 2026
d64c48a
Add helper to build strings
stackoverflow Aug 6, 2026
bae41f4
Improve string parts
stackoverflow Aug 6, 2026
7f67e51
Rename walk to transform
stackoverflow Aug 6, 2026
57253e6
Add parseExpression to the Parser
stackoverflow Aug 7, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pkl-core/pkl-core.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ dependencies {
compileOnly(projects.pklExecutor)

implementation(projects.pklParser)
implementation(projects.pklFormatter)
implementation(libs.msgpack)
implementation(libs.truffleApi)
implementation(libs.graalSdk)
Expand Down
12 changes: 12 additions & 0 deletions pkl-core/src/main/java/org/pkl/core/runtime/Identifier.java
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,18 @@ public final class Identifier implements Comparable<Identifier> {
// common in lambdas etc
public static final Identifier IT = get("it");

// members of pkl.syntax#Node, pkl.syntax#Span and pkl.syntax#SourceLocation
public static final Identifier TYPE = get("type");
public static final Identifier CHILDREN = get("children");
public static final Identifier SPAN = get("span");
public static final Identifier START = get("start");
public static final Identifier END = get("end");
public static final Identifier LINE = get("line");
public static final Identifier COLUMN = get("column");

// members of pkl.syntax#Renderer
public static final Identifier GRAMMAR_VERSION = get("grammarVersion");

private final String name;

private Identifier(String name) {
Expand Down
2 changes: 2 additions & 0 deletions pkl-core/src/main/java/org/pkl/core/runtime/ModuleCache.java
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ public synchronized VmTyped getOrLoad(
case "settings":
// always needed if ~/.pkl/settings.pkl is present
return SettingsModule.getModule();
case "syntax":
return SyntaxModule.getModule();
case "test":
return TestModule.getModule();
case "xml":
Expand Down
Loading
Loading