test.c
资源名称:pccts133.zip [点击查看]
上传用户:itx_2006
上传日期:2007-01-06
资源大小:493k
文件大小:0k
源码类别:
编译器/解释器
开发平台:
Others
- #include <stdio.h>
- #include "rexpr.h"
- /*
- * test for rexpr().
- * To make this test:
- * cc -o rexpr test.c rexpr.c
- * Then from command line type:
- * rexpr r string
- * where r is the regular expression that decribes a language
- * and string is the string to verify.
- */
- main(argc,argv)
- int argc;
- char *argv[];
- {
- if ( argc!=3 ) fprintf(stderr,"rexpr: expr sn");
- else printf("%dn", rexpr(argv[1], argv[2]));
- }