Redian新闻
>
[转载] any fast way to learn Yak? (bison and flex)
avatar
[转载] any fast way to learn Yak? (bison and flex)# Unix - 噫吁兮,危乎高哉
f*g
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.
avatar
b*s
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.

avatar
f*g
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...

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。