version 1.28, 2004/05/13 04:38:28 |
version 1.35, 2004/09/14 01:57:15 |
|
|
/* $OpenXM: OpenXM/src/kan96xx/Kan/usage.c,v 1.27 2003/12/03 09:00:46 takayama Exp $ */ |
/* $OpenXM: OpenXM/src/kan96xx/Kan/usage.c,v 1.34 2004/09/12 01:32:08 takayama Exp $ */ |
#include <stdio.h> |
#include <stdio.h> |
#include "datatype.h" |
#include "datatype.h" |
#include "stackm.h" |
#include "stackm.h" |
Line 152 void Kusage2(fp,s) |
|
Line 152 void Kusage2(fp,s) |
|
fppp(fp," [(stat) fname] extension v \n"); |
fppp(fp," [(stat) fname] extension v \n"); |
fppp(fp," v = [null,[(error no), p]] or [0, [size ]]\n"); |
fppp(fp," v = [null,[(error no), p]] or [0, [size ]]\n"); |
fppp(fp," [(forkExec) argList fdList sigblock] extension pid\n"); |
fppp(fp," [(forkExec) argList fdList sigblock] extension pid\n"); |
|
fppp(fp," [(getattr) literal] extension attr\n"); |
fppp(fp," [(getchild)] extension listOfPid (generated by forkExec)\n"); |
fppp(fp," [(getchild)] extension listOfPid (generated by forkExec)\n"); |
fppp(fp," [(keywords) ] extension array-of-names-of-primitives \n"); |
fppp(fp," [(keywords) ] extension array-of-names-of-primitives \n"); |
fppp(fp," [(nobody) ] extension null \n"); |
fppp(fp," [(nobody) ] extension null \n"); |
fppp(fp," [(newMatrix) m n] extension mat \n"); |
fppp(fp," [(newMatrix) m n] extension mat \n"); |
fppp(fp," [(newVector) m ] extension vec \n"); |
fppp(fp," [(newVector) m ] extension vec \n"); |
fppp(fp," [(getUniqueFileName) path] extension newName \n"); |
fppp(fp," [(getUniqueFileName) path] extension newName \n"); |
|
fppp(fp," [(or_attr) atr literal] extension new_value \n"); |
fppp(fp," [(outputObjectToFile) path obj] extension null \n"); |
fppp(fp," [(outputObjectToFile) path obj] extension null \n"); |
fppp(fp," [(ostype)] extension list \n"); |
fppp(fp," [(ostype)] extension list \n"); |
|
fppp(fp," [(regexec) regular_expression stringArray flags(opt)] extension list \n"); |
fppp(fp," [(regionMatches) string stringArray] extension list \n"); |
fppp(fp," [(regionMatches) string stringArray] extension list \n"); |
|
fppp(fp," [(traceClearStack)] extension null \n"); |
|
fppp(fp," [(traceShowStack)] extension str \n"); |
/* fppp(fp," [(asir0) string] extension result-object \n"); */ |
/* fppp(fp," [(asir0) string] extension result-object \n"); */ |
fppp(fp,"See also plugin-* in ??. \n"); |
fppp(fp,"See also plugin-* in ??. \n"); |
}else if (strcmp(s,"file")==0) { |
}else if (strcmp(s,"file")==0) { |
Line 180 void Kusage2(fp,s) |
|
Line 185 void Kusage2(fp,s) |
|
fppp(fp,"array of objects obj1;"); |
fppp(fp,"array of objects obj1;"); |
fppp(fp,"The first element of the obj1 should be the key word tag.\n"); |
fppp(fp,"The first element of the obj1 should be the key word tag.\n"); |
fppp(fp,"<< gbext >> is used to call auxiliary functions for g-basis computation. \n"); |
fppp(fp,"<< gbext >> is used to call auxiliary functions for g-basis computation. \n"); |
|
fppp(fp," [(divByN) poly1 n(universalNumber)] gbext [qpoly rpoly] \n"); |
|
fppp(fp," where poly1 = n*qpoly+rpoly.\n"); |
|
fppp(fp," (see also cancelCoeff) \n"); |
|
fppp(fp," [(exponents) poly type ] gbext array \n"); |
|
fppp(fp," example: type == 0 x,y,Dx,Dy\n"); |
|
fppp(fp," type == 1 x,y,Dx,Dy,h,H\n"); |
|
fppp(fp," type == 2 x,y,Dx,Dy,h --- default.\n"); |
|
fppp(fp," [(grade) poly1 ] gbext integer \n"); |
|
fppp(fp," [(isConstant) poly] gbext bool \n"); |
|
fppp(fp," [(isConstantAll) poly] gbext bool \n"); |
|
fppp(fp," [(isOrdered) poly] gbext poly \n"); |
fppp(fp," [(isReducible) poly1 poly2 ] gbext integer \n"); |
fppp(fp," [(isReducible) poly1 poly2 ] gbext integer \n"); |
fppp(fp," [(lcm) poly1 poly2] gbext poly \n"); |
fppp(fp," [(lcm) poly1 poly2] gbext poly \n"); |
fppp(fp," [(grade) poly1 ] gbext integer \n"); |
fppp(fp," [(lcoeff) poly] gbext poly \n"); |
fppp(fp," [(ord_ws_all) fv wv] gbext integer \n"); |
fppp(fp," [(lmonom) poly] gbext poly \n"); |
fppp(fp," [(mod) poly1 universalNumber] gbext poly \n"); |
fppp(fp," [(mod) poly1 universalNumber] gbext poly \n"); |
fppp(fp," poly = poly1 mod universalNumber where char=0 and \n"); |
fppp(fp," poly = poly1 mod universalNumber where char=0 and \n"); |
fppp(fp," poly and poly2 belong to a same ring.\n"); |
fppp(fp," poly and poly2 belong to a same ring.\n"); |
|
fppp(fp," [(ord_ws_all) fv wv] gbext integer \n"); |
|
fppp(fp," [(reduceContent) poly] gbext [poly c] \n"); |
fppp(fp," [(tomodp) poly1 ring] gbext poly, char(ring)>0. \n"); |
fppp(fp," [(tomodp) poly1 ring] gbext poly, char(ring)>0. \n"); |
fppp(fp," poly = poly1 mod char(ring) where poly belongs to ring.\n"); |
fppp(fp," poly = poly1 mod char(ring) where poly belongs to ring.\n"); |
fppp(fp," [(tomod0) poly1 ring] gbext poly, char(ring)=0. \n"); |
fppp(fp," [(tomod0) poly1 ring] gbext poly, char(ring)=0. \n"); |
fppp(fp," [(divByN) poly1 n(universalNumber)] gbext [qpoly rpoly] \n"); |
|
fppp(fp," where poly1 = n*qpoly+rpoly.\n"); |
|
fppp(fp," (see also cancelCoeff) \n"); |
|
fppp(fp," [(isConstant) poly] gbext bool \n"); |
|
fppp(fp," [(isConstantAll) poly] gbext bool \n"); |
|
fppp(fp," [(lcoeff) poly] gbext poly \n"); |
|
fppp(fp," [(lmonom) poly] gbext poly \n"); |
|
fppp(fp," [(schreyerSkelton) array_of_poly] gbext array \n"); |
fppp(fp," [(schreyerSkelton) array_of_poly] gbext array \n"); |
fppp(fp," [(toes) array_of_poly] gbext poly \n"); |
fppp(fp," [(toes) array_of_poly] gbext poly \n"); |
fppp(fp," [(toe_) poly] gbext poly \n"); |
fppp(fp," [(toe_) poly] gbext poly \n"); |
fppp(fp," [(toe_) array_of_poly] gbext poly cf. toVectors \n"); |
fppp(fp," [(toe_) array_of_poly] gbext poly cf. toVectors \n"); |
fppp(fp," [(isOrdered) poly] gbext poly \n"); |
|
fppp(fp," [(reduceContent) poly] gbext [poly c] \n"); |
|
}else if (strcmp(s,"get")==0) { |
}else if (strcmp(s,"get")==0) { |
fppp(fp,"<< [f0 f1 ... fn] k get fk >>\n"); |
fppp(fp,"<< [f0 f1 ... fn] k get fk >>\n"); |
fppp(fp,"integer k;"); |
fppp(fp,"integer k;"); |
fppp(fp,"The primitive gets the k-th element of a given array.\n"); |
fppp(fp,"The primitive gets the k-th element of a given array.\n"); |
fppp(fp,"Example: [1 4 3] 1 get :: ---> 4\n"); |
fppp(fp,"Example: [1 4 3] 1 get :: ---> 4\n"); |
|
fppp(fp,"<< ob [k0 k1 ... ] get f >>\n"); |
|
fppp(fp,"It is equivalent to << ob k0 get k1 get ... >>\n"); |
|
fppp(fp,"The primitive get works for array or list.\n"); |
}else if (strcmp(s,"goto")==0) { |
}else if (strcmp(s,"goto")==0) { |
fppp(fp,"<< label goto >>\n"); |
fppp(fp,"<< label goto >>\n"); |
fppp(fp,"literal label;\n"); |
fppp(fp,"literal label;\n"); |