参考 Thrift whitepaperhttps://thrift.apache.org/ thrift简单示例 (基于C++) Apache Thrift 官方JAVA教程 使用Flex Bison 和LLVM编写自己的编译器 https://github.com/westes/flex https://github.com/westes/flex/releases 编译器(汇编器)开发工具Flex和Bison的使用方法之Flex