buxlabs / abstract-syntax-tree

A library for working with abstract syntax trees.
MIT License
110 stars 13 forks source link

Add an `iife` method #98

Closed emilos closed 3 years ago

emilos commented 3 years ago

IIFE (Immediately Invoked Function Expression) is often used by transpilers/bundlers/transformers etc.

The fn should return an abstract syntax tree for:

(function () {
  // body
})()