Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

⚡Quickstart

🛠 Installation

Install go-fAST using Go modules:

go get github.com/t14raptor/go-fast

Ensure you are using Go 1.18 or higher.


📦 Imports

Typical packages you'll interact with include:

import (
    "fmt"
    "os"

    "github.com/t14raptor/go-fast/parser"
    "github.com/t14raptor/go-fast/generator"
    "github.com/t14raptor/go-fast/transform/simplifier"
)

🚀 Basic Usage

Parse a JavaScript file and generate the output:

This code:

  • Reads input.js

  • Parses it into an AST

  • Applies simplification (constant folding, dead code removal, etc.)

  • Generates optimized JavaScript back


✅ What's Next


Last updated