Skip to content

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

Parse C header files from exchange leveraging Python pycparser library, dynamically generating corresponding logging functions for our trading system. For each struct within the header files, automated logging functions were created, eliminating the need to manually write thousands of handlers. This approach significantly improved maintainability and reduced error rates.

Requirement

pip install pycparser

How to use

python main.py

Then you will get the logging functions in generated_code.cpp and header file generated_code.h

About

Automatically parse c code and generate log function

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages