pxr/base/pegtl/README.md
PEGTL is a library for creating parsers according to a Parsing Expression Grammar.
v3.2.7
Refer to the Installing and Using documentation
Copy PEGTL-3.2.7/include/tao/... to pxr/base/pegtl/...
Replace Macro Names
Change macro names from TAO_PEGTL_ to PXR_PEGTL_. You can do this in a bash-like shell with the following:
sed -i 's/TAO_PEGTL_/PXR_PEGTL_/g' $(find -name '[^.]*.[hc]pp')
You can get a full list of the header files by running:
find -type f
This file defines the namespace name that PEGTL uses:
// Define PXR_PEGTL_NAMESPACE based on the internal namespace to isolate
// it from other versions of USD/PEGTL in client code.
#include "pxr/pxr.h"
#if PXR_USE_NAMESPACES
#define PXR_PEGTL_impl_PASTE2(x, y) x ## y
#define PXR_PEGTL_impl_PASTE(x, y) PXR_PEGTL_impl_PASTE2(x, y)
#define PXR_PEGTL_NAMESPACE PXR_PEGTL_impl_PASTE(PXR_INTERNAL_NS, _pegtl)
#else
#define PXR_PEGTL_NAMESPACE pxr_pegtl
#endif