j******r 发帖数: 3 | 1 还有如何计算除了注释以外的有效行书?
NEED SOME HELP TO LET WC WORK FOR IT..
THANKS A LOT |
T********r 发帖数: 6210 | 2 use lex, a simple lex file can help you remove all comments and
empty lines.
【在 j******r 的大作中提到】 : 还有如何计算除了注释以外的有效行书? : NEED SOME HELP TO LET WC WORK FOR IT.. : THANKS A LOT
|
j******r 发帖数: 3 | 3 Thanks, could you give some more detail information like example or links for
good tutorial?
I never use the lex before ...
【在 T********r 的大作中提到】 : use lex, a simple lex file can help you remove all comments and : empty lines.
|
T********r 发帖数: 6210 | 4 http://www.linux.org/docs/ldp/howto/Lex-YACC-HOWTO-1.html
【在 j******r 的大作中提到】 : Thanks, could you give some more detail information like example or links for : good tutorial? : I never use the lex before ...
|
D****g 发帖数: 2860 | 5 You need a little knowledge about regular language. Consult a comiler book.
Most of them should teach lex.
【在 j******r 的大作中提到】 : Thanks, could you give some more detail information like example or links for : good tutorial? : I never use the lex before ...
|