kruithne / ast-block Goto Github PK
View Code? Open in Web Editor NEWParses the abstract syntax tree for JavaScript files.
License: MIT License
Parses the abstract syntax tree for JavaScript files.
License: MIT License
When the AST parser encounters an issue, an error is thrown in the background. It makes more sense for the errors to be presented directly to the user since Blocks are a developer-orientated feature.
Unsure of the intended way to implement colour theming in GitHub Blocks. Currently, I've hard-coded two separate colour themes in the Tailwind configuration and alternate between them using the Tailwind dark-
selector.
It may be beneficial to allow the user to customize the parser options, such as enabling module
mode or setting the language to something other than latest
.
A useful feature would be to have the original source code displayed side-by-side with the parsed AST. Hovering over entries in the tree should highlight the relevant section of source code (and vice-versa).
What do we use as a code editor? Creating one from scratch seems wasteful. Need to investigate what other blocks are doing to embed code in a reusable way and how we can integrate into that.
Attempting to use this block on a JSX/TSX block does not appear to work. To demonstrate the issue, the following file renders completely blank when used with this Block.
https://blocks.githubnext.com/githubnext/blocks/blob/main/examples/MyComponent.jsx
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.