Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/pygments/lexers/macaulay2.py: 100%

13 statements  

« prev     ^ index     » next       coverage.py v7.2.7, created at 2023-06-26 07:02 +0000

1""" 

2 pygments.lexers.macaulay2 

3 ~~~~~~~~~~~~~~~~~~~~~~~~~ 

4 

5 Lexer for Macaulay2. 

6 

7 :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS. 

8 :license: BSD, see LICENSE for details. 

9""" 

10 

11from pygments.lexer import RegexLexer, words 

12from pygments.token import Comment, Keyword, Name, String, Text 

13 

14__all__ = ['Macaulay2Lexer'] 

15 

16# Auto-generated for Macaulay2-1.22. Do not modify this file manually. 

17 

18M2KEYWORDS = ( 

19 "and", 

20 "break", 

21 "catch", 

22 "continue", 

23 "do", 

24 "elapsedTime", 

25 "elapsedTiming", 

26 "else", 

27 "for", 

28 "from", 

29 "global", 

30 "if", 

31 "in", 

32 "list", 

33 "local", 

34 "new", 

35 "not", 

36 "of", 

37 "or", 

38 "return", 

39 "shield", 

40 "SPACE", 

41 "step", 

42 "symbol", 

43 "then", 

44 "threadVariable", 

45 "throw", 

46 "time", 

47 "timing", 

48 "to", 

49 "try", 

50 "when", 

51 "while", 

52 "xor" 

53 ) 

54 

55M2DATATYPES = ( 

56 "Adjacent", 

57 "AffineVariety", 

58 "Analyzer", 

59 "ANCHOR", 

60 "AngleBarList", 

61 "Array", 

62 "AssociativeExpression", 

63 "Bag", 

64 "BasicList", 

65 "BettiTally", 

66 "BinaryOperation", 

67 "BLOCKQUOTE", 

68 "BODY", 

69 "BOLD", 

70 "Boolean", 

71 "BR", 

72 "BUTTON", 

73 "CacheFunction", 

74 "CacheTable", 

75 "CC", 

76 "CDATA", 

77 "ChainComplex", 

78 "ChainComplexMap", 

79 "CODE", 

80 "CoherentSheaf", 

81 "Command", 

82 "COMMENT", 

83 "CompiledFunction", 

84 "CompiledFunctionBody", 

85 "CompiledFunctionClosure", 

86 "ComplexField", 

87 "Constant", 

88 "Database", 

89 "DD", 

90 "Descent", 

91 "Describe", 

92 "Dictionary", 

93 "DirectSum", 

94 "DIV", 

95 "Divide", 

96 "DL", 

97 "DocumentTag", 

98 "DT", 

99 "Eliminate", 

100 "EM", 

101 "EngineRing", 

102 "Equation", 

103 "ExampleItem", 

104 "Expression", 

105 "File", 

106 "FilePosition", 

107 "FractionField", 

108 "Function", 

109 "FunctionApplication", 

110 "FunctionBody", 

111 "FunctionClosure", 

112 "GaloisField", 

113 "GeneralOrderedMonoid", 

114 "GlobalDictionary", 

115 "GradedModule", 

116 "GradedModuleMap", 

117 "GroebnerBasis", 

118 "GroebnerBasisOptions", 

119 "HashTable", 

120 "HEAD", 

121 "HEADER1", 

122 "HEADER2", 

123 "HEADER3", 

124 "HEADER4", 

125 "HEADER5", 

126 "HEADER6", 

127 "HeaderType", 

128 "Holder", 

129 "HR", 

130 "HREF", 

131 "HTML", 

132 "Hybrid", 

133 "Hypertext", 

134 "HypertextContainer", 

135 "HypertextParagraph", 

136 "HypertextVoid", 

137 "Ideal", 

138 "IMG", 

139 "ImmutableType", 

140 "INDENT", 

141 "IndeterminateNumber", 

142 "IndexedVariable", 

143 "IndexedVariableTable", 

144 "InexactField", 

145 "InexactFieldFamily", 

146 "InexactNumber", 

147 "InfiniteNumber", 

148 "INPUT", 

149 "IntermediateMarkUpType", 

150 "ITALIC", 

151 "Iterator", 

152 "KBD", 

153 "Keyword", 

154 "LABEL", 

155 "LATER", 

156 "LI", 

157 "LINK", 

158 "List", 

159 "LITERAL", 

160 "LocalDictionary", 

161 "LowerBound", 

162 "Manipulator", 

163 "MapExpression", 

164 "MarkUpType", 

165 "Matrix", 

166 "MatrixExpression", 

167 "MENU", 

168 "META", 

169 "MethodFunction", 

170 "MethodFunctionBinary", 

171 "MethodFunctionSingle", 

172 "MethodFunctionWithOptions", 

173 "Minus", 

174 "Module", 

175 "Monoid", 

176 "MonoidElement", 

177 "MonomialIdeal", 

178 "MultigradedBettiTally", 

179 "MutableHashTable", 

180 "MutableList", 

181 "MutableMatrix", 

182 "Net", 

183 "NetFile", 

184 "Nothing", 

185 "Number", 

186 "NumberedVerticalList", 

187 "OL", 

188 "OneExpression", 

189 "Option", 

190 "OptionTable", 

191 "OrderedMonoid", 

192 "Package", 

193 "PARA", 

194 "Parenthesize", 

195 "Parser", 

196 "Partition", 

197 "PolynomialRing", 

198 "Power", 

199 "PRE", 

200 "Product", 

201 "ProductOrder", 

202 "Program", 

203 "ProgramRun", 

204 "ProjectiveHilbertPolynomial", 

205 "ProjectiveVariety", 

206 "Pseudocode", 

207 "QQ", 

208 "QuotientRing", 

209 "RealField", 

210 "Resolution", 

211 "Ring", 

212 "RingElement", 

213 "RingFamily", 

214 "RingMap", 

215 "RowExpression", 

216 "RR", 

217 "RRi", 

218 "SAMP", 

219 "SCRIPT", 

220 "ScriptedFunctor", 

221 "SelfInitializingType", 

222 "Sequence", 

223 "Set", 

224 "SheafExpression", 

225 "SheafOfRings", 

226 "SMALL", 

227 "SPAN", 

228 "SparseMonomialVectorExpression", 

229 "SparseVectorExpression", 

230 "String", 

231 "STRONG", 

232 "STYLE", 

233 "SUB", 

234 "Subscript", 

235 "SUBSECTION", 

236 "Sum", 

237 "SumOfTwists", 

238 "SUP", 

239 "Superscript", 

240 "Symbol", 

241 "SymbolBody", 

242 "TABLE", 

243 "Table", 

244 "Tally", 

245 "Task", 

246 "TD", 

247 "TensorProduct", 

248 "TestInput", 

249 "TEX", 

250 "TH", 

251 "Thing", 

252 "Time", 

253 "TITLE", 

254 "TO", 

255 "TO2", 

256 "TOH", 

257 "TR", 

258 "TT", 

259 "Type", 

260 "UL", 

261 "URL", 

262 "VAR", 

263 "Variety", 

264 "Vector", 

265 "VectorExpression", 

266 "VerticalList", 

267 "VirtualTally", 

268 "VisibleList", 

269 "WrapperType", 

270 "ZeroExpression", 

271 "ZZ" 

272 ) 

273 

274M2FUNCTIONS = ( 

275 "about", 

276 "abs", 

277 "accumulate", 

278 "acos", 

279 "acosh", 

280 "acot", 

281 "acoth", 

282 "addCancelTask", 

283 "addDependencyTask", 

284 "addEndFunction", 

285 "addHook", 

286 "addStartFunction", 

287 "addStartTask", 

288 "adjoint", 

289 "agm", 

290 "alarm", 

291 "all", 

292 "ambient", 

293 "analyticSpread", 

294 "ancestor", 

295 "ancestors", 

296 "andP", 

297 "ann", 

298 "annihilator", 

299 "antipode", 

300 "any", 

301 "append", 

302 "applicationDirectory", 

303 "apply", 

304 "applyKeys", 

305 "applyPairs", 

306 "applyTable", 

307 "applyValues", 

308 "apropos", 

309 "arXiv", 

310 "ascii", 

311 "asin", 

312 "asinh", 

313 "ass", 

314 "assert", 

315 "associatedGradedRing", 

316 "associatedPrimes", 

317 "atan", 

318 "atan2", 

319 "atanh", 

320 "atEndOfFile", 

321 "autoload", 

322 "baseFilename", 

323 "baseName", 

324 "baseRing", 

325 "basis", 

326 "beginDocumentation", 

327 "benchmark", 

328 "BesselJ", 

329 "BesselY", 

330 "Beta", 

331 "betti", 

332 "between", 

333 "binomial", 

334 "borel", 

335 "cacheValue", 

336 "cancelTask", 

337 "capture", 

338 "ceiling", 

339 "centerString", 

340 "chainComplex", 

341 "changeBase", 

342 "char", 

343 "characters", 

344 "charAnalyzer", 

345 "check", 

346 "checkDegrees", 

347 "chi", 

348 "class", 

349 "clean", 

350 "clearEcho", 

351 "code", 

352 "codim", 

353 "coefficient", 

354 "coefficientRing", 

355 "coefficients", 

356 "cohomology", 

357 "coimage", 

358 "coker", 

359 "cokernel", 

360 "collectGarbage", 

361 "columnAdd", 

362 "columnate", 

363 "columnMult", 

364 "columnPermute", 

365 "columnRankProfile", 

366 "columnSwap", 

367 "combine", 

368 "commandInterpreter", 

369 "commonest", 

370 "commonRing", 

371 "comodule", 

372 "complement", 

373 "complete", 

374 "components", 

375 "compose", 

376 "compositions", 

377 "compress", 

378 "concatenate", 

379 "conductor", 

380 "cone", 

381 "conjugate", 

382 "connectionCount", 

383 "constParser", 

384 "content", 

385 "contract", 

386 "conwayPolynomial", 

387 "copy", 

388 "copyDirectory", 

389 "copyFile", 

390 "cos", 

391 "cosh", 

392 "cot", 

393 "cotangentSheaf", 

394 "coth", 

395 "cover", 

396 "coverMap", 

397 "cpuTime", 

398 "createTask", 

399 "csc", 

400 "csch", 

401 "currentColumnNumber", 

402 "currentDirectory", 

403 "currentPosition", 

404 "currentRowNumber", 

405 "currentTime", 

406 "deadParser", 

407 "debug", 

408 "debugError", 

409 "decompose", 

410 "deepSplice", 

411 "default", 

412 "degree", 

413 "degreeGroup", 

414 "degreeLength", 

415 "degrees", 

416 "degreesMonoid", 

417 "degreesRing", 

418 "delete", 

419 "demark", 

420 "denominator", 

421 "depth", 

422 "describe", 

423 "det", 

424 "determinant", 

425 "diagonalMatrix", 

426 "diameter", 

427 "dictionary", 

428 "diff", 

429 "difference", 

430 "Digamma", 

431 "dim", 

432 "directSum", 

433 "disassemble", 

434 "discriminant", 

435 "dismiss", 

436 "distinguished", 

437 "divideByVariable", 

438 "doc", 

439 "document", 

440 "drop", 

441 "dual", 

442 "eagonNorthcott", 

443 "echoOff", 

444 "echoOn", 

445 "eigenvalues", 

446 "eigenvectors", 

447 "eint", 

448 "elements", 

449 "eliminate", 

450 "End", 

451 "endPackage", 

452 "entries", 

453 "erase", 

454 "erf", 

455 "erfc", 

456 "error", 

457 "euler", 

458 "eulers", 

459 "even", 

460 "EXAMPLE", 

461 "examples", 

462 "exec", 

463 "exp", 

464 "expectedReesIdeal", 

465 "expm1", 

466 "exponents", 

467 "export", 

468 "exportFrom", 

469 "exportMutable", 

470 "expression", 

471 "extend", 

472 "exteriorPower", 

473 "factor", 

474 "Fano", 

475 "fileExecutable", 

476 "fileExists", 

477 "fileLength", 

478 "fileMode", 

479 "fileReadable", 

480 "fileTime", 

481 "fileWritable", 

482 "fillMatrix", 

483 "findFiles", 

484 "findHeft", 

485 "findProgram", 

486 "findSynonyms", 

487 "first", 

488 "firstkey", 

489 "fittingIdeal", 

490 "flagLookup", 

491 "flatten", 

492 "flattenRing", 

493 "flip", 

494 "floor", 

495 "fold", 

496 "forceGB", 

497 "fork", 

498 "format", 

499 "formation", 

500 "frac", 

501 "fraction", 

502 "frames", 

503 "fromDividedPowers", 

504 "fromDual", 

505 "functionBody", 

506 "futureParser", 

507 "Gamma", 

508 "gb", 

509 "gbRemove", 

510 "gbSnapshot", 

511 "gcd", 

512 "gcdCoefficients", 

513 "gcdLLL", 

514 "GCstats", 

515 "genera", 

516 "generateAssertions", 

517 "generator", 

518 "generators", 

519 "genericMatrix", 

520 "genericSkewMatrix", 

521 "genericSymmetricMatrix", 

522 "gens", 

523 "genus", 

524 "get", 

525 "getc", 

526 "getChangeMatrix", 

527 "getenv", 

528 "getGlobalSymbol", 

529 "getNetFile", 

530 "getNonUnit", 

531 "getPrimeWithRootOfUnity", 

532 "getSymbol", 

533 "getWWW", 

534 "GF", 

535 "globalAssign", 

536 "globalAssignFunction", 

537 "globalAssignment", 

538 "globalReleaseFunction", 

539 "gradedModule", 

540 "gradedModuleMap", 

541 "gramm", 

542 "graphIdeal", 

543 "graphRing", 

544 "Grassmannian", 

545 "groebnerBasis", 

546 "groupID", 

547 "hash", 

548 "hashTable", 

549 "heft", 

550 "height", 

551 "hermite", 

552 "hilbertFunction", 

553 "hilbertPolynomial", 

554 "hilbertSeries", 

555 "hold", 

556 "Hom", 

557 "homogenize", 

558 "homology", 

559 "homomorphism", 

560 "hooks", 

561 "horizontalJoin", 

562 "html", 

563 "httpHeaders", 

564 "hypertext", 

565 "icFracP", 

566 "icFractions", 

567 "icMap", 

568 "icPIdeal", 

569 "ideal", 

570 "idealizer", 

571 "identity", 

572 "image", 

573 "imaginaryPart", 

574 "importFrom", 

575 "independentSets", 

576 "index", 

577 "indices", 

578 "inducedMap", 

579 "inducesWellDefinedMap", 

580 "info", 

581 "input", 

582 "insert", 

583 "installAssignmentMethod", 

584 "installedPackages", 

585 "installHilbertFunction", 

586 "installMethod", 

587 "installMinprimes", 

588 "installPackage", 

589 "instance", 

590 "instances", 

591 "integralClosure", 

592 "integrate", 

593 "intersect", 

594 "intersectInP", 

595 "intersection", 

596 "interval", 

597 "inverse", 

598 "inverseErf", 

599 "inversePermutation", 

600 "inverseRegularizedBeta", 

601 "inverseRegularizedGamma", 

602 "inverseSystem", 

603 "irreducibleCharacteristicSeries", 

604 "irreducibleDecomposition", 

605 "isAffineRing", 

606 "isANumber", 

607 "isBorel", 

608 "isc", 

609 "isCanceled", 

610 "isCommutative", 

611 "isConstant", 

612 "isDirectory", 

613 "isDirectSum", 

614 "isEmpty", 

615 "isField", 

616 "isFinite", 

617 "isFinitePrimeField", 

618 "isFreeModule", 

619 "isGlobalSymbol", 

620 "isHomogeneous", 

621 "isIdeal", 

622 "isInfinite", 

623 "isInjective", 

624 "isInputFile", 

625 "isIsomorphic", 

626 "isIsomorphism", 

627 "isLinearType", 

628 "isListener", 

629 "isLLL", 

630 "isMember", 

631 "isModule", 

632 "isMonomialIdeal", 

633 "isMutable", 

634 "isNormal", 

635 "isOpen", 

636 "isOutputFile", 

637 "isPolynomialRing", 

638 "isPrimary", 

639 "isPrime", 

640 "isPrimitive", 

641 "isPseudoprime", 

642 "isQuotientModule", 

643 "isQuotientOf", 

644 "isQuotientRing", 

645 "isReady", 

646 "isReal", 

647 "isReduction", 

648 "isRegularFile", 

649 "isRing", 

650 "isSkewCommutative", 

651 "isSorted", 

652 "isSquareFree", 

653 "isStandardGradedPolynomialRing", 

654 "isSubmodule", 

655 "isSubquotient", 

656 "isSubset", 

657 "isSupportedInZeroLocus", 

658 "isSurjective", 

659 "isTable", 

660 "isUnit", 

661 "isWellDefined", 

662 "isWeylAlgebra", 

663 "iterator", 

664 "jacobian", 

665 "jacobianDual", 

666 "join", 

667 "ker", 

668 "kernel", 

669 "kernelLLL", 

670 "kernelOfLocalization", 

671 "keys", 

672 "kill", 

673 "koszul", 

674 "last", 

675 "lcm", 

676 "leadCoefficient", 

677 "leadComponent", 

678 "leadMonomial", 

679 "leadTerm", 

680 "left", 

681 "length", 

682 "letterParser", 

683 "lift", 

684 "liftable", 

685 "limitFiles", 

686 "limitProcesses", 

687 "lines", 

688 "linkFile", 

689 "listForm", 

690 "listSymbols", 

691 "LLL", 

692 "lngamma", 

693 "load", 

694 "loadPackage", 

695 "localDictionaries", 

696 "localize", 

697 "locate", 

698 "log", 

699 "log1p", 

700 "lookup", 

701 "lookupCount", 

702 "LUdecomposition", 

703 "M2CODE", 

704 "makeDirectory", 

705 "makeDocumentTag", 

706 "makePackageIndex", 

707 "makeS2", 

708 "map", 

709 "markedGB", 

710 "match", 

711 "mathML", 

712 "matrix", 

713 "max", 

714 "maxPosition", 

715 "member", 

716 "memoize", 

717 "memoizeClear", 

718 "memoizeValues", 

719 "merge", 

720 "mergePairs", 

721 "method", 

722 "methodOptions", 

723 "methods", 

724 "midpoint", 

725 "min", 

726 "mingens", 

727 "mingle", 

728 "minimalBetti", 

729 "minimalPresentation", 

730 "minimalPrimes", 

731 "minimalReduction", 

732 "minimize", 

733 "minimizeFilename", 

734 "minors", 

735 "minPosition", 

736 "minPres", 

737 "minprimes", 

738 "minus", 

739 "mkdir", 

740 "mod", 

741 "module", 

742 "modulo", 

743 "monoid", 

744 "monomialCurveIdeal", 

745 "monomialIdeal", 

746 "monomials", 

747 "monomialSubideal", 

748 "moveFile", 

749 "multidegree", 

750 "multidoc", 

751 "multigraded", 

752 "multiplicity", 

753 "mutable", 

754 "mutableIdentity", 

755 "mutableMatrix", 

756 "nanosleep", 

757 "needs", 

758 "needsPackage", 

759 "net", 

760 "netList", 

761 "newClass", 

762 "newCoordinateSystem", 

763 "newNetFile", 

764 "newPackage", 

765 "newRing", 

766 "next", 

767 "nextkey", 

768 "nextPrime", 

769 "NNParser", 

770 "nonspaceAnalyzer", 

771 "norm", 

772 "normalCone", 

773 "notImplemented", 

774 "nullhomotopy", 

775 "nullParser", 

776 "nullSpace", 

777 "number", 

778 "numcols", 

779 "numColumns", 

780 "numerator", 

781 "numeric", 

782 "numericInterval", 

783 "numgens", 

784 "numRows", 

785 "numrows", 

786 "odd", 

787 "oeis", 

788 "ofClass", 

789 "on", 

790 "openDatabase", 

791 "openDatabaseOut", 

792 "openFiles", 

793 "openIn", 

794 "openInOut", 

795 "openListener", 

796 "openOut", 

797 "openOutAppend", 

798 "optionalSignParser", 

799 "options", 

800 "optP", 

801 "orP", 

802 "override", 

803 "pack", 

804 "package", 

805 "packageTemplate", 

806 "pad", 

807 "pager", 

808 "pairs", 

809 "parent", 

810 "part", 

811 "partition", 

812 "partitions", 

813 "parts", 

814 "pdim", 

815 "peek", 

816 "permanents", 

817 "permutations", 

818 "pfaffians", 

819 "pivots", 

820 "plus", 

821 "poincare", 

822 "poincareN", 

823 "polarize", 

824 "poly", 

825 "position", 

826 "positions", 

827 "power", 

828 "powermod", 

829 "precision", 

830 "preimage", 

831 "prepend", 

832 "presentation", 

833 "pretty", 

834 "primaryComponent", 

835 "primaryDecomposition", 

836 "print", 

837 "printerr", 

838 "printString", 

839 "processID", 

840 "product", 

841 "profile", 

842 "Proj", 

843 "projectiveHilbertPolynomial", 

844 "promote", 

845 "protect", 

846 "prune", 

847 "pseudocode", 

848 "pseudoRemainder", 

849 "pushForward", 

850 "QQParser", 

851 "QRDecomposition", 

852 "quotient", 

853 "quotientRemainder", 

854 "radical", 

855 "radicalContainment", 

856 "random", 

857 "randomKRationalPoint", 

858 "randomMutableMatrix", 

859 "rank", 

860 "read", 

861 "readDirectory", 

862 "readlink", 

863 "readPackage", 

864 "realPart", 

865 "realpath", 

866 "recursionDepth", 

867 "reducedRowEchelonForm", 

868 "reduceHilbert", 

869 "reductionNumber", 

870 "reesAlgebra", 

871 "reesAlgebraIdeal", 

872 "reesIdeal", 

873 "regex", 

874 "regexQuote", 

875 "registerFinalizer", 

876 "regSeqInIdeal", 

877 "regularity", 

878 "regularizedBeta", 

879 "regularizedGamma", 

880 "relations", 

881 "relativizeFilename", 

882 "remainder", 

883 "remove", 

884 "removeDirectory", 

885 "removeFile", 

886 "removeLowestDimension", 

887 "reorganize", 

888 "replace", 

889 "res", 

890 "reshape", 

891 "resolution", 

892 "resultant", 

893 "reverse", 

894 "right", 

895 "ring", 

896 "ringFromFractions", 

897 "roots", 

898 "rotate", 

899 "round", 

900 "rowAdd", 

901 "rowMult", 

902 "rowPermute", 

903 "rowRankProfile", 

904 "rowSwap", 

905 "rsort", 

906 "run", 

907 "runHooks", 

908 "runLengthEncode", 

909 "runProgram", 

910 "same", 

911 "saturate", 

912 "scan", 

913 "scanKeys", 

914 "scanLines", 

915 "scanPairs", 

916 "scanValues", 

917 "schedule", 

918 "schreyerOrder", 

919 "Schubert", 

920 "searchPath", 

921 "sec", 

922 "sech", 

923 "seeParsing", 

924 "select", 

925 "selectInSubring", 

926 "selectVariables", 

927 "separate", 

928 "separateRegexp", 

929 "sequence", 

930 "serialNumber", 

931 "set", 

932 "setEcho", 

933 "setGroupID", 

934 "setIOExclusive", 

935 "setIOSynchronized", 

936 "setIOUnSynchronized", 

937 "setRandomSeed", 

938 "setup", 

939 "setupEmacs", 

940 "sheaf", 

941 "sheafHom", 

942 "show", 

943 "showHtml", 

944 "showTex", 

945 "simpleDocFrob", 

946 "sin", 

947 "singularLocus", 

948 "sinh", 

949 "size", 

950 "size2", 

951 "sleep", 

952 "smithNormalForm", 

953 "solve", 

954 "someTerms", 

955 "sort", 

956 "sortColumns", 

957 "source", 

958 "span", 

959 "Spec", 

960 "specialFiber", 

961 "specialFiberIdeal", 

962 "splice", 

963 "splitWWW", 

964 "sqrt", 

965 "stack", 

966 "stacksProject", 

967 "standardForm", 

968 "standardPairs", 

969 "stashValue", 

970 "status", 

971 "style", 

972 "sub", 

973 "sublists", 

974 "submatrix", 

975 "submatrixByDegrees", 

976 "subquotient", 

977 "subsets", 

978 "substitute", 

979 "substring", 

980 "subtable", 

981 "sum", 

982 "super", 

983 "support", 

984 "SVD", 

985 "switch", 

986 "sylvesterMatrix", 

987 "symbolBody", 

988 "symlinkDirectory", 

989 "symlinkFile", 

990 "symmetricAlgebra", 

991 "symmetricAlgebraIdeal", 

992 "symmetricKernel", 

993 "symmetricPower", 

994 "synonym", 

995 "SYNOPSIS", 

996 "syz", 

997 "syzygyScheme", 

998 "table", 

999 "take", 

1000 "tally", 

1001 "tan", 

1002 "tangentCone", 

1003 "tangentSheaf", 

1004 "tanh", 

1005 "target", 

1006 "taskResult", 

1007 "temporaryFileName", 

1008 "tensor", 

1009 "tensorAssociativity", 

1010 "terminalParser", 

1011 "terms", 

1012 "TEST", 

1013 "testHunekeQuestion", 

1014 "tests", 

1015 "tex", 

1016 "texMath", 

1017 "times", 

1018 "toAbsolutePath", 

1019 "toCC", 

1020 "toDividedPowers", 

1021 "toDual", 

1022 "toExternalString", 

1023 "toField", 

1024 "toList", 

1025 "toLower", 

1026 "top", 

1027 "topCoefficients", 

1028 "topComponents", 

1029 "toRR", 

1030 "toRRi", 

1031 "toSequence", 

1032 "toString", 

1033 "toUpper", 

1034 "trace", 

1035 "transpose", 

1036 "trim", 

1037 "truncate", 

1038 "truncateOutput", 

1039 "tutorial", 

1040 "ultimate", 

1041 "unbag", 

1042 "uncurry", 

1043 "undocumented", 

1044 "uniform", 

1045 "uninstallAllPackages", 

1046 "uninstallPackage", 

1047 "unique", 

1048 "uniquePermutations", 

1049 "unsequence", 

1050 "unstack", 

1051 "urlEncode", 

1052 "use", 

1053 "userSymbols", 

1054 "utf8", 

1055 "utf8check", 

1056 "utf8substring", 

1057 "validate", 

1058 "value", 

1059 "values", 

1060 "variety", 

1061 "vars", 

1062 "vector", 

1063 "versalEmbedding", 

1064 "wait", 

1065 "wedgeProduct", 

1066 "weightRange", 

1067 "whichGm", 

1068 "width", 

1069 "wikipedia", 

1070 "wrap", 

1071 "youngest", 

1072 "zero", 

1073 "zeta", 

1074 "ZZParser" 

1075 ) 

1076 

1077M2CONSTANTS = ( 

1078 "AbstractToricVarieties", 

1079 "Acknowledgement", 

1080 "AdditionalPaths", 

1081 "AdjointIdeal", 

1082 "AfterEval", 

1083 "AfterNoPrint", 

1084 "AfterPrint", 

1085 "AInfinity", 

1086 "AlgebraicSplines", 

1087 "Algorithm", 

1088 "Alignment", 

1089 "AllCodimensions", 

1090 "allowableThreads", 

1091 "AnalyzeSheafOnP1", 

1092 "applicationDirectorySuffix", 

1093 "argument", 

1094 "Ascending", 

1095 "AssociativeAlgebras", 

1096 "Authors", 

1097 "AuxiliaryFiles", 

1098 "backtrace", 

1099 "Bareiss", 

1100 "BaseFunction", 

1101 "baseRings", 

1102 "BaseRow", 

1103 "BasisElementLimit", 

1104 "Bayer", 

1105 "BeforePrint", 

1106 "BeginningMacaulay2", 

1107 "Benchmark", 

1108 "BernsteinSato", 

1109 "Bertini", 

1110 "BettiCharacters", 

1111 "BGG", 

1112 "BIBasis", 

1113 "Binary", 

1114 "Binomial", 

1115 "BinomialEdgeIdeals", 

1116 "Binomials", 

1117 "BKZ", 

1118 "blockMatrixForm", 

1119 "Body", 

1120 "BoijSoederberg", 

1121 "Book3264Examples", 

1122 "BooleanGB", 

1123 "Boxes", 

1124 "Browse", 

1125 "Bruns", 

1126 "cache", 

1127 "CacheExampleOutput", 

1128 "CallLimit", 

1129 "CannedExample", 

1130 "CatalanConstant", 

1131 "Caveat", 

1132 "CellularResolutions", 

1133 "Center", 

1134 "Certification", 

1135 "ChainComplexExtras", 

1136 "ChainComplexOperations", 

1137 "ChangeMatrix", 

1138 "CharacteristicClasses", 

1139 "CheckDocumentation", 

1140 "Chordal", 

1141 "Classic", 

1142 "clearAll", 

1143 "clearOutput", 

1144 "close", 

1145 "closeIn", 

1146 "closeOut", 

1147 "ClosestFit", 

1148 "Code", 

1149 "CodimensionLimit", 

1150 "CodingTheory", 

1151 "CoefficientRing", 

1152 "Cofactor", 

1153 "CohenEngine", 

1154 "CohenTopLevel", 

1155 "CohomCalg", 

1156 "CoincidentRootLoci", 

1157 "commandLine", 

1158 "compactMatrixForm", 

1159 "Complement", 

1160 "CompleteIntersection", 

1161 "CompleteIntersectionResolutions", 

1162 "Complexes", 

1163 "ConductorElement", 

1164 "Configuration", 

1165 "ConformalBlocks", 

1166 "Consequences", 

1167 "Constants", 

1168 "Contributors", 

1169 "ConvexInterface", 

1170 "ConwayPolynomials", 

1171 "copyright", 

1172 "Core", 

1173 "CorrespondenceScrolls", 

1174 "CotangentSchubert", 

1175 "Cremona", 

1176 "currentFileDirectory", 

1177 "currentFileName", 

1178 "currentLayout", 

1179 "currentPackage", 

1180 "Cyclotomic", 

1181 "Date", 

1182 "dd", 

1183 "DebuggingMode", 

1184 "debuggingMode", 

1185 "debugLevel", 

1186 "DecomposableSparseSystems", 

1187 "Decompose", 

1188 "Default", 

1189 "defaultPrecision", 

1190 "Degree", 

1191 "DegreeGroup", 

1192 "DegreeLift", 

1193 "DegreeLimit", 

1194 "DegreeMap", 

1195 "DegreeOrder", 

1196 "DegreeRank", 

1197 "Degrees", 

1198 "Dense", 

1199 "Density", 

1200 "Depth", 

1201 "Descending", 

1202 "Description", 

1203 "DeterminantalRepresentations", 

1204 "DGAlgebras", 

1205 "dictionaryPath", 

1206 "DiffAlg", 

1207 "Dispatch", 

1208 "DivideConquer", 

1209 "DividedPowers", 

1210 "Divisor", 

1211 "Dmodules", 

1212 "docExample", 

1213 "docTemplate", 

1214 "Down", 

1215 "Dynamic", 

1216 "EagonResolution", 

1217 "EdgeIdeals", 

1218 "edit", 

1219 "EigenSolver", 

1220 "EisenbudHunekeVasconcelos", 

1221 "Elimination", 

1222 "EliminationMatrices", 

1223 "EllipticCurves", 

1224 "EllipticIntegrals", 

1225 "Email", 

1226 "end", 

1227 "endl", 

1228 "Engine", 

1229 "engineDebugLevel", 

1230 "EngineTests", 

1231 "EnumerationCurves", 

1232 "environment", 

1233 "EquivariantGB", 

1234 "errorDepth", 

1235 "EulerConstant", 

1236 "Example", 

1237 "ExampleFiles", 

1238 "ExampleSystems", 

1239 "Exclude", 

1240 "exit", 

1241 "Ext", 

1242 "ExteriorIdeals", 

1243 "ExteriorModules", 

1244 "false", 

1245 "FastMinors", 

1246 "FastNonminimal", 

1247 "FGLM", 

1248 "fileDictionaries", 

1249 "fileExitHooks", 

1250 "FileName", 

1251 "FindOne", 

1252 "FiniteFittingIdeals", 

1253 "First", 

1254 "FirstPackage", 

1255 "FlatMonoid", 

1256 "Flexible", 

1257 "flush", 

1258 "FollowLinks", 

1259 "ForeignFunctions", 

1260 "FormalGroupLaws", 

1261 "Format", 

1262 "FourierMotzkin", 

1263 "FourTiTwo", 

1264 "fpLLL", 

1265 "FrobeniusThresholds", 

1266 "FunctionFieldDesingularization", 

1267 "GBDegrees", 

1268 "gbTrace", 

1269 "GenerateAssertions", 

1270 "Generic", 

1271 "GenericInitialIdeal", 

1272 "GeometricDecomposability", 

1273 "gfanInterface", 

1274 "Givens", 

1275 "GKMVarieties", 

1276 "GLex", 

1277 "Global", 

1278 "GlobalAssignHook", 

1279 "globalAssignmentHooks", 

1280 "GlobalHookStore", 

1281 "GlobalReleaseHook", 

1282 "Gorenstein", 

1283 "GradedLieAlgebras", 

1284 "GraphicalModels", 

1285 "GraphicalModelsMLE", 

1286 "Graphics", 

1287 "Graphs", 

1288 "GRevLex", 

1289 "GroebnerStrata", 

1290 "GroebnerWalk", 

1291 "GroupLex", 

1292 "GroupRevLex", 

1293 "GTZ", 

1294 "Hadamard", 

1295 "handleInterrupts", 

1296 "HardDegreeLimit", 

1297 "Heading", 

1298 "Headline", 

1299 "Heft", 

1300 "Height", 

1301 "help", 

1302 "Hermite", 

1303 "Hermitian", 

1304 "HH", 

1305 "hh", 

1306 "HigherCIOperators", 

1307 "HighestWeights", 

1308 "Hilbert", 

1309 "HodgeIntegrals", 

1310 "HolonomicSystems", 

1311 "homeDirectory", 

1312 "HomePage", 

1313 "Homogeneous", 

1314 "Homogeneous2", 

1315 "HomotopyLieAlgebra", 

1316 "HorizontalSpace", 

1317 "HyperplaneArrangements", 

1318 "id", 

1319 "IgnoreExampleErrors", 

1320 "ii", 

1321 "incomparable", 

1322 "Increment", 

1323 "indeterminate", 

1324 "Index", 

1325 "indexComponents", 

1326 "infinity", 

1327 "InfoDirSection", 

1328 "infoHelp", 

1329 "Inhomogeneous", 

1330 "Inputs", 

1331 "InstallPrefix", 

1332 "IntegralClosure", 

1333 "interpreterDepth", 

1334 "Intersection", 

1335 "InvariantRing", 

1336 "InverseMethod", 

1337 "Inverses", 

1338 "InverseSystems", 

1339 "Invertible", 

1340 "InvolutiveBases", 

1341 "Isomorphism", 

1342 "Item", 

1343 "Iterate", 

1344 "Jacobian", 

1345 "Jets", 

1346 "Join", 

1347 "JSON", 

1348 "Jupyter", 

1349 "K3Carpets", 

1350 "K3Surfaces", 

1351 "Keep", 

1352 "KeepFiles", 

1353 "KeepZeroes", 

1354 "Key", 

1355 "Keywords", 

1356 "Kronecker", 

1357 "KustinMiller", 

1358 "lastMatch", 

1359 "LatticePolytopes", 

1360 "Layout", 

1361 "Left", 

1362 "LengthLimit", 

1363 "Lex", 

1364 "LexIdeals", 

1365 "Licenses", 

1366 "LieTypes", 

1367 "Limit", 

1368 "Linear", 

1369 "LinearAlgebra", 

1370 "LinearTruncations", 

1371 "lineNumber", 

1372 "listLocalSymbols", 

1373 "listUserSymbols", 

1374 "LLLBases", 

1375 "loadDepth", 

1376 "LoadDocumentation", 

1377 "loadedFiles", 

1378 "loadedPackages", 

1379 "Local", 

1380 "LocalRings", 

1381 "LongPolynomial", 

1382 "M0nbar", 

1383 "Macaulay2Doc", 

1384 "MakeDocumentation", 

1385 "MakeHTML", 

1386 "MakeInfo", 

1387 "MakeLinks", 

1388 "MakePDF", 

1389 "MapleInterface", 

1390 "Markov", 

1391 "MatchingFields", 

1392 "Matroids", 

1393 "maxAllowableThreads", 

1394 "maxExponent", 

1395 "MaximalRank", 

1396 "MaxReductionCount", 

1397 "MCMApproximations", 

1398 "MergeTeX", 

1399 "minExponent", 

1400 "MinimalGenerators", 

1401 "MinimalMatrix", 

1402 "minimalPresentationMap", 

1403 "minimalPresentationMapInv", 

1404 "MinimalPrimes", 

1405 "Minimize", 

1406 "MinimumVersion", 

1407 "Miura", 

1408 "MixedMultiplicity", 

1409 "ModuleDeformations", 

1410 "MonodromySolver", 

1411 "Monomial", 

1412 "MonomialAlgebras", 

1413 "MonomialIntegerPrograms", 

1414 "MonomialOrbits", 

1415 "MonomialOrder", 

1416 "Monomials", 

1417 "MonomialSize", 

1418 "MultiGradedRationalMap", 

1419 "MultiplicitySequence", 

1420 "MultiplierIdeals", 

1421 "MultiplierIdealsDim2", 

1422 "MultiprojectiveVarieties", 

1423 "NAGtypes", 

1424 "Name", 

1425 "Nauty", 

1426 "NautyGraphs", 

1427 "NCAlgebra", 

1428 "NCLex", 

1429 "NewFromMethod", 

1430 "newline", 

1431 "NewMethod", 

1432 "NewOfFromMethod", 

1433 "NewOfMethod", 

1434 "nil", 

1435 "Node", 

1436 "NoetherianOperators", 

1437 "NoetherNormalization", 

1438 "NonminimalComplexes", 

1439 "NoPrint", 

1440 "Normaliz", 

1441 "NormalToricVarieties", 

1442 "notify", 

1443 "NTL", 

1444 "null", 

1445 "nullaryMethods", 

1446 "NumericalAlgebraicGeometry", 

1447 "NumericalCertification", 

1448 "NumericalImplicitization", 

1449 "NumericalLinearAlgebra", 

1450 "NumericalSchubertCalculus", 

1451 "NumericSolutions", 

1452 "OldPolyhedra", 

1453 "OldToricVectorBundles", 

1454 "OnlineLookup", 

1455 "OO", 

1456 "oo", 

1457 "ooo", 

1458 "oooo", 

1459 "OpenMath", 

1460 "operatorAttributes", 

1461 "OptionalComponentsPresent", 

1462 "Options", 

1463 "Order", 

1464 "order", 

1465 "OutputDictionary", 

1466 "Outputs", 

1467 "PackageCitations", 

1468 "PackageDictionary", 

1469 "PackageExports", 

1470 "PackageImports", 

1471 "PackageTemplate", 

1472 "PairLimit", 

1473 "PairsRemaining", 

1474 "Parametrization", 

1475 "Parsing", 

1476 "path", 

1477 "PencilsOfQuadrics", 

1478 "Permanents", 

1479 "PHCpack", 

1480 "PhylogeneticTrees", 

1481 "pi", 

1482 "PieriMaps", 

1483 "PlaneCurveSingularities", 

1484 "Points", 

1485 "Polyhedra", 

1486 "Polymake", 

1487 "PolyominoIdeals", 

1488 "Posets", 

1489 "Position", 

1490 "PositivityToricBundles", 

1491 "POSIX", 

1492 "Postfix", 

1493 "Pre", 

1494 "Precision", 

1495 "Prefix", 

1496 "prefixDirectory", 

1497 "prefixPath", 

1498 "PrimaryDecomposition", 

1499 "PrimaryTag", 

1500 "PrimitiveElement", 

1501 "Print", 

1502 "printingAccuracy", 

1503 "printingLeadLimit", 

1504 "printingPrecision", 

1505 "printingSeparator", 

1506 "printingTimeLimit", 

1507 "printingTrailLimit", 

1508 "printWidth", 

1509 "Probability", 

1510 "profileSummary", 

1511 "programPaths", 

1512 "Projective", 

1513 "Prune", 

1514 "PruneComplex", 

1515 "pruningMap", 

1516 "PseudomonomialPrimaryDecomposition", 

1517 "Pullback", 

1518 "PushForward", 

1519 "Python", 

1520 "QthPower", 

1521 "Quasidegrees", 

1522 "QuaternaryQuartics", 

1523 "QuillenSuslin", 

1524 "quit", 

1525 "Quotient", 

1526 "Radical", 

1527 "RadicalCodim1", 

1528 "RaiseError", 

1529 "RandomCanonicalCurves", 

1530 "RandomComplexes", 

1531 "RandomCurves", 

1532 "RandomCurvesOverVerySmallFiniteFields", 

1533 "RandomGenus14Curves", 

1534 "RandomIdeals", 

1535 "RandomMonomialIdeals", 

1536 "RandomObjects", 

1537 "RandomPlaneCurves", 

1538 "RandomPoints", 

1539 "RandomSpaceCurves", 

1540 "Range", 

1541 "RationalMaps", 

1542 "RationalPoints", 

1543 "RationalPoints2", 

1544 "ReactionNetworks", 

1545 "RealFP", 

1546 "RealQP", 

1547 "RealQP1", 

1548 "RealRoots", 

1549 "RealRR", 

1550 "RealXD", 

1551 "recursionLimit", 

1552 "Reduce", 

1553 "ReesAlgebra", 

1554 "References", 

1555 "ReflexivePolytopesDB", 

1556 "Regularity", 

1557 "RelativeCanonicalResolution", 

1558 "Reload", 

1559 "RemakeAllDocumentation", 

1560 "RerunExamples", 

1561 "ResidualIntersections", 

1562 "ResLengthThree", 

1563 "ResolutionsOfStanleyReisnerRings", 

1564 "restart", 

1565 "Result", 

1566 "Resultants", 

1567 "returnCode", 

1568 "Reverse", 

1569 "RevLex", 

1570 "Right", 

1571 "rootPath", 

1572 "rootURI", 

1573 "RunDirectory", 

1574 "RunExamples", 

1575 "RunExternalM2", 

1576 "SagbiGbDetection", 

1577 "Saturation", 

1578 "Schubert2", 

1579 "SchurComplexes", 

1580 "SchurFunctors", 

1581 "SchurRings", 

1582 "scriptCommandLine", 

1583 "SCSCP", 

1584 "SectionRing", 

1585 "SeeAlso", 

1586 "SegreClasses", 

1587 "SemidefiniteProgramming", 

1588 "Seminormalization", 

1589 "SeparateExec", 

1590 "Serialization", 

1591 "sheafExt", 

1592 "ShimoyamaYokoyama", 

1593 "showClassStructure", 

1594 "showStructure", 

1595 "showUserStructure", 

1596 "SimpleDoc", 

1597 "SimplicialComplexes", 

1598 "SimplicialDecomposability", 

1599 "SimplicialPosets", 

1600 "SimplifyFractions", 

1601 "SizeLimit", 

1602 "SkewCommutative", 

1603 "SlackIdeals", 

1604 "SLnEquivariantMatrices", 

1605 "SLPexpressions", 

1606 "Sort", 

1607 "SortStrategy", 

1608 "SourceCode", 

1609 "SourceRing", 

1610 "SpaceCurves", 

1611 "SparseResultants", 

1612 "SpechtModule", 

1613 "SpecialFanoFourfolds", 

1614 "SpectralSequences", 

1615 "SRdeformations", 

1616 "Standard", 

1617 "StartWithOneMinor", 

1618 "StatePolytope", 

1619 "StatGraphs", 

1620 "stderr", 

1621 "stdio", 

1622 "StopBeforeComputation", 

1623 "stopIfError", 

1624 "StopIteration", 

1625 "StopWithMinimalGenerators", 

1626 "Strategy", 

1627 "Strict", 

1628 "StronglyStableIdeals", 

1629 "Style", 

1630 "SubalgebraBases", 

1631 "Subnodes", 

1632 "SubringLimit", 

1633 "subscript", 

1634 "Sugarless", 

1635 "SumsOfSquares", 

1636 "SuperLinearAlgebra", 

1637 "superscript", 

1638 "SVDComplexes", 

1639 "SwitchingFields", 

1640 "SymbolicPowers", 

1641 "SymmetricPolynomials", 

1642 "Synopsis", 

1643 "Syzygies", 

1644 "SyzygyLimit", 

1645 "SyzygyMatrix", 

1646 "SyzygyRows", 

1647 "TangentCone", 

1648 "TateOnProducts", 

1649 "TensorComplexes", 

1650 "Test", 

1651 "testExample", 

1652 "TestIdeals", 

1653 "TeXmacs", 

1654 "Text", 

1655 "ThinSincereQuivers", 

1656 "ThreadedGB", 

1657 "Threshold", 

1658 "Topcom", 

1659 "topLevelMode", 

1660 "Tor", 

1661 "TorAlgebra", 

1662 "Toric", 

1663 "ToricInvariants", 

1664 "ToricTopology", 

1665 "ToricVectorBundles", 

1666 "Torsion", 

1667 "TotalPairs", 

1668 "Tree", 

1669 "TriangularSets", 

1670 "Triangulations", 

1671 "Tries", 

1672 "Trim", 

1673 "Triplets", 

1674 "Tropical", 

1675 "true", 

1676 "Truncate", 

1677 "Truncations", 

1678 "TSpreadIdeals", 

1679 "TypicalValue", 

1680 "typicalValues", 

1681 "Undo", 

1682 "Unique", 

1683 "Units", 

1684 "Unmixed", 

1685 "Up", 

1686 "UpdateOnly", 

1687 "UpperTriangular", 

1688 "Usage", 

1689 "UseCachedExampleOutput", 

1690 "UseHilbertFunction", 

1691 "UserMode", 

1692 "UseSyzygies", 

1693 "Variable", 

1694 "VariableBaseName", 

1695 "Variables", 

1696 "Vasconcelos", 

1697 "VectorFields", 

1698 "VectorGraphics", 

1699 "Verbose", 

1700 "Verbosity", 

1701 "Verify", 

1702 "VersalDeformations", 

1703 "Version", 

1704 "version", 

1705 "VerticalSpace", 

1706 "viewHelp", 

1707 "VirtualResolutions", 

1708 "Visualize", 

1709 "WebApp", 

1710 "Weights", 

1711 "WeylAlgebra", 

1712 "WeylGroups", 

1713 "WhitneyStratifications", 

1714 "Wrap", 

1715 "XML" 

1716 ) 

1717 

1718class Macaulay2Lexer(RegexLexer): 

1719 """Lexer for Macaulay2, a software system for research in algebraic geometry.""" 

1720 

1721 name = 'Macaulay2' 

1722 url = 'https://faculty.math.illinois.edu/Macaulay2/' 

1723 aliases = ['macaulay2'] 

1724 filenames = ['*.m2'] 

1725 

1726 tokens = { 

1727 'root': [ 

1728 (r'--.*$', Comment.Single), 

1729 (r'-\*', Comment.Multiline, 'block comment'), 

1730 (r'"', String, 'quote string'), 

1731 (r'///', String, 'slash string'), 

1732 (words(M2KEYWORDS, prefix=r'\b', suffix=r'\b'), Keyword), 

1733 (words(M2DATATYPES, prefix=r'\b', suffix=r'\b'), Name.Builtin), 

1734 (words(M2FUNCTIONS, prefix=r'\b', suffix=r'\b'), Name.Function), 

1735 (words(M2CONSTANTS, prefix=r'\b', suffix=r'\b'), Name.Constant), 

1736 (r'\s+', Text.Whitespace), 

1737 (r'.', Text) 

1738 ], 

1739 'block comment' : [ 

1740 (r'[^*-]+', Comment.Multiline), 

1741 (r'\*-', Comment.Multiline, '#pop'), 

1742 (r'[*-]', Comment.Multiline) 

1743 ], 

1744 'quote string' : [ 

1745 (r'[^\\"]+', String), 

1746 (r'"', String, '#pop'), 

1747 (r'\\"?', String), 

1748 ], 

1749 'slash string' : [ 

1750 (r'[^/]+', String), 

1751 (r'(//)+(?!/)', String), 

1752 (r'/(//)+(?!/)', String, '#pop'), 

1753 (r'/', String) 

1754 ] 

1755 }