⚡Megatron LLM Hub
←返回搜索
Twitter

自写 C 源码 lint 工具,先做 token 化解析再限制单函数行数

工具
The tool had to correctly tokenize and parse the C source file, in order to be able to do this. jobj@intel32:~$ ./lint lint.c lint.c:17: error: too many lines per function (>15) lint.c:85: error: too many lines per function (>15) lint.c:114: error: too many lines per function (>15) lint.c:158: error: too many lines per function (>15) lint.c:191: error: too many lines per function (>15) JB