Initial version

This commit is contained in:
ceriel
1990-08-31 18:22:53 +00:00
parent f614fc6dc3
commit dbf9a060c2
53 changed files with 6156 additions and 0 deletions

18
util/grind/make.ops Executable file
View File

@@ -0,0 +1,18 @@
awk '
BEGIN { n = 0 }
{ print "#define " $1 " " n; n++
if ($3 !~ /0/) print "extern int " $3 "();" ;
}
' < $1 > ops.h
cat > ops.c <<'EOF'
#include "operator.h"
#include "ops.h"
t_operator operators[] = {
EOF
awk ' { print "{ " $2 ", " $3 "}, /* " $1 " */" }' < $1 >> ops.c
cat >> ops.c <<'EOF'
{ 0, 0 }
};
EOF