Ask HN: Guidance on writing a source to source compiler (transpiler)

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • the-super-tiny-compiler

    :snowman: Possibly the smallest compiler ever

  • You could start here:

    https://github.com/jamiebuilds/the-super-tiny-compiler

    That converts from lisp-like to javascript. Really though this is a big field, and there are lots of resources out there.

    To get started look at your input language; you'll need to lex and parse that. Then massage the parsed structure into the appropriate output.

    You can see me convert brainfuck to C, or x86 assembly language here:

    https://github.com/skx/bfcc

  • bfcc

    BrainFuck Compiler Challenge

  • You could start here:

    https://github.com/jamiebuilds/the-super-tiny-compiler

    That converts from lisp-like to javascript. Really though this is a big field, and there are lots of resources out there.

    To get started look at your input language; you'll need to lex and parse that. Then massage the parsed structure into the appropriate output.

    You can see me convert brainfuck to C, or x86 assembly language here:

    https://github.com/skx/bfcc

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts