4ntoine
4ntoine

Reputation: 20410

Clang as C++ interpreter?

I'm intrigued by using Clang as embedded C++ interpreter. Is it possible to interpret "hello world" with it? The aim is to pass source filepath or source code as a string and get input/output streams with no executables invocations (it seems clang's Driver executes clang and/or linker executable).

Upvotes: 0

Views: 917

Answers (1)

Anton Korobeynikov
Anton Korobeynikov

Reputation: 9324

You may want to consider cling (http://root.cern.ch/drupal/content/cling) which is C++ interpreter built in top of clang libraries.

Upvotes: 1

Related Questions