f*g 发帖数: 47 | 1 【 以下文字转载自 Linux 讨论区 】
【 原文由 fpg 所发表 】
want to parse some text files for my data structure, but never touch it before
besides using c language(sscanf...) , i heard yak is good at parsing files.
any better way to learn it? I only got the manual from gnu which lead me to
nowhere since I never used it b4.
thanks for any comments. | b****s 发帖数: 472 | 2 examples of your data?
guess perl is good enough
bison & flex are supposed to parse languages...
【在 f*g 的大作中提到】 : 【 以下文字转载自 Linux 讨论区 】 : 【 原文由 fpg 所发表 】 : want to parse some text files for my data structure, but never touch it before : besides using c language(sscanf...) , i heard yak is good at parsing files. : any better way to learn it? I only got the manual from gnu which lead me to : nowhere since I never used it b4. : thanks for any comments.
| f*g 发帖数: 47 | 3 the input for parsing is the test pattern files produced by
a commercial tool.
there are many possible formats for each test pattern,
I am not sure if perl can handle this situation well.
【在 b****s 的大作中提到】 : examples of your data? : guess perl is good enough : bison & flex are supposed to parse languages...
|
|