Skip to content

Instantly share code, notes, and snippets.

@SammyIsra
Last active July 2, 2019 23:52
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 SammyIsra/0f7d350f1b50f71b3fa710df0e5d463f to your computer and use it in GitHub Desktop.
Save SammyIsra/0f7d350f1b50f71b3fa710df0e5d463f to your computer and use it in GitHub Desktop.
Simple AST
// Simple AST
{
type: "Program",
body: [
{
type: "CallExpression",
name: "concat",
params: [
{
type: "StringLiteral",
value: "Number :"
},
{
type: "CallExpression",
name: "add",
params: [
{
type: "NumberLiteral",
value: "2"
},
{
type: "NumberLiteral",
value: "3"
}
]
}
]
}
]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment