2006-07-18 16:45:57 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2018-06-02 16:02:51 +00:00
|
|
|
$1 -s "${2:-Lpars.h}" > $3 <<'+'
|
1988-07-04 11:45:41 +00:00
|
|
|
1d
|
1993-06-09 10:34:48 +00:00
|
|
|
1,$s/# *define //
|
1989-02-07 17:54:33 +00:00
|
|
|
1,$s/ ...$//
|
|
|
|
1,$s/^/ "/
|
|
|
|
1,$-1s/$/",/
|
|
|
|
$s/$/"/
|
1988-07-04 11:45:41 +00:00
|
|
|
0a
|
|
|
|
char *tokentab[] = {
|
|
|
|
.
|
1989-02-07 17:54:33 +00:00
|
|
|
$a
|
1988-07-04 11:45:41 +00:00
|
|
|
};
|
|
|
|
.
|
2016-08-11 22:19:51 +00:00
|
|
|
1,$p
|
1988-07-04 11:45:41 +00:00
|
|
|
+
|