Skip to content

Instantly share code, notes, and snippets.

@starakaj
Created February 22, 2021 21:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save starakaj/96782b5f6112eecaaf22d380c664f183 to your computer and use it in GitHub Desktop.
Save starakaj/96782b5f6112eecaaf22d380c664f183 to your computer and use it in GitHub Desktop.
Pseudo-babel
// This implements var y = x+ 5;
let statement = t.variableDeclaration("var", [
t.variableDeclarator(
t.identifier("y"),
t.binaryExpression("+", t.identifier("x"), t.numericLiteral(5))
)
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment