]> git.proxmox.com Git - mirror_edk2.git/blob - Tools/CCode/Source/Pccts/support/rexpr/test.c
More moves for Tool Packages
[mirror_edk2.git] / Tools / CCode / Source / Pccts / support / rexpr / test.c
1 #include <stdio.h>
2 #include "rexpr.h"
3
4 /*
5 * test for rexpr().
6 * To make this test:
7 * cc -o rexpr test.c rexpr.c
8 * Then from command line type:
9 * rexpr r string
10 * where r is the regular expression that decribes a language
11 * and string is the string to verify.
12 */
13 main(argc,argv)
14 int argc;
15 char *argv[];
16 {
17 if ( argc!=3 ) fprintf(stderr,"rexpr: expr s\n");
18 else printf("%d\n", rexpr(argv[1], argv[2]));
19 }