assimp/contrib/tinyusdz/tinyusdz_repo/sandbox/ascii-parser-gen
Steve M 58f7195aac Rename folder only 2024-03-29 19:40:24 -07:00
..
README.md Rename folder only 2024-03-29 19:40:24 -07:00
gen-timesamples.py Rename folder only 2024-03-29 19:40:24 -07:00

README.md

Simple Ascii parser code gen experiment.

Why

  • C macro is not enough
  • C++ template is too overkill
    • Slow compilation
    • sometimes it generates lots of code sections which fails to compile(need /bigobj switch in MSVC)

Want a something like between C macro and C++ template. So this codegen approach will fill the gap.

How to use

Simply run

$ python gen.py

Put generated .h and .cc to ../../src/