Looking for a codegen library that uses C++ for scripting

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/cpp

Our great sponsors
  • SonarLint - Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
  • Scout APM - Less time debugging, more time building
  • JetBrains - Developer Ecosystem Survey 2022
  • gsl

    iMatix GSL code generator (by imatix)

    I'm working on a project that currently uses GSL for its code generation. If you're not familiar, I wouldn't recommend checking it out. It is a pretty old template engine that is no longer maintained and lacks features that would make it a good functional language. I have therefore been tasked with finding a replacement.

  • Inja

    A Template Engine for Modern C++

    I've looked into a newer template engine like Inja, but my client isn't quite happy with that either. Inja allows you to write templates that you feed JSON data into:

  • SonarLint

    Deliver Cleaner and Safer Code - Right in Your IDE of Choice!. SonarLint is a free and open source IDE extension that identifies and catches bugs and vulnerabilities as you code, directly in the IDE. Install from your favorite IDE marketplace today.

  • ChaiScript

    Embedded Scripting Language Designed for C++

    Maybe ChaiScript? It is not exactly what you are looking for, but very similar, in my opinion.

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