Skip to content

Instantly share code, notes, and snippets.

@oofdere
Created August 13, 2025 09:38
Show Gist options
  • Select an option

  • Save oofdere/0430af5c84e171d2c7c56946a1b36aba to your computer and use it in GitHub Desktop.

Select an option

Save oofdere/0430af5c84e171d2c7c56946a1b36aba to your computer and use it in GitHub Desktop.
comparing deno and acorn ast
const acorn = Node {
type: "Program",
start: 0,
end: 44,
body: [
Node {
type: "VariableDeclaration",
start: 0,
end: 19,
declarations: [
Node {
type: "VariableDeclarator",
start: 6,
end: 18,
id: [Node],
init: [Node]
}
],
kind: "const"
},
Node {
type: "ExpressionStatement",
start: 28,
end: 44,
expression: Node {
type: "CallExpression",
start: 28,
end: 43,
callee: Node { type: "Identifier", start: 28, end: 33, name: "spawn" },
arguments: [ [Node] ],
optional: false
}
}
],
sourceType: "script"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment