codekingpro/portable-devtools
114k
1"""2 pygments.lexers.macaulay23 ~~~~~~~~~~~~~~~~~~~~~~~~~4 5 Lexer for Macaulay2.6 7 :copyright: Copyright 2006-present by the Pygments team, see AUTHORS.8 :license: BSD, see LICENSE for details.9"""10 11from pygments.lexer import RegexLexer, words12from pygments.token import Comment, Keyword, Name, String, Text13 14__all__ = ['Macaulay2Lexer']15 16# Auto-generated for Macaulay2-1.25.11. Do not modify this file manually.17 18M2KEYWORDS = (19 "SPACE",20 "TEST",21 "and",22 "break",23 "breakpoint",24 "catch",25 "continue",26 "do",27 "elapsedTime",28 "elapsedTiming",29 "else",30 "for",31 "from",32 "global",33 "if",34 "in",35 "list",36 "local",37 "new",38 "not",39 "of",40 "or",41 "profile",42 "return",43 "shield",44 "step",45 "symbol",46 "then",47 "threadLocal",48 "threadVariable",49 "throw",50 "time",51 "timing",52 "to",53 "try",54 "when",55 "while",56 "xor"57 )58 59M2DATATYPES = (60 "ANCHOR",61 "Adjacent",62 "AffineVariety",63 "Analyzer",64 "AngleBarList",65 "Array",66 "AssociativeExpression",67 "AtomicInt",68 "BLOCKQUOTE",69 "BODY",70 "BOLD",71 "BR",72 "BUTTON",73 "Bag",74 "BasicList",75 "BettiTally",76 "BinaryOperation",77 "Boolean",78 "CC",79 "CDATA",80 "CODE",81 "COMMENT",82 "CacheTable",83 "ChainComplex",84 "ChainComplexMap",85 "CoherentSheaf",86 "Command",87 "CompiledFunction",88 "CompiledFunctionBody",89 "CompiledFunctionClosure",90 "ComplexField",91 "Constant",92 "DD",93 "DIV",94 "DL",95 "DT",96 "Database",97 "Descent",98 "Describe",99 "Dictionary",100 "DirectSum",101 "Divide",102 "DocumentTag",103 "EM",104 "Eliminate",105 "EngineRing",106 "Equation",107 "ExampleItem",108 "Expression",109 "File",110 "FilePosition",111 "FractionField",112 "Function",113 "FunctionApplication",114 "FunctionBody",115 "FunctionClosure",116 "GaloisField",117 "GeneralOrderedMonoid",118 "GlobalDictionary",119 "GradedModule",120 "GradedModuleMap",121 "GroebnerBasis",122 "GroebnerBasisOptions",123 "HEAD",124 "HEADER1",125 "HEADER2",126 "HEADER3",127 "HEADER4",128 "HEADER5",129 "HEADER6",130 "HR",131 "HREF",132 "HTML",133 "HashTable",134 "HeaderType",135 "Holder",136 "Hybrid",137 "Hypertext",138 "HypertextContainer",139 "HypertextParagraph",140 "HypertextVoid",141 "IFRAME",142 "IMG",143 "INDENT",144 "INPUT",145 "ITALIC",146 "Ideal",147 "ImmutableType",148 "IndeterminateNumber",149 "IndexedVariable",150 "IndexedVariableTable",151 "InexactField",152 "InexactFieldFamily",153 "InexactNumber",154 "InfiniteNumber",155 "IntermediateMarkUpType",156 "Iterator",157 "KBD",158 "Keyword",159 "LABEL",160 "LATER",161 "LI",162 "LINK",163 "LITERAL",164 "List",165 "LocalDictionary",166 "LowerBound",167 "MENU",168 "META",169 "Manipulator",170 "MapExpression",171 "MarkUpType",172 "Matrix",173 "MatrixExpression",174 "MethodFunction",175 "MethodFunctionBinary",176 "MethodFunctionSingle",177 "MethodFunctionWithOptions",178 "Minus",179 "Module",180 "Monoid",181 "MonoidElement",182 "MonomialIdeal",183 "MultigradedBettiTally",184 "MutableHashTable",185 "MutableList",186 "MutableMatrix",187 "Net",188 "NetFile",189 "Nothing",190 "Number",191 "NumberedVerticalList",192 "OL",193 "OneExpression",194 "Option",195 "OptionTable",196 "OrderedMonoid",197 "PARA",198 "PRE",199 "Package",200 "Parenthesize",201 "Parser",202 "Partition",203 "PolynomialRing",204 "Power",205 "Product",206 "ProductOrder",207 "Program",208 "ProgramRun",209 "ProjectiveHilbertPolynomial",210 "ProjectiveVariety",211 "Pseudocode",212 "PseudocodeClosure",213 "QQ",214 "QuotientRing",215 "RR",216 "RRi",217 "RealField",218 "Resolution",219 "Ring",220 "RingElement",221 "RingFamily",222 "RingMap",223 "RowExpression",224 "SAMP",225 "SCRIPT",226 "SMALL",227 "SPAN",228 "STRONG",229 "STYLE",230 "SUB",231 "SUBSECTION",232 "SUP",233 "ScriptedFunctor",234 "SelfInitializingType",235 "Sequence",236 "Set",237 "SheafExpression",238 "SheafMap",239 "SheafOfRings",240 "SparseMonomialVectorExpression",241 "SparseVectorExpression",242 "String",243 "Subscript",244 "Sum",245 "SumOfTwists",246 "Superscript",247 "Symbol",248 "SymbolBody",249 "TABLE",250 "TD",251 "TEX",252 "TH",253 "TITLE",254 "TO",255 "TO2",256 "TOH",257 "TR",258 "TT",259 "Table",260 "Tally",261 "Task",262 "TensorProduct",263 "TestInput",264 "Thing",265 "Time",266 "Type",267 "UL",268 "URL",269 "VAR",270 "Variety",271 "Vector",272 "VectorExpression",273 "VerticalList",274 "VirtualTally",275 "VisibleList",276 "WrapperType",277 "ZZ",278 "ZeroExpression"279 )280 281M2FUNCTIONS = (282 "BesselJ",283 "BesselY",284 "Beta",285 "Digamma",286 "EXAMPLE",287 "End",288 "Fano",289 "GCstats",290 "GF",291 "Gamma",292 "Grassmannian",293 "Hom",294 "LLL",295 "LUdecomposition",296 "M2CODE",297 "NNParser",298 "Proj",299 "QQParser",300 "QRDecomposition",301 "SVD",302 "SYNOPSIS",303 "Schubert",304 "Spec",305 "ZZParser",306 "about",307 "abs",308 "accumulate",309 "acos",310 "acosh",311 "acot",312 "acoth",313 "addCancelTask",314 "addDependencyTask",315 "addEndFunction",316 "addHook",317 "addStartTask",318 "adjoint",319 "agm",320 "alarm",321 "all",322 "ambient",323 "analyticSpread",324 "ancestor",325 "ancestors",326 "andP",327 "ann",328 "annihilator",329 "antipode",330 "any",331 "append",332 "applicationDirectory",333 "apply",334 "applyKeys",335 "applyPairs",336 "applyTable",337 "applyValues",338 "apropos",339 "arXiv",340 "ascii",341 "asin",342 "asinh",343 "ass",344 "assert",345 "associatedGradedRing",346 "associatedPrimes",347 "atEndOfFile",348 "atan",349 "atan2",350 "atanh",351 "autoload",352 "baseFilename",353 "baseName",354 "baseRing",355 "basis",356 "beginDocumentation",357 "benchmark",358 "betti",359 "between",360 "binomial",361 "borel",362 "cacheValue",363 "cancelTask",364 "canonicalBundle",365 "capture",366 "ceiling",367 "centerString",368 "chainComplex",369 "changeBase",370 "changeDirectory",371 "char",372 "charAnalyzer",373 "characters",374 "check",375 "checkDegrees",376 "chi",377 "class",378 "clean",379 "clearEcho",380 "code",381 "codim",382 "coefficient",383 "coefficientRing",384 "coefficients",385 "cohomology",386 "coimage",387 "coker",388 "cokernel",389 "collectGarbage",390 "columnAdd",391 "columnMult",392 "columnPermute",393 "columnRankProfile",394 "columnSwap",395 "columnate",396 "combine",397 "commandInterpreter",398 "commonRing",399 "commonest",400 "comodule",401 "compareExchange",402 "complement",403 "complete",404 "components",405 "compose",406 "compositions",407 "compress",408 "concatenate",409 "conductor",410 "cone",411 "conjugate",412 "connectionCount",413 "constParser",414 "content",415 "contract",416 "conwayPolynomial",417 "copy",418 "copyDirectory",419 "copyFile",420 "cos",421 "cosh",422 "cot",423 "cotangentSheaf",424 "coth",425 "cover",426 "coverMap",427 "cpuTime",428 "createTask",429 "csc",430 "csch",431 "currentColumnNumber",432 "currentDirectory",433 "currentPosition",434 "currentRowNumber",435 "currentTime",436 "deadParser",437 "debug",438 "debugError",439 "decompose",440 "deepSplice",441 "default",442 "degree",443 "degreeGroup",444 "degreeLength",445 "degrees",446 "degreesMonoid",447 "degreesRing",448 "delete",449 "demark",450 "denominator",451 "depth",452 "describe",453 "det",454 "determinant",455 "diagonalMatrix",456 "diameter",457 "dictionary",458 "diff",459 "difference",460 "dim",461 "directProduct",462 "directSum",463 "disassemble",464 "discriminant",465 "dismiss",466 "distinguished",467 "divideByVariable",468 "doc",469 "document",470 "drop",471 "dual",472 "eagonNorthcott",473 "echoOff",474 "echoOn",475 "eigenvalues",476 "eigenvectors",477 "eint",478 "elements",479 "eliminate",480 "endPackage",481 "entries",482 "erase",483 "erf",484 "erfc",485 "error",486 "euler",487 "eulers",488 "even",489 "examples",490 "exchange",491 "exec",492 "exp",493 "expectedReesIdeal",494 "expm1",495 "exponents",496 "export",497 "exportFrom",498 "exportMutable",499 "expression",500 "extend",501 "exteriorPower",502 "factor",503 "fileExecutable",504 "fileExists",505 "fileLength",506 "fileMode",507 "fileReadable",508 "fileTime",509 "fileWritable",510 "fillMatrix",511 "findFiles",512 "findHeft",513 "findProgram",514 "findSynonyms",515 "first",516 "firstkey",517 "fittingIdeal",518 "flagLookup",519 "flatten",520 "flattenRing",521 "flip",522 "floor",523 "fold",524 "forceGB",525 "fork",526 "format",527 "formation",528 "frac",529 "fraction",530 "frames",531 "fromDividedPowers",532 "fromDual",533 "functionBody",534 "futureParser",535 "gb",536 "gbRemove",537 "gbSnapshot",538 "gcd",539 "gcdCoefficients",540 "gcdLLL",541 "genera",542 "generateAssertions",543 "generator",544 "generators",545 "genericMatrix",546 "genericSkewMatrix",547 "genericSymmetricMatrix",548 "gens",549 "genus",550 "get",551 "getChangeMatrix",552 "getGlobalSymbol",553 "getIOThreadMode",554 "getNetFile",555 "getNonUnit",556 "getPrimeWithRootOfUnity",557 "getSymbol",558 "getWWW",559 "getc",560 "getenv",561 "globalAssign",562 "globalAssignFunction",563 "globalAssignment",564 "globalReleaseFunction",565 "gradedModule",566 "gradedModuleMap",567 "gramm",568 "graphIdeal",569 "graphRing",570 "groebnerBasis",571 "groupID",572 "hash",573 "hashTable",574 "headlines",575 "heft",576 "height",577 "hermite",578 "hilbertFunction",579 "hilbertPolynomial",580 "hilbertSeries",581 "hold",582 "homogenize",583 "homology",584 "homomorphism",585 "hooks",586 "horizontalJoin",587 "html",588 "httpHeaders",589 "hypertext",590 "icFracP",591 "icFractions",592 "icMap",593 "icPIdeal",594 "ideal",595 "idealSheaf",596 "idealizer",597 "identity",598 "image",599 "imaginaryPart",600 "importFrom",601 "independentSets",602 "index",603 "indices",604 "inducedMap",605 "inducesWellDefinedMap",606 "info",607 "input",608 "insert",609 "installAssignmentMethod",610 "installHilbertFunction",611 "installMethod",612 "installMinprimes",613 "installPackage",614 "installedPackages",615 "instance",616 "instances",617 "integralClosure",618 "integrate",619 "intersect",620 "intersectInP",621 "intersection",622 "interval",623 "inverse",624 "inverseErf",625 "inversePermutation",626 "inverseRegularizedBeta",627 "inverseRegularizedGamma",628 "inverseSystem",629 "irreducibleCharacteristicSeries",630 "irreducibleDecomposition",631 "isANumber",632 "isAffineRing",633 "isBorel",634 "isCanceled",635 "isCommutative",636 "isConstant",637 "isDirectSum",638 "isDirectory",639 "isEmpty",640 "isExact",641 "isField",642 "isFinite",643 "isFinitePrimeField",644 "isFreeModule",645 "isGlobalSymbol",646 "isHomogeneous",647 "isIdeal",648 "isInfinite",649 "isInjective",650 "isInputFile",651 "isIsomorphic",652 "isIsomorphism",653 "isLLL",654 "isLinearType",655 "isListener",656 "isLocallyFree",657 "isMember",658 "isModule",659 "isMonomialIdeal",660 "isMutable",661 "isNormal",662 "isOpen",663 "isOutputFile",664 "isPolynomialRing",665 "isPrimary",666 "isPrime",667 "isPrimitive",668 "isProjective",669 "isPseudoprime",670 "isQuotientModule",671 "isQuotientOf",672 "isQuotientRing",673 "isReady",674 "isReal",675 "isReduction",676 "isRegularFile",677 "isRing",678 "isSkewCommutative",679 "isSmooth",680 "isSorted",681 "isSquareFree",682 "isStandardGradedPolynomialRing",683 "isSubmodule",684 "isSubquotient",685 "isSubset",686 "isSupportedInZeroLocus",687 "isSurjective",688 "isTable",689 "isUnit",690 "isVeryAmple",691 "isWellDefined",692 "isWeylAlgebra",693 "isc",694 "isomorphism",695 "iterator",696 "jacobian",697 "jacobianDual",698 "join",699 "ker",700 "kernel",701 "kernelLLL",702 "kernelOfLocalization",703 "keys",704 "kill",705 "koszul",706 "last",707 "lcm",708 "leadCoefficient",709 "leadComponent",710 "leadMonomial",711 "leadTerm",712 "left",713 "length",714 "letterParser",715 "lift",716 "liftable",717 "limitFiles",718 "limitProcesses",719 "lines",720 "linkFile",721 "listForm",722 "listSymbols",723 "lngamma",724 "load",725 "loadPackage",726 "localDictionaries",727 "localize",728 "locate",729 "log",730 "log1p",731 "lookup",732 "lookupCount",733 "makeDirectory",734 "makeDocumentTag",735 "makePackageIndex",736 "makeS2",737 "map",738 "markedGB",739 "match",740 "mathML",741 "matrix",742 "max",743 "maxPosition",744 "member",745 "memoize",746 "memoizeClear",747 "memoizeValues",748 "merge",749 "mergePairs",750 "method",751 "methodOptions",752 "methods",753 "midpoint",754 "min",755 "minPosition",756 "minPres",757 "mingens",758 "mingle",759 "minimalBetti",760 "minimalPresentation",761 "minimalPrimes",762 "minimalReduction",763 "minimize",764 "minimizeFilename",765 "minors",766 "minprimes",767 "minus",768 "mkdir",769 "mod",770 "module",771 "modulo",772 "monoid",773 "monomialCurveIdeal",774 "monomialIdeal",775 "monomialSubideal",776 "monomials",777 "moveFile",778 "multidegree",779 "multidoc",780 "multigraded",781 "multiplicity",782 "mutable",783 "mutableIdentity",784 "mutableMatrix",785 "nanosleep",786 "needs",787 "needsPackage",788 "net",789 "netList",790 "newClass",791 "newCoordinateSystem",792 "newNetFile",793 "newPackage",794 "newRing",795 "next",796 "nextPrime",797 "nextkey",798 "nonspaceAnalyzer",799 "norm",800 "normalCone",801 "notImplemented",802 "nullParser",803 "nullSpace",804 "nullhomotopy",805 "numColumns",806 "numRows",807 "number",808 "numcols",809 "numerator",810 "numeric",811 "numericInterval",812 "numgens",813 "numrows",814 "odd",815 "oeis",816 "ofClass",817 "on",818 "openDatabase",819 "openDatabaseOut",820 "openFiles",821 "openIn",822 "openInOut",823 "openListener",824 "openOut",825 "openOutAppend",826 "optP",827 "optionalSignParser",828 "options",829 "orP",830 "override",831 "pack",832 "package",833 "packageTemplate",834 "pad",835 "pager",836 "pairs",837 "parallelApply",838 "parent",839 "part",840 "partition",841 "partitions",842 "parts",843 "pdim",844 "peek",845 "permanents",846 "permutations",847 "pfaffian",848 "pfaffians",849 "pivots",850 "plus",851 "poincare",852 "poincareN",853 "polarize",854 "poly",855 "position",856 "positions",857 "power",858 "powermod",859 "precision",860 "preimage",861 "prepend",862 "presentation",863 "pretty",864 "primaryComponent",865 "primaryDecomposition",866 "print",867 "printString",868 "printerr",869 "processID",870 "product",871 "projectiveHilbertPolynomial",872 "promote",873 "protect",874 "prune",875 "pseudoRemainder",876 "pseudocode",877 "pullback",878 "pushForward",879 "pushout",880 "quotient",881 "quotientRemainder",882 "radical",883 "radicalContainment",884 "random",885 "randomKRationalPoint",886 "randomMutableMatrix",887 "randomSubset",888 "rank",889 "rays",890 "read",891 "readDirectory",892 "readPackage",893 "readlink",894 "realPart",895 "realpath",896 "recursionDepth",897 "reduceHilbert",898 "reducedRowEchelonForm",899 "reductionNumber",900 "reesAlgebra",901 "reesAlgebraIdeal",902 "reesIdeal",903 "regSeqInIdeal",904 "regex",905 "regexQuote",906 "registerFinalizer",907 "regularity",908 "regularizedBeta",909 "regularizedGamma",910 "relations",911 "relativizeFilename",912 "remainder",913 "remove",914 "removeDirectory",915 "removeFile",916 "removeLowestDimension",917 "reorganize",918 "replace",919 "res",920 "reshape",921 "resolution",922 "resultant",923 "reverse",924 "right",925 "ring",926 "ringFromFractions",927 "roots",928 "rotate",929 "round",930 "rowAdd",931 "rowMult",932 "rowPermute",933 "rowRankProfile",934 "rowSwap",935 "rsort",936 "run",937 "runHooks",938 "runLengthEncode",939 "runProgram",940 "same",941 "saturate",942 "scan",943 "scanKeys",944 "scanLines",945 "scanPairs",946 "scanValues",947 "schedule",948 "schreyerOrder",949 "searchPath",950 "sec",951 "sech",952 "seeParsing",953 "select",954 "selectInSubring",955 "selectKeys",956 "selectPairs",957 "selectValues",958 "selectVariables",959 "separate",960 "separateRegexp",961 "sequence",962 "serialNumber",963 "set",964 "setEcho",965 "setGroupID",966 "setIOExclusive",967 "setIOSynchronized",968 "setIOUnSynchronized",969 "setRandomSeed",970 "setup",971 "setupEmacs",972 "setupLift",973 "setupPromote",974 "sheaf",975 "sheafHom",976 "sheafMap",977 "show",978 "showHtml",979 "showTex",980 "sign",981 "simpleDocFrob",982 "sin",983 "singularLocus",984 "sinh",985 "size",986 "size2",987 "sleep",988 "smithNormalForm",989 "solve",990 "someTerms",991 "sort",992 "sortColumns",993 "source",994 "span",995 "specialFiber",996 "specialFiberIdeal",997 "splice",998 "splitWWW",999 "sqrt",1000 "stack",1001 "stacksProject",1002 "stacktrace",1003 "standardForm",1004 "standardPairs",1005 "stashValue",1006 "status",1007 "store",1008 "style",1009 "sub",1010 "sublists",1011 "submatrix",1012 "submatrixByDegrees",1013 "subquotient",1014 "subsets",1015 "substitute",1016 "substring",1017 "subtable",1018 "sum",1019 "super",1020 "support",1021 "switch",1022 "sylvesterMatrix",1023 "symbolBody",1024 "symlinkDirectory",1025 "symlinkFile",1026 "symmetricAlgebra",1027 "symmetricAlgebraIdeal",1028 "symmetricKernel",1029 "symmetricPower",1030 "synonym",1031 "syz",1032 "syzygyScheme",1033 "table",1034 "take",1035 "tally",1036 "tan",1037 "tangentCone",1038 "tangentSheaf",1039 "tanh",1040 "target",1041 "taskResult",1042 "temporaryFileName",1043 "tensor",1044 "tensorAssociativity",1045 "terminalParser",1046 "terms",1047 "testHunekeQuestion",1048 "tests",1049 "tex",1050 "texMath",1051 "times",1052 "toAbsolutePath",1053 "toCC",1054 "toDividedPowers",1055 "toDual",1056 "toExternalString",1057 "toField",1058 "toList",1059 "toLower",1060 "toRR",1061 "toRRi",1062 "toSequence",1063 "toString",1064 "toUpper",1065 "top",1066 "topCoefficients",1067 "topComponents",1068 "trace",1069 "transpose",1070 "trim",1071 "truncate",1072 "truncateOutput",1073 "tutorial",1074 "ultimate",1075 "unbag",1076 "uncurry",1077 "undocumented",1078 "uniform",1079 "uninstallAllPackages",1080 "uninstallPackage",1081 "union",1082 "unique",1083 "uniquePermutations",1084 "unsequence",1085 "unstack",1086 "urlEncode",1087 "use",1088 "userSymbols",1089 "utf8",1090 "utf8check",1091 "utf8substring",1092 "validate",1093 "value",1094 "values",1095 "variety",1096 "vars",1097 "vector",1098 "versalEmbedding",1099 "wait",1100 "wedgeProduct",1101 "weightRange",1102 "whichGm",1103 "width",1104 "wikipedia",1105 "wrap",1106 "youngest",1107 "zero",1108 "zeta"1109 )1110 1111M2CONSTANTS = (1112 "A1BrouwerDegrees",1113 "AbstractSimplicialComplexes",1114 "AbstractToricVarieties",1115 "Acknowledgement",1116 "AdditionalPaths",1117 "AdjointIdeal",1118 "AdjunctionForSurfaces",1119 "AfterEval",1120 "AfterNoPrint",1121 "AfterPrint",1122 "AInfinity",1123 "AlgebraicSplines",1124 "Algorithm",1125 "Alignment",1126 "AllCodimensions",1127 "AllMarkovBases",1128 "allowableThreads",1129 "AnalyzeSheafOnP1",1130 "applicationDirectorySuffix",1131 "argument",1132 "Ascending",1133 "AssociativeAlgebras",1134 "Authors",1135 "AuxiliaryFiles",1136 "backtrace",1137 "Bareiss",1138 "Base",1139 "BaseFunction",1140 "baseRings",1141 "BaseRow",1142 "BasisElementLimit",1143 "Bayer",1144 "BeforePrint",1145 "BeginningMacaulay2",1146 "Benchmark",1147 "BernsteinSato",1148 "Bertini",1149 "BettiCharacters",1150 "BGG",1151 "BIBasis",1152 "Binary",1153 "Binomial",1154 "BinomialEdgeIdeals",1155 "Binomials",1156 "BKZ",1157 "blockMatrixForm",1158 "Body",1159 "BoijSoederberg",1160 "Book3264Examples",1161 "BooleanGB",1162 "Boxes",1163 "Brackets",1164 "Browse",1165 "Bruns",1166 "cache",1167 "CacheExampleOutput",1168 "CallLimit",1169 "CannedExample",1170 "CatalanConstant",1171 "Caveat",1172 "CellularResolutions",1173 "Center",1174 "Certification",1175 "ChainComplexExtras",1176 "ChainComplexOperations",1177 "ChangeMatrix",1178 "CharacteristicClasses",1179 "CheckDocumentation",1180 "Chordal",1181 "Citation",1182 "cite",1183 "Classic",1184 "clearAll",1185 "clearOutput",1186 "close",1187 "closeIn",1188 "closeOut",1189 "ClosestFit",1190 "Code",1191 "CodimensionLimit",1192 "CodingTheory",1193 "CoefficientRing",1194 "Cofactor",1195 "CohenEngine",1196 "CohenTopLevel",1197 "CohomCalg",1198 "CoincidentRootLoci",1199 "commandLine",1200 "compactMatrixForm",