cxxheaderparser interactive demo

cxxheaderparser is a pure python C++ header parser that parses C++ headers in a mildly naive manner that allows it to handle many C++ constructs, including many modern (C++11 and beyond) features.

C++ of course is a very challenging language to parse, and cxxheaderparser isn't always going to get it right. If you find that cxxheaderparser can't properly parse valid C++, submit a bug report on github!

Type in your C++ in the editor on the left, and on the right will show the repr of the python objects generated when you call `cxxheaderparser.simple.parse_string` (or an error message).


cxxheaderparser interactive demo powered by Pyodide, ACE Editor, Split.js, and Bootstrap

class FX { public: FX(char); ~FX(); void fn() const; }; class FF { friend class FX; friend FX::FX(char), FX::~FX(); friend void FX::fn() const; };