Git Product home page Git Product logo

vscode-cdecl's Introduction

vscode-cdecl marketplace badge

An extension to help you make sense of C gibberish, based off of the logic behind the excellent https://cdecl.org/.

Bug reports/suggestions/feedback welcome!

Features

  • Explain a C/C++ declaration or cast in plain English
  • Generate a C/C++ declaration or cast from plain English

See help.md or run the cdecl: Help command to learn more.

Known issues

  • C++-specific syntax might not be handled correctly. See #1

Release Notes

1.0.0

Initial release.

Hacking

All of the core logic is based off of a program called cdecl, which has existed in one form or another for over 30 years. The version included in this extension is available at wasabifan/cdecl-blocks-js which is a lightly-modified fork of ridiculousfish/cdecl-blocks. The modifications included are to enable cdecl to be compiled into JavaScript using Emscripten for hosting within the extension. The "binary" cdecl engine is checked into this repo as out/cdecl.js and should not be modified manually.

Build and debug tasks will be picked up automatically after opening the repo in VSCode. You will need to run npm install once before building.

vscode-cdecl's People

Contributors

wasabifan avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

vscode-cdecl's Issues

Handle the C++ flag

Currently the C++ flag is never passed to cdecl, but in practice that's probably not the best approach. I need to figure out whether always passing the flag would cause any issues.

Add styling to "help"

The rendered HTML lacks any CSS/styling, making code blocks pretty ugly. It would be good to add some basic styles. It might be easiest to override marked's code block logic to add inline styling, or alternately I might be able to add a CSS stylesheet.

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.