abstract-syntax-tree icon indicating copy to clipboard operation
abstract-syntax-tree copied to clipboard

A library for working with abstract syntax trees.

Results 5 abstract-syntax-tree issues
Sort by recently updated
recently updated
newest added

I got this warning in typescript: ``` Could not find a declaration file for module 'abstract-syntax-tree'. '/home/theo/dev/nbind/node_modules/.pnpm/[email protected]/node_modules/abstract-syntax-tree/index.js' implicitly has an 'any' type. ``` You could have typescript generate types for...

enhancement

## Story As a developer, I want to have async methods, like `replaceAsync` ## Acceptance criteria - [ ] replaceAsync - [ ] findAsync - [ ] ...

enhancement

## Story As a developer, I'd like to tokenize the source code to add some basic code highlighting. ## Acceptance criteria - [ ] class/instance method ## Useful links https://www.npmjs.com/package/esprima...

enhancement

## Story As a developer, I'd like to be able to use the library as a code transformation tool without losing the existing formatting. ## Acceptance criteria - [ ]...

enhancement

The code ``` tree = ast.parse("1000000000000000n"); console.log(tree.body[0].expression); ``` outputs a node of type "Literal": ``` { type: 'Literal', value: 1000000000000000n, bigint: '1000000000000000' } ``` But the [README](https://github.com/buxlabs/abstract-syntax-tree#nodes) implies that the...