mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-12-01 12:53:27 +01:00
b1264ef1e3
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
20 lines
431 B
C
Executable File
20 lines
431 B
C
Executable File
#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 s\n");
|
|
else printf("%d\n", rexpr(argv[1], argv[2]));
|
|
}
|