typescript-ast-go

module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 1, 2024 License: MIT

README

TypeScript AST

This library provides a way to parse TypeScript source code into an abstract syntax tree (AST) in Golang. The packages are laid out similar to the standard go library.

Package Documentation

The main two packages are:

  • parser: Parse TypeScript source code into an AST.
  • ast: The AST nodes and visitor for TypeScript source code.

This library was originally created in order to parse TypeScript type definitions specifically for the Language Server Protocol Specification. As a result, it is not feature complete and may not work for all TypeScript source code.

Directories

Path Synopsis
Package ast defines the abstract syntax tree (AST) for the TypeScript programming language and provides functionality for traversing the AST.
Package ast defines the abstract syntax tree (AST) for the TypeScript programming language and provides functionality for traversing the AST.
Package parser provides a [Parse] function for parsing TypeScript source files into an abstract syntax tree (AST).
Package parser provides a [Parse] function for parsing TypeScript source files into an abstract syntax tree (AST).
Package token contains the definition of the lexical tokens of the TypeScript programming language.
Package token contains the definition of the lexical tokens of the TypeScript programming language.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL