いくつかの構造体定義を含むヘッダーファイルがあります。このファイルから特定の構造体を抽出したいと思います。たとえば、2番目の構造体のみを取得する必要があります。
typedef struct {
int a;
int b;
} first;
typedef struct {
int x;
int y;
} second;
式の下
...
headerText = headerFile.read()
re.match(r"typedef struct {(.*)} second;", headerText)
...
戻り値
int a;
int b;
} first;
typedef struct {
int x;
int y;
2番目の構造体のみを取得するにはどうすればよいですか?ありがとう...