https://github.com/armsnyder/typescript-ast-go
Library for parsing TypeScript source code into an abstract syntax tree (AST)
https://github.com/armsnyder/typescript-ast-go
abstract-syntax-tree ast go golang language-parser lexer parser ts typescript
Last synced: 2 months ago
JSON representation
Library for parsing TypeScript source code into an abstract syntax tree (AST)
- Host: GitHub
- URL: https://github.com/armsnyder/typescript-ast-go
- Owner: armsnyder
- License: mit
- Created: 2024-07-01T01:30:11.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-07-01T01:40:13.000Z (11 months ago)
- Last Synced: 2025-01-21T00:49:57.453Z (4 months ago)
- Topics: abstract-syntax-tree, ast, go, golang, language-parser, lexer, parser, ts, typescript
- Language: Go
- Homepage: https://pkg.go.dev/github.com/armsnyder/typescript-ast-go
- Size: 24.4 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
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](https://pkg.go.dev/go) library.[Package Documentation](https://pkg.go.dev/github.com/armsnyder/typescript-ast-go)
The main two packages are:
- [parser](https://pkg.go.dev/github.com/armsnyder/typescript-ast-go/parser):
Parse TypeScript source code into an AST.
- [ast](https://pkg.go.dev/github.com/armsnyder/typescript-ast-go/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.