Code Monkey home page Code Monkey logo

ast-block's Issues

Implement proper error handling

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.

Investigate intended styling usage in GitHub Blocks

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.

  • Investigate if this is the intended way to handle light/dark mode in GitHub blocks.
  • Investigate if defining our own colours is the best solution or if we can inherit the colours directly from GitHub or use GitHub Primer.

Allow user configuration for the parser

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.

Include source code with relevant highlighting

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.