macaulay2.py 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914
  1. """
  2. pygments.lexers.macaulay2
  3. ~~~~~~~~~~~~~~~~~~~~~~~~~
  4. Lexer for Macaulay2.
  5. :copyright: Copyright 2006-present by the Pygments team, see AUTHORS.
  6. :license: BSD, see LICENSE for details.
  7. """
  8. from pygments.lexer import RegexLexer, words
  9. from pygments.token import Comment, Keyword, Name, String, Text
  10. __all__ = ['Macaulay2Lexer']
  11. # Auto-generated for Macaulay2-1.26.06. Do not modify this file manually.
  12. M2KEYWORDS = (
  13. "SPACE",
  14. "TEST",
  15. "and",
  16. "break",
  17. "breakpoint",
  18. "catch",
  19. "continue",
  20. "do",
  21. "elapsedTime",
  22. "elapsedTiming",
  23. "else",
  24. "except",
  25. "finish",
  26. "for",
  27. "from",
  28. "global",
  29. "if",
  30. "in",
  31. "list",
  32. "local",
  33. "new",
  34. "not",
  35. "of",
  36. "or",
  37. "profile",
  38. "return",
  39. "shield",
  40. "step",
  41. "symbol",
  42. "then",
  43. "threadLocal",
  44. "threadVariable",
  45. "throw",
  46. "time",
  47. "timing",
  48. "to",
  49. "trap",
  50. "try",
  51. "when",
  52. "while",
  53. "xor"
  54. )
  55. M2DATATYPES = (
  56. "ANCHOR",
  57. "Adjacent",
  58. "AffineVariety",
  59. "Analyzer",
  60. "AngleBarList",
  61. "Array",
  62. "AssociativeExpression",
  63. "AtomicInt",
  64. "BLOCKQUOTE",
  65. "BODY",
  66. "BOLD",
  67. "BR",
  68. "BUTTON",
  69. "Bag",
  70. "BasicList",
  71. "BettiTally",
  72. "BinaryOperation",
  73. "Boolean",
  74. "CC",
  75. "CCi",
  76. "CDATA",
  77. "CODE",
  78. "COMMENT",
  79. "CacheTable",
  80. "CoherentSheaf",
  81. "Command",
  82. "CompiledFunction",
  83. "CompiledFunctionBody",
  84. "CompiledFunctionClosure",
  85. "Complex",
  86. "ComplexField",
  87. "ComplexMap",
  88. "Constant",
  89. "DD",
  90. "DIV",
  91. "DL",
  92. "DT",
  93. "Database",
  94. "Descent",
  95. "Describe",
  96. "Dictionary",
  97. "DirectSum",
  98. "Divide",
  99. "DocumentTag",
  100. "EM",
  101. "Eliminate",
  102. "EngineRing",
  103. "Equation",
  104. "Error",
  105. "ExampleItem",
  106. "Expression",
  107. "File",
  108. "FilePosition",
  109. "FractionField",
  110. "Function",
  111. "FunctionApplication",
  112. "FunctionBody",
  113. "FunctionClosure",
  114. "GaloisField",
  115. "GeneralOrderedMonoid",
  116. "GlobalDictionary",
  117. "GradedModule",
  118. "GradedModuleMap",
  119. "GroebnerBasis",
  120. "GroebnerBasisOptions",
  121. "HEAD",
  122. "HEADER1",
  123. "HEADER2",
  124. "HEADER3",
  125. "HEADER4",
  126. "HEADER5",
  127. "HEADER6",
  128. "HR",
  129. "HREF",
  130. "HTML",
  131. "HashTable",
  132. "HeaderType",
  133. "Holder",
  134. "Hybrid",
  135. "Hypertext",
  136. "HypertextContainer",
  137. "HypertextParagraph",
  138. "HypertextVoid",
  139. "IFRAME",
  140. "IMG",
  141. "INDENT",
  142. "INPUT",
  143. "ITALIC",
  144. "Ideal",
  145. "ImmutableType",
  146. "IndeterminateNumber",
  147. "IndexedVariable",
  148. "IndexedVariableTable",
  149. "InexactField",
  150. "InexactFieldFamily",
  151. "InexactNumber",
  152. "InfiniteNumber",
  153. "IntermediateMarkUpType",
  154. "Iterator",
  155. "KBD",
  156. "Keyword",
  157. "LABEL",
  158. "LATER",
  159. "LI",
  160. "LINK",
  161. "LITERAL",
  162. "List",
  163. "LocalDictionary",
  164. "LowerBound",
  165. "MENU",
  166. "META",
  167. "Manipulator",
  168. "MapExpression",
  169. "MarkUpType",
  170. "Matrix",
  171. "MatrixExpression",
  172. "MethodFunction",
  173. "MethodFunctionBinary",
  174. "MethodFunctionSingle",
  175. "MethodFunctionWithOptions",
  176. "Minus",
  177. "Module",
  178. "Monoid",
  179. "MonoidElement",
  180. "MonomialIdeal",
  181. "MultigradedBettiTally",
  182. "MutableHashTable",
  183. "MutableList",
  184. "MutableMatrix",
  185. "Mutex",
  186. "Net",
  187. "NetFile",
  188. "Nothing",
  189. "Number",
  190. "NumberedVerticalList",
  191. "OL",
  192. "OneExpression",
  193. "Option",
  194. "OptionTable",
  195. "OrderedMonoid",
  196. "PARA",
  197. "PRE",
  198. "Package",
  199. "Parenthesize",
  200. "Parser",
  201. "Partition",
  202. "PolynomialRing",
  203. "Power",
  204. "Product",
  205. "ProductOrder",
  206. "Program",
  207. "ProgramRun",
  208. "ProjectiveHilbertPolynomial",
  209. "ProjectiveVariety",
  210. "Pseudocode",
  211. "PseudocodeClosure",
  212. "QQ",
  213. "QuotientRing",
  214. "RR",
  215. "RRi",
  216. "RealField",
  217. "Resolution",
  218. "Ring",
  219. "RingElement",
  220. "RingFamily",
  221. "RingMap",
  222. "RowExpression",
  223. "SAMP",
  224. "SCRIPT",
  225. "SMALL",
  226. "SPAN",
  227. "STRONG",
  228. "STYLE",
  229. "SUB",
  230. "SUBSECTION",
  231. "SUP",
  232. "ScriptedFunctor",
  233. "SelfInitializingType",
  234. "Sequence",
  235. "Set",
  236. "SheafExpression",
  237. "SheafMap",
  238. "SheafOfRings",
  239. "SparseMonomialVectorExpression",
  240. "SparseVectorExpression",
  241. "String",
  242. "Subscript",
  243. "Sum",
  244. "SumOfTwists",
  245. "Superscript",
  246. "Symbol",
  247. "SymbolBody",
  248. "TABLE",
  249. "TD",
  250. "TEX",
  251. "TH",
  252. "TITLE",
  253. "TO",
  254. "TO2",
  255. "TOH",
  256. "TR",
  257. "TT",
  258. "Table",
  259. "Tally",
  260. "Task",
  261. "TensorProduct",
  262. "TestInput",
  263. "Thing",
  264. "Time",
  265. "Type",
  266. "UL",
  267. "URL",
  268. "VAR",
  269. "Variety",
  270. "Vector",
  271. "VectorExpression",
  272. "VerticalList",
  273. "VirtualTally",
  274. "VisibleList",
  275. "WrapperType",
  276. "ZZ",
  277. "ZeroExpression"
  278. )
  279. M2FUNCTIONS = (
  280. "BesselJ",
  281. "BesselY",
  282. "Beta",
  283. "Digamma",
  284. "EXAMPLE",
  285. "End",
  286. "Fano",
  287. "GCstats",
  288. "GF",
  289. "Gamma",
  290. "Grassmannian",
  291. "Hom",
  292. "LLL",
  293. "LUdecomposition",
  294. "M2CODE",
  295. "NNParser",
  296. "Proj",
  297. "QQParser",
  298. "QRDecomposition",
  299. "SVD",
  300. "SYNOPSIS",
  301. "Schubert",
  302. "Spec",
  303. "ZZParser",
  304. "about",
  305. "abs",
  306. "accumulate",
  307. "acos",
  308. "acosh",
  309. "acot",
  310. "acoth",
  311. "addCancelTask",
  312. "addDependencyTask",
  313. "addEndFunction",
  314. "addHook",
  315. "addStartTask",
  316. "adjoint",
  317. "agm",
  318. "alarm",
  319. "all",
  320. "ambient",
  321. "analyticSpread",
  322. "ancestor",
  323. "ancestors",
  324. "andP",
  325. "ann",
  326. "annihilator",
  327. "antipode",
  328. "any",
  329. "append",
  330. "applicationDirectory",
  331. "apply",
  332. "applyKeys",
  333. "applyPairs",
  334. "applyTable",
  335. "applyValues",
  336. "apropos",
  337. "arXiv",
  338. "ascii",
  339. "asin",
  340. "asinh",
  341. "ass",
  342. "assert",
  343. "associatedGradedRing",
  344. "associatedPrimes",
  345. "atEndOfFile",
  346. "atan",
  347. "atan2",
  348. "atanh",
  349. "augmentationMap",
  350. "autoload",
  351. "baseFilename",
  352. "baseName",
  353. "baseRing",
  354. "basis",
  355. "beginDocumentation",
  356. "benchmark",
  357. "betti",
  358. "between",
  359. "binomial",
  360. "borel",
  361. "cacheValue",
  362. "canUseHilbertHint",
  363. "cancelTask",
  364. "canonicalBundle",
  365. "canonicalMap",
  366. "canonicalTruncation",
  367. "capture",
  368. "ceiling",
  369. "centerString",
  370. "changeBase",
  371. "changeDirectory",
  372. "char",
  373. "charAnalyzer",
  374. "characters",
  375. "check",
  376. "checkDegrees",
  377. "chi",
  378. "class",
  379. "clean",
  380. "clearEcho",
  381. "code",
  382. "codim",
  383. "coefficient",
  384. "coefficientRing",
  385. "coefficients",
  386. "cohomology",
  387. "coimage",
  388. "coker",
  389. "cokernel",
  390. "collectGarbage",
  391. "columnAdd",
  392. "columnMult",
  393. "columnPermute",
  394. "columnRankProfile",
  395. "columnSwap",
  396. "columnate",
  397. "combine",
  398. "commandInterpreter",
  399. "commonRing",
  400. "commonest",
  401. "comodule",
  402. "compareExchange",
  403. "complement",
  404. "complete",
  405. "complex",
  406. "component",
  407. "components",
  408. "compose",
  409. "compositions",
  410. "compress",
  411. "concatenate",
  412. "concentration",
  413. "conductor",
  414. "cone",
  415. "conjugate",
  416. "connectingExtMap",
  417. "connectingMap",
  418. "connectingTorMap",
  419. "connectionCount",
  420. "constParser",
  421. "constantStrand",
  422. "content",
  423. "contract",
  424. "conwayPolynomial",
  425. "copy",
  426. "copyDirectory",
  427. "copyFile",
  428. "cos",
  429. "cosh",
  430. "cot",
  431. "cotangentSheaf",
  432. "coth",
  433. "cover",
  434. "coverMap",
  435. "cpuTime",
  436. "createTask",
  437. "csc",
  438. "csch",
  439. "currentColumnNumber",
  440. "currentDirectory",
  441. "currentPosition",
  442. "currentRowNumber",
  443. "currentTime",
  444. "cylinder",
  445. "deadParser",
  446. "debug",
  447. "debugError",
  448. "decompose",
  449. "deepSplice",
  450. "default",
  451. "degree",
  452. "degreeGroup",
  453. "degreeLength",
  454. "degrees",
  455. "degreesMonoid",
  456. "degreesRing",
  457. "delete",
  458. "demark",
  459. "denominator",
  460. "depth",
  461. "describe",
  462. "det",
  463. "determinant",
  464. "diagonalMatrix",
  465. "diameter",
  466. "dictionary",
  467. "diff",
  468. "difference",
  469. "dim",
  470. "directProduct",
  471. "directSum",
  472. "disassemble",
  473. "discriminant",
  474. "dismiss",
  475. "distinguished",
  476. "divideByVariable",
  477. "doc",
  478. "document",
  479. "drop",
  480. "dual",
  481. "eagonNorthcott",
  482. "eagonNorthcottComplex",
  483. "echoOff",
  484. "echoOn",
  485. "eigenvalues",
  486. "eigenvectors",
  487. "eint",
  488. "elements",
  489. "eliminate",
  490. "endPackage",
  491. "entries",
  492. "epicResolutionMap",
  493. "erase",
  494. "erf",
  495. "erfc",
  496. "error",
  497. "euler",
  498. "eulers",
  499. "even",
  500. "examples",
  501. "exchange",
  502. "exec",
  503. "exp",
  504. "expectedReesIdeal",
  505. "expm1",
  506. "exponents",
  507. "export",
  508. "exportFrom",
  509. "exportMutable",
  510. "expression",
  511. "extend",
  512. "exteriorPower",
  513. "factor",
  514. "fileExecutable",
  515. "fileExists",
  516. "fileLength",
  517. "fileMode",
  518. "fileReadable",
  519. "fileTime",
  520. "fileWritable",
  521. "fillMatrix",
  522. "findFiles",
  523. "findHeft",
  524. "findProgram",
  525. "findSynonyms",
  526. "first",
  527. "firstkey",
  528. "fittingIdeal",
  529. "flagLookup",
  530. "flatten",
  531. "flattenRing",
  532. "flip",
  533. "floor",
  534. "fold",
  535. "forceGB",
  536. "fork",
  537. "format",
  538. "formation",
  539. "frac",
  540. "fraction",
  541. "frames",
  542. "freeResolution",
  543. "fromDividedPowers",
  544. "fromDual",
  545. "functionBody",
  546. "futureParser",
  547. "gb",
  548. "gbRemove",
  549. "gbSnapshot",
  550. "gcd",
  551. "gcdCoefficients",
  552. "gcdLLL",
  553. "genera",
  554. "generateAssertions",
  555. "generator",
  556. "generators",
  557. "genericMatrix",
  558. "genericSkewMatrix",
  559. "genericSymmetricMatrix",
  560. "gens",
  561. "genus",
  562. "get",
  563. "getChangeMatrix",
  564. "getGlobalSymbol",
  565. "getIOThreadMode",
  566. "getNetFile",
  567. "getNonUnit",
  568. "getPrimeWithRootOfUnity",
  569. "getSymbol",
  570. "getWWW",
  571. "getc",
  572. "getenv",
  573. "globalAssign",
  574. "globalAssignFunction",
  575. "globalAssignment",
  576. "globalReleaseFunction",
  577. "gradedModule",
  578. "gramm",
  579. "graphIdeal",
  580. "graphRing",
  581. "groebnerBasis",
  582. "groupID",
  583. "hash",
  584. "hashTable",
  585. "headlines",
  586. "heft",
  587. "height",
  588. "hermite",
  589. "hilbertFunction",
  590. "hilbertPolynomial",
  591. "hilbertSeries",
  592. "hold",
  593. "homogenize",
  594. "homology",
  595. "homomorphism",
  596. "homotopyMap",
  597. "hooks",
  598. "horizontalJoin",
  599. "horseshoeResolution",
  600. "html",
  601. "httpHeaders",
  602. "hypertext",
  603. "icFracP",
  604. "icFractions",
  605. "icMap",
  606. "icPIdeal",
  607. "ideal",
  608. "idealSheaf",
  609. "idealizer",
  610. "identity",
  611. "image",
  612. "imaginaryPart",
  613. "importFrom",
  614. "independentSets",
  615. "index",
  616. "indices",
  617. "inducedMap",
  618. "inducesWellDefinedMap",
  619. "info",
  620. "input",
  621. "insert",
  622. "installAssignmentMethod",
  623. "installHilbertFunction",
  624. "installMethod",
  625. "installPackage",
  626. "installedPackages",
  627. "instance",
  628. "instances",
  629. "integralClosure",
  630. "integrate",
  631. "intersect",
  632. "intersectInP",
  633. "intersection",
  634. "interval",
  635. "inverse",
  636. "inverseErf",
  637. "inversePermutation",
  638. "inverseRegularizedBeta",
  639. "inverseRegularizedGamma",
  640. "inverseSystem",
  641. "irreducibleCharacteristicSeries",
  642. "irreducibleDecomposition",
  643. "isANumber",
  644. "isAffineRing",
  645. "isBorel",
  646. "isCanceled",
  647. "isCommutative",
  648. "isComplexMorphism",
  649. "isConstant",
  650. "isDirectSum",
  651. "isDirectory",
  652. "isEmpty",
  653. "isExact",
  654. "isField",
  655. "isFinite",
  656. "isFinitePrimeField",
  657. "isFree",
  658. "isFreeModule",
  659. "isGlobalSymbol",
  660. "isHomogeneous",
  661. "isIdeal",
  662. "isInfinite",
  663. "isInjective",
  664. "isInputFile",
  665. "isIsomorphic",
  666. "isIsomorphism",
  667. "isLLL",
  668. "isLinearType",
  669. "isListener",
  670. "isLocallyFree",
  671. "isMember",
  672. "isModule",
  673. "isMonomialIdeal",
  674. "isMutable",
  675. "isNormal",
  676. "isNullHomotopic",
  677. "isNullHomotopyOf",
  678. "isOpen",
  679. "isOutputFile",
  680. "isPolynomialRing",
  681. "isPrimary",
  682. "isPrime",
  683. "isPrimitive",
  684. "isProjective",
  685. "isPseudoprime",
  686. "isQuasiIsomorphism",
  687. "isQuotientModule",
  688. "isQuotientOf",
  689. "isQuotientRing",
  690. "isReady",
  691. "isReal",
  692. "isReduction",
  693. "isRegularFile",
  694. "isRing",
  695. "isScalar",
  696. "isShortExactSequence",
  697. "isSkewCommutative",
  698. "isSmooth",
  699. "isSorted",
  700. "isSquareFree",
  701. "isStandardGradedPolynomialRing",
  702. "isSubmodule",
  703. "isSubquotient",
  704. "isSubset",
  705. "isSupportedInZeroLocus",
  706. "isSurjective",
  707. "isTable",
  708. "isUnit",
  709. "isVeryAmple",
  710. "isWellDefined",
  711. "isWeylAlgebra",
  712. "isc",
  713. "isomorphism",
  714. "iterator",
  715. "jacobian",
  716. "jacobianDual",
  717. "join",
  718. "ker",
  719. "kernel",
  720. "kernelLLL",
  721. "kernelOfLocalization",
  722. "keys",
  723. "kill",
  724. "koszul",
  725. "koszulComplex",
  726. "last",
  727. "lcm",
  728. "leadCoefficient",
  729. "leadComponent",
  730. "leadMonomial",
  731. "leadTerm",
  732. "left",
  733. "length",
  734. "letterParser",
  735. "lift",
  736. "liftMapAlongQuasiIsomorphism",
  737. "liftable",
  738. "limitFiles",
  739. "limitProcesses",
  740. "lines",
  741. "linkFile",
  742. "listForm",
  743. "listSymbols",
  744. "lngamma",
  745. "load",
  746. "loadPackage",
  747. "localDictionaries",
  748. "localize",
  749. "locate",
  750. "lock",
  751. "log",
  752. "log1p",
  753. "longExactSequence",
  754. "lookup",
  755. "lookupCount",
  756. "lowerLeft",
  757. "lowerRight",
  758. "makeDirectory",
  759. "makeDocumentTag",
  760. "makePackageIndex",
  761. "makeS2",
  762. "map",
  763. "markedGB",
  764. "match",
  765. "mathML",
  766. "matrix",
  767. "max",
  768. "maxPosition",
  769. "member",
  770. "memoize",
  771. "memoizeClear",
  772. "memoizeValues",
  773. "merge",
  774. "mergePairs",
  775. "method",
  776. "methodOptions",
  777. "methods",
  778. "midpoint",
  779. "min",
  780. "minPosition",
  781. "minPres",
  782. "mingens",
  783. "mingle",
  784. "minimalBetti",
  785. "minimalPresentation",
  786. "minimalPrimes",
  787. "minimalReduction",
  788. "minimize",
  789. "minimizeFilename",
  790. "minors",
  791. "minprimes",
  792. "minus",
  793. "mkdir",
  794. "mod",
  795. "module",
  796. "modulo",
  797. "monoid",
  798. "monomialCurveIdeal",
  799. "monomialIdeal",
  800. "monomialSubideal",
  801. "monomials",
  802. "moveFile",
  803. "multidegree",
  804. "multidoc",
  805. "multigraded",
  806. "multiplicity",
  807. "mutable",
  808. "mutableIdentity",
  809. "mutableMatrix",
  810. "naiveTruncation",
  811. "nanosleep",
  812. "needs",
  813. "needsPackage",
  814. "net",
  815. "netList",
  816. "newClass",
  817. "newCoordinateSystem",
  818. "newNetFile",
  819. "newPackage",
  820. "newRing",
  821. "next",
  822. "nextPrime",
  823. "nextkey",
  824. "nonspaceAnalyzer",
  825. "norm",
  826. "normalCone",
  827. "notImplemented",
  828. "nullHomotopy",
  829. "nullParser",
  830. "nullSpace",
  831. "nullhomotopy",
  832. "numColumns",
  833. "numRows",
  834. "number",
  835. "numcols",
  836. "numerator",
  837. "numeric",
  838. "numericInterval",
  839. "numgens",
  840. "numrows",
  841. "odd",
  842. "oeis",
  843. "ofClass",
  844. "on",
  845. "openDatabase",
  846. "openDatabaseOut",
  847. "openFiles",
  848. "openIn",
  849. "openInOut",
  850. "openListener",
  851. "openOut",
  852. "openOutAppend",
  853. "optP",
  854. "optionalSignParser",
  855. "options",
  856. "orP",
  857. "override",
  858. "pack",
  859. "package",
  860. "packageTemplate",
  861. "pad",
  862. "pager",
  863. "pairs",
  864. "parallelApply",
  865. "parent",
  866. "parse",
  867. "part",
  868. "partition",
  869. "partitions",
  870. "parts",
  871. "pdim",
  872. "peek",
  873. "permanents",
  874. "permutations",
  875. "pfaffian",
  876. "pfaffians",
  877. "pivots",
  878. "plus",
  879. "poincare",
  880. "poincareN",
  881. "polarize",
  882. "poly",
  883. "polylog",
  884. "position",
  885. "positions",
  886. "power",
  887. "powermod",
  888. "precision",
  889. "preimage",
  890. "prepend",
  891. "presentation",
  892. "pretty",
  893. "primaryComponent",
  894. "primaryDecomposition",
  895. "print",
  896. "printString",
  897. "printerr",
  898. "processID",
  899. "product",
  900. "projectiveHilbertPolynomial",
  901. "promote",
  902. "protect",
  903. "prune",
  904. "pruneComplex",
  905. "pruneDiff",
  906. "pruneUnit",
  907. "pseudoRemainder",
  908. "pseudocode",
  909. "pullback",
  910. "pushForward",
  911. "pushout",
  912. "quotient",
  913. "quotientRemainder",
  914. "radical",
  915. "radicalContainment",
  916. "random",
  917. "randomComplexMap",
  918. "randomElement",
  919. "randomKRationalPoint",
  920. "randomMutableMatrix",
  921. "randomSubset",
  922. "rank",
  923. "rays",
  924. "read",
  925. "readDirectory",
  926. "readPackage",
  927. "readlink",
  928. "realPart",
  929. "realpath",
  930. "recursionDepth",
  931. "reduceHilbert",
  932. "reducedRowEchelonForm",
  933. "reductionNumber",
  934. "reesAlgebra",
  935. "reesAlgebraIdeal",
  936. "reesIdeal",
  937. "regSeqInIdeal",
  938. "regex",
  939. "regexQuote",
  940. "registerFinalizer",
  941. "regularity",
  942. "regularizedBeta",
  943. "regularizedGamma",
  944. "relations",
  945. "relativizeFilename",
  946. "remainder",
  947. "remove",
  948. "removeDirectory",
  949. "removeFile",
  950. "removeLowestDimension",
  951. "reorganize",
  952. "replace",
  953. "res",
  954. "reshape",
  955. "resolution",
  956. "resolutionMap",
  957. "resultant",
  958. "reverse",
  959. "right",
  960. "ring",
  961. "ringFromFractions",
  962. "roots",
  963. "rotate",
  964. "round",
  965. "rowAdd",
  966. "rowMult",
  967. "rowPermute",
  968. "rowRankProfile",
  969. "rowSwap",
  970. "rsort",
  971. "run",
  972. "runHooks",
  973. "runLengthEncode",
  974. "runProgram",
  975. "same",
  976. "saturate",
  977. "scan",
  978. "scanKeys",
  979. "scanLines",
  980. "scanPairs",
  981. "scanValues",
  982. "schedule",
  983. "schreyerOrder",
  984. "searchPath",
  985. "sec",
  986. "sech",
  987. "seeParsing",
  988. "select",
  989. "selectInSubring",
  990. "selectKeys",
  991. "selectPairs",
  992. "selectValues",
  993. "selectVariables",
  994. "separate",
  995. "separateRegexp",
  996. "sequence",
  997. "serialNumber",
  998. "set",
  999. "setEcho",
  1000. "setGroupID",
  1001. "setIOExclusive",
  1002. "setIOSynchronized",
  1003. "setIOUnSynchronized",
  1004. "setRandomSeed",
  1005. "setup",
  1006. "setupEmacs",
  1007. "setupLift",
  1008. "setupPromote",
  1009. "sheaf",
  1010. "sheafHom",
  1011. "show",
  1012. "showHtml",
  1013. "showTex",
  1014. "shuffle",
  1015. "sign",
  1016. "simpleDocFrob",
  1017. "sin",
  1018. "singularLocus",
  1019. "sinh",
  1020. "size",
  1021. "size2",
  1022. "sleep",
  1023. "smithNormalForm",
  1024. "solve",
  1025. "someTerms",
  1026. "sort",
  1027. "sortColumns",
  1028. "source",
  1029. "span",
  1030. "specialFiber",
  1031. "specialFiberIdeal",
  1032. "splice",
  1033. "splitWWW",
  1034. "sqrt",
  1035. "stack",
  1036. "stacksProject",
  1037. "stacktrace",
  1038. "standardForm",
  1039. "standardPairs",
  1040. "stashValue",
  1041. "status",
  1042. "store",
  1043. "style",
  1044. "sub",
  1045. "sublists",
  1046. "submatrix",
  1047. "submatrixByDegrees",
  1048. "subquotient",
  1049. "subsets",
  1050. "substitute",
  1051. "substring",
  1052. "subtable",
  1053. "sum",
  1054. "super",
  1055. "support",
  1056. "switch",
  1057. "sylvesterMatrix",
  1058. "symbolBody",
  1059. "symlinkDirectory",
  1060. "symlinkFile",
  1061. "symmetricAlgebra",
  1062. "symmetricAlgebraIdeal",
  1063. "symmetricKernel",
  1064. "symmetricPower",
  1065. "synonym",
  1066. "syz",
  1067. "table",
  1068. "take",
  1069. "tally",
  1070. "tan",
  1071. "tangentCone",
  1072. "tangentSheaf",
  1073. "tanh",
  1074. "target",
  1075. "taskResult",
  1076. "temporaryFileName",
  1077. "tensor",
  1078. "tensorAssociativity",
  1079. "tensorCommutativity",
  1080. "terminalParser",
  1081. "terms",
  1082. "testHunekeQuestion",
  1083. "tests",
  1084. "tex",
  1085. "texMath",
  1086. "times",
  1087. "toAbsolutePath",
  1088. "toCC",
  1089. "toCCi",
  1090. "toChainComplex",
  1091. "toDividedPowers",
  1092. "toDual",
  1093. "toExternalString",
  1094. "toField",
  1095. "toList",
  1096. "toLower",
  1097. "toMutableComplex",
  1098. "toRR",
  1099. "toRRi",
  1100. "toSequence",
  1101. "toString",
  1102. "toUpper",
  1103. "top",
  1104. "topCoefficients",
  1105. "topComponents",
  1106. "torSymmetry",
  1107. "trace",
  1108. "transpose",
  1109. "trim",
  1110. "truncate",
  1111. "truncateOutput",
  1112. "tryLock",
  1113. "tutorial",
  1114. "ultimate",
  1115. "unbag",
  1116. "uncurry",
  1117. "undocumented",
  1118. "uniform",
  1119. "uninstallAllPackages",
  1120. "uninstallPackage",
  1121. "union",
  1122. "unique",
  1123. "uniquePermutations",
  1124. "unlock",
  1125. "unsequence",
  1126. "unstack",
  1127. "upperLeft",
  1128. "upperRight",
  1129. "urlEncode",
  1130. "use",
  1131. "userSymbols",
  1132. "utf8",
  1133. "utf8check",
  1134. "utf8substring",
  1135. "validate",
  1136. "value",
  1137. "values",
  1138. "variety",
  1139. "vars",
  1140. "vector",
  1141. "versalEmbedding",
  1142. "wait",
  1143. "wedgeProduct",
  1144. "weightRange",
  1145. "whichGm",
  1146. "width",
  1147. "wikipedia",
  1148. "wrap",
  1149. "yonedaExtension",
  1150. "yonedaMap",
  1151. "yonedaProduct",
  1152. "youngest",
  1153. "zero",
  1154. "zeta"
  1155. )
  1156. M2CONSTANTS = (
  1157. "A1BrouwerDegrees",
  1158. "AbstractSimplicialComplexes",
  1159. "AbstractToricVarieties",
  1160. "Acknowledgement",
  1161. "AdditionalPaths",
  1162. "AdjointIdeal",
  1163. "AdjunctionForSurfaces",
  1164. "AfterEval",
  1165. "AfterNoPrint",
  1166. "AfterPrint",
  1167. "AInfinity",
  1168. "AlgebraicSplines",
  1169. "Algorithm",
  1170. "Alignment",
  1171. "AllCodimensions",
  1172. "AllMarkovBases",
  1173. "allowableThreads",
  1174. "AnalyzeSheafOnP1",
  1175. "applicationDirectorySuffix",
  1176. "argument",
  1177. "Ascending",
  1178. "AssociativeAlgebras",
  1179. "Authors",
  1180. "AuxiliaryFiles",
  1181. "backtrace",
  1182. "Bareiss",
  1183. "Base",
  1184. "BaseFunction",
  1185. "baseRings",
  1186. "BaseRow",
  1187. "BasisElementLimit",
  1188. "Bayer",
  1189. "BeforePrint",
  1190. "BeginningMacaulay2",
  1191. "Benchmark",
  1192. "BernsteinSato",
  1193. "Bertini",
  1194. "BettiCharacters",
  1195. "BGG",
  1196. "BIBasis",
  1197. "Binary",
  1198. "Binomial",
  1199. "BinomialEdgeIdeals",
  1200. "Binomials",
  1201. "BKZ",
  1202. "blockMatrixForm",
  1203. "Body",
  1204. "BoijSoederberg",
  1205. "Book3264Examples",
  1206. "BooleanGB",
  1207. "Boundary",
  1208. "Boxes",
  1209. "Brackets",
  1210. "Browse",
  1211. "Bruns",
  1212. "cache",
  1213. "CacheExampleOutput",
  1214. "CallLimit",
  1215. "CannedExample",
  1216. "CatalanConstant",
  1217. "Caveat",
  1218. "CellularResolutions",
  1219. "Center",
  1220. "Certification",
  1221. "ChainComplexExtras",
  1222. "ChainComplexOperations",
  1223. "ChangeMatrix",
  1224. "CharacteristicClasses",
  1225. "CheckDocumentation",
  1226. "Chordal",
  1227. "Citation",
  1228. "cite",
  1229. "Classic",
  1230. "clearAll",
  1231. "clearOutput",
  1232. "close",
  1233. "closeIn",
  1234. "closeOut",
  1235. "ClosestFit",
  1236. "Code",
  1237. "CodimensionLimit",
  1238. "CodingTheory",
  1239. "CoefficientRing",
  1240. "Cofactor",
  1241. "CohenEngine",
  1242. "CohenTopLevel",
  1243. "CohomCalg",
  1244. "CoincidentRootLoci",
  1245. "commandLine",
  1246. "compactMatrixForm",
  1247. "Complement",
  1248. "CompleteIntersection",
  1249. "CompleteIntersectionResolutions",
  1250. "Complexes",
  1251. "Concentration",
  1252. "ConductorElement",
  1253. "Configuration",
  1254. "ConformalBlocks",
  1255. "ConnectionMatrices",
  1256. "Consequences",
  1257. "Constants",
  1258. "Contributors",
  1259. "ConvexInterface",
  1260. "ConwayPolynomials",
  1261. "copyright",
  1262. "Core",
  1263. "CorrespondenceScrolls",
  1264. "CotangentSchubert",
  1265. "coverageSummary",
  1266. "CpMackeyFunctors",
  1267. "Cremona",
  1268. "currentFileDirectory",
  1269. "currentFileName",
  1270. "currentLayout",
  1271. "currentPackage",
  1272. "Cycle",
  1273. "Cyclotomic",
  1274. "Date",
  1275. "dd",
  1276. "DebuggingMode",
  1277. "debuggingMode",
  1278. "debugLevel",
  1279. "DecomposableSparseSystems",
  1280. "Decompose",
  1281. "Default",
  1282. "defaultPrecision",
  1283. "Degree",
  1284. "DegreeGroup",
  1285. "DegreeLift",
  1286. "DegreeLimit",
  1287. "DegreeMap",
  1288. "DegreeOrder",
  1289. "DegreeRank",
  1290. "Degrees",
  1291. "Dense",
  1292. "Density",
  1293. "Depth",
  1294. "Descending",
  1295. "Description",
  1296. "DeterminantalRepresentations",
  1297. "DGAlgebras",
  1298. "dictionaryPath",
  1299. "DiffAlg",
  1300. "Direction",
  1301. "DirectSummands",
  1302. "Dispatch",
  1303. "DivideConquer",
  1304. "DividedPowers",
  1305. "Dmodules",
  1306. "docExample",
  1307. "docTemplate",
  1308. "Down",
  1309. "Dynamic",
  1310. "EagonResolution",
  1311. "EdgeIdeals",
  1312. "edit",
  1313. "EigenSolver",
  1314. "EisenbudHunekeVasconcelos",
  1315. "Elimination",
  1316. "EliminationMatrices",
  1317. "EliminationTemplates",
  1318. "EllipticCurves",
  1319. "EllipticIntegrals",
  1320. "Email",
  1321. "end",
  1322. "endl",
  1323. "Engine",
  1324. "engineDebugLevel",
  1325. "EngineTests",
  1326. "EnumerationCurves",
  1327. "environment",
  1328. "EquivariantGB",
  1329. "errorDepth",
  1330. "EuclideanDistanceDegree",
  1331. "EulerConstant",
  1332. "Example",
  1333. "ExampleFiles",
  1334. "ExampleSystems",
  1335. "Exclude",
  1336. "exit",
  1337. "Ext",
  1338. "ExteriorExtensions",
  1339. "ExteriorIdeals",
  1340. "ExteriorModules",
  1341. "false",
  1342. "FastMinors",
  1343. "FastNonminimal",
  1344. "FGLM",
  1345. "fileDictionaries",
  1346. "fileExitHooks",
  1347. "FileName",
  1348. "FindOne",
  1349. "FiniteFittingIdeals",
  1350. "First",
  1351. "FirstPackage",
  1352. "FlatMonoid",
  1353. "Flexible",
  1354. "flush",
  1355. "FollowLinks",
  1356. "ForeignFunctions",
  1357. "FormalGroupLaws",
  1358. "Format",
  1359. "FourierMotzkin",
  1360. "FourTiTwo",
  1361. "fpLLL",
  1362. "FreeToExact",
  1363. "FrobeniusThresholds",
  1364. "FunctionFieldDesingularization",
  1365. "GameTheory",
  1366. "GBDegrees",
  1367. "gbTrace",
  1368. "GenerateAssertions",
  1369. "Generic",
  1370. "GenericInitialIdeal",
  1371. "GeometricDecomposability",
  1372. "gfanInterface",
  1373. "Givens",
  1374. "GKMVarieties",
  1375. "GLex",
  1376. "Global",
  1377. "GlobalAssignHook",
  1378. "globalAssignmentHooks",
  1379. "GlobalHookStore",
  1380. "GlobalReleaseHook",
  1381. "GlobalSectionLimit",
  1382. "Gorenstein",
  1383. "GradedLieAlgebras",
  1384. "GraphicalModels",
  1385. "GraphicalModelsMLE",
  1386. "Graphics",
  1387. "Graphs",
  1388. "GRevLex",
  1389. "GroebnerStrata",
  1390. "GroebnerWalk",
  1391. "GroupLex",
  1392. "GroupRevLex",
  1393. "GTZ",
  1394. "Hadamard",
  1395. "handleInterrupts",
  1396. "HardDegreeLimit",
  1397. "Heading",
  1398. "Headline",
  1399. "Heft",
  1400. "Height",
  1401. "help",
  1402. "Hermite",
  1403. "Hermitian",
  1404. "HH",
  1405. "hh",
  1406. "HigherCIOperators",
  1407. "HighestWeights",
  1408. "Hilbert",
  1409. "HodgeIntegrals",
  1410. "HolonomicSystems",
  1411. "homeDirectory",
  1412. "HomePage",
  1413. "Homogeneous",
  1414. "Homogeneous2",
  1415. "Homogenization",
  1416. "HomologicalAlgebraPackage",
  1417. "HomotopyLieAlgebra",
  1418. "HorizontalSpace",
  1419. "HyperplaneArrangements",
  1420. "id",
  1421. "IgnoreExampleErrors",
  1422. "ii",
  1423. "IncidenceCorrespondenceCohomology",
  1424. "incomparable",
  1425. "Increment",
  1426. "indeterminate",
  1427. "Index",
  1428. "indexComponents",
  1429. "infinity",
  1430. "InfoDirSection",
  1431. "infoHelp",
  1432. "Inhomogeneous",
  1433. "Inputs",
  1434. "InstallPrefix",
  1435. "IntegerProgramming",
  1436. "IntegralClosure",
  1437. "InternalDegree",
  1438. "interpreterDepth",
  1439. "Intersection",
  1440. "InvariantRing",
  1441. "InverseMethod",
  1442. "Inverses",
  1443. "InverseSystems",
  1444. "Invertible",
  1445. "InvolutiveBases",
  1446. "Isomorphism",
  1447. "Item",
  1448. "Iterate",
  1449. "Jacobian",
  1450. "Jets",
  1451. "Join",
  1452. "JSON",
  1453. "JSONRPC",
  1454. "K3Carpets",
  1455. "K3Surfaces",
  1456. "Keep",
  1457. "KeepFiles",
  1458. "KeepZeroes",
  1459. "Key",
  1460. "Keywords",
  1461. "Kronecker",
  1462. "KustinMiller",
  1463. "LanguageServer",
  1464. "lastMatch",
  1465. "LatticePolytopes",
  1466. "Layout",
  1467. "Left",
  1468. "LengthLimit",
  1469. "Lex",
  1470. "LexIdeals",
  1471. "LieAlgebraRepresentations",
  1472. "Limit",
  1473. "Linear",
  1474. "LinearAlgebra",
  1475. "LinearTruncations",
  1476. "lineNumber",
  1477. "listLocalSymbols",
  1478. "listUserSymbols",
  1479. "LLLBases",
  1480. "loadDepth",
  1481. "LoadDocumentation",
  1482. "loadedFiles",
  1483. "loadedPackages",
  1484. "Local",
  1485. "LocalRings",
  1486. "LongPolynomial",
  1487. "M0nbar",
  1488. "Macaulay2Doc",
  1489. "MacaulayPosets",
  1490. "Maintainer",
  1491. "MakeDocumentation",
  1492. "MakeHTML",
  1493. "MakeInfo",
  1494. "MakePDF",
  1495. "MapleInterface",
  1496. "Markov",
  1497. "MatchingFields",
  1498. "MatrixFactorizations",
  1499. "MatrixSchubert",
  1500. "Matroids",
  1501. "maxAllowableThreads",
  1502. "maxExponent",
  1503. "MaximalRank",
  1504. "MaxReductionCount",
  1505. "MCMApproximations",
  1506. "MergeTeX",
  1507. "minExponent",
  1508. "MinimalGenerators",
  1509. "MinimalMatrix",
  1510. "minimalPresentationMap",
  1511. "minimalPresentationMapInv",
  1512. "MinimalPrimes",
  1513. "Minimize",
  1514. "minimizingMap",
  1515. "MinimumVersion",
  1516. "Miura",
  1517. "MixedMultiplicity",
  1518. "ModuleDeformations",
  1519. "MonodromySolver",
  1520. "Monomial",
  1521. "MonomialAlgebras",
  1522. "MonomialIntegerPrograms",
  1523. "MonomialOrbits",
  1524. "MonomialOrder",
  1525. "Monomials",
  1526. "MonomialSize",
  1527. "MRDI",
  1528. "Msolve",
  1529. "MultigradedBGG",
  1530. "MultigradedImplicitization",
  1531. "MultiGradedRationalMap",
  1532. "MultiplicitySequence",
  1533. "MultiplierIdeals",
  1534. "MultiplierIdealsDim2",
  1535. "MultiprojectiveVarieties",
  1536. "NAGtypes",
  1537. "Name",
  1538. "Nauty",
  1539. "NautyGraphs",
  1540. "NCAlgebra",
  1541. "NCLex",
  1542. "NeuralIdeals",
  1543. "NewFromMethod",
  1544. "newline",
  1545. "NewMethod",
  1546. "NewOfFromMethod",
  1547. "NewOfMethod",
  1548. "nil",
  1549. "Node",
  1550. "NoetherianOperators",
  1551. "NoetherNormalization",
  1552. "Nonminimal",
  1553. "NonminimalWithGB",
  1554. "NonPrincipalTestIdeals",
  1555. "NoPrint",
  1556. "Normaliz",
  1557. "NormalToricVarieties",
  1558. "NotANumber",
  1559. "notify",
  1560. "NTL",
  1561. "null",
  1562. "nullaryMethods",
  1563. "NumericalAlgebraicGeometry",
  1564. "NumericalCertification",
  1565. "NumericalImplicitization",
  1566. "NumericalLinearAlgebra",
  1567. "NumericalSchubertCalculus",
  1568. "NumericalSemigroups",
  1569. "NumericSolutions",
  1570. "numTBBThreads",
  1571. "OIGroebnerBases",
  1572. "OldChainComplexes",
  1573. "OnlineLookup",
  1574. "OO",
  1575. "oo",
  1576. "ooo",
  1577. "oooo",
  1578. "OpenMath",
  1579. "operatorAttributes",
  1580. "OptionalComponentsPresent",
  1581. "Options",
  1582. "Order",
  1583. "order",
  1584. "Oscillators",
  1585. "OutputDictionary",
  1586. "Outputs",
  1587. "OverField",
  1588. "OverZZ",
  1589. "PackageCitations",
  1590. "PackageDictionary",
  1591. "PackageExports",
  1592. "PackageImports",
  1593. "PackageTemplate",
  1594. "Padic",
  1595. "PairLimit",
  1596. "PairsRemaining",
  1597. "ParallelF4",
  1598. "ParallelizeByDegree",
  1599. "Parametrization",
  1600. "Parsing",
  1601. "path",
  1602. "PathSignatures",
  1603. "PencilsOfQuadrics",
  1604. "Permanents",
  1605. "Permutations",
  1606. "PHCpack",
  1607. "PhylogeneticTrees",
  1608. "pi",
  1609. "PieriMaps",
  1610. "PlaneCurveLinearSeries",
  1611. "PlaneCurveSingularities",
  1612. "Points",
  1613. "Polyhedra",
  1614. "Polymake",
  1615. "PolyominoIdeals",
  1616. "Posets",
  1617. "Position",
  1618. "PositivityToricBundles",
  1619. "POSIX",
  1620. "Postfix",
  1621. "Pre",
  1622. "Precision",
  1623. "Prefix",
  1624. "prefixDirectory",
  1625. "prefixPath",
  1626. "PrimaryDecomposition",
  1627. "PrimaryTag",
  1628. "PrimitiveElement",
  1629. "Print",
  1630. "printingAccuracy",
  1631. "printingLeadLimit",
  1632. "printingPrecision",
  1633. "printingSeparator",
  1634. "printingTimeLimit",
  1635. "printingTrailLimit",
  1636. "printWidth",
  1637. "Probability",
  1638. "profileSummary",
  1639. "programPaths",
  1640. "Projective",
  1641. "Prune",
  1642. "PruningMap",
  1643. "pruningMap",
  1644. "PseudomonomialPrimaryDecomposition",
  1645. "Pullback",
  1646. "pullbackMaps",
  1647. "PushForward",
  1648. "pushoutMaps",
  1649. "Python",
  1650. "QthPower",
  1651. "QuadraticIdealExamplesByRoos",
  1652. "Quasidegrees",
  1653. "QuaternaryQuartics",
  1654. "QuillenSuslin",
  1655. "quit",
  1656. "Quotient",
  1657. "Radical",
  1658. "RadicalCodim1",
  1659. "RaiseError",
  1660. "RandomComplexes",
  1661. "RandomCurves",
  1662. "RandomCurvesOverVerySmallFiniteFields",
  1663. "RandomIdeals",
  1664. "RandomMonomialIdeals",
  1665. "RandomObjects",
  1666. "RandomPoints",
  1667. "Range",
  1668. "RationalMaps",
  1669. "RationalPoints",
  1670. "RationalPoints2",
  1671. "ReactionNetworks",
  1672. "RealFP",
  1673. "RealQP",
  1674. "RealQP1",
  1675. "RealRoots",
  1676. "RealRR",
  1677. "RealXD",
  1678. "recursionLimit",
  1679. "Reduce",
  1680. "ReesAlgebra",
  1681. "References",
  1682. "ReflexivePolytopesDB",
  1683. "Regularity",
  1684. "RelativeCanonicalResolution",
  1685. "Reload",
  1686. "RemakeAllDocumentation",
  1687. "RerunExamples",
  1688. "ResidualIntersections",
  1689. "ResLengthThree",
  1690. "ResolutionsOfStanleyReisnerRings",
  1691. "restart",
  1692. "Result",
  1693. "ResultantComplexes",
  1694. "Resultants",
  1695. "returnCode",
  1696. "Reverse",
  1697. "RevLex",
  1698. "Right",
  1699. "RInterface",
  1700. "rootPath",
  1701. "rootURI",
  1702. "RunDirectory",
  1703. "RunExamples",
  1704. "RunExternalM2",
  1705. "SagbiGbDetection",
  1706. "Saturation",
  1707. "SaturationMap",
  1708. "Schubert2",
  1709. "SchurComplexes",
  1710. "SchurFunctors",
  1711. "SchurRings",
  1712. "SchurVeronese",
  1713. "SCMAlgebras",
  1714. "scriptCommandLine",
  1715. "SCSCP",
  1716. "SectionRing",
  1717. "SeeAlso",
  1718. "SegreClasses",
  1719. "SemidefiniteProgramming",
  1720. "Seminormalization",
  1721. "SeparateExec",
  1722. "Serialization",
  1723. "sheafExt",
  1724. "ShimoyamaYokoyama",
  1725. "showClassStructure",
  1726. "showStructure",
  1727. "showUserStructure",
  1728. "SimpleDoc",
  1729. "SimplicialComplexes",
  1730. "SimplicialDecomposability",
  1731. "SimplicialModules",
  1732. "SimplicialPosets",
  1733. "SimplifyFractions",
  1734. "SizeLimit",
  1735. "SkewCommutative",
  1736. "SlackIdeals",
  1737. "SLnEquivariantMatrices",
  1738. "SLPexpressions",
  1739. "Sort",
  1740. "SortStrategy",
  1741. "SourceCode",
  1742. "SourceRing",
  1743. "SpaceCurves",
  1744. "SparseResultants",
  1745. "SpechtModule",
  1746. "SpecialFanoFourfolds",
  1747. "SpectralSequences",
  1748. "SRdeformations",
  1749. "Standard",
  1750. "StartWithOneMinor",
  1751. "StatePolytope",
  1752. "StatGraphs",
  1753. "stderr",
  1754. "stdio",
  1755. "StopBeforeComputation",
  1756. "stopIfError",
  1757. "StopIteration",
  1758. "StopWithMinimalGenerators",
  1759. "Strategy",
  1760. "Strict",
  1761. "StronglyStableIdeals",
  1762. "Style",
  1763. "SubalgebraBases",
  1764. "Subnodes",
  1765. "SubringLimit",
  1766. "subscript",
  1767. "Sugarless",
  1768. "SumsOfSquares",
  1769. "SuperLinearAlgebra",
  1770. "superscript",
  1771. "SVDComplexes",
  1772. "SwitchingFields",
  1773. "SymbolicPowers",
  1774. "SymmetricPolynomials",
  1775. "Synopsis",
  1776. "Syzygies",
  1777. "SyzygyLimit",
  1778. "SyzygyMatrix",
  1779. "SyzygyRows",
  1780. "Tableaux",
  1781. "TangentCone",
  1782. "TateOnProducts",
  1783. "TensorComplexes",
  1784. "TerraciniLoci",
  1785. "Test",
  1786. "TestAudit",
  1787. "testExample",
  1788. "TestIdeals",
  1789. "TeXmacs",
  1790. "Text",
  1791. "ThinSincereQuivers",
  1792. "ThreadedGB",
  1793. "Threads",
  1794. "Threshold",
  1795. "Topcom",
  1796. "topLevelMode",
  1797. "Tor",
  1798. "TorAlgebra",
  1799. "Toric",
  1800. "ToricHigherDirectImages",
  1801. "ToricInvariants",
  1802. "ToricTopology",
  1803. "ToricVectorBundles",
  1804. "Torsion",
  1805. "TorsionFree",
  1806. "TotalPairs",
  1807. "Tree",
  1808. "TriangularSets",
  1809. "Triangulations",
  1810. "Tries",
  1811. "Trim",
  1812. "Triplets",
  1813. "Tropical",
  1814. "TropicalToric",
  1815. "true",
  1816. "Truncate",
  1817. "Truncations",
  1818. "TSpreadIdeals",
  1819. "TypicalValue",
  1820. "typicalValues",
  1821. "Undo",
  1822. "Unique",
  1823. "Units",
  1824. "UnitTest",
  1825. "Unmixed",
  1826. "Up",
  1827. "UpdateOnly",
  1828. "UpperTriangular",
  1829. "Usage",
  1830. "UseCachedExampleOutput",
  1831. "UseHilbertFunction",
  1832. "UserMode",
  1833. "UseSyzygies",
  1834. "UseTarget",
  1835. "Valuations",
  1836. "Variable",
  1837. "VariableBaseName",
  1838. "Variables",
  1839. "Varieties",
  1840. "Vasconcelos",
  1841. "VectorFields",
  1842. "VectorGraphics",
  1843. "Verbose",
  1844. "Verbosity",
  1845. "Verify",
  1846. "VersalDeformations",
  1847. "Version",
  1848. "version",
  1849. "VerticalSpace",
  1850. "viewHelp",
  1851. "VirtualResolutions",
  1852. "Visualize",
  1853. "VNumber",
  1854. "WebApp",
  1855. "WeierstrassSemigroups",
  1856. "Weights",
  1857. "WeilDivisors",
  1858. "WeylAlgebra",
  1859. "WeylAlgebras",
  1860. "WeylGroups",
  1861. "WhitneyStratifications",
  1862. "WittVectors",
  1863. "Wrap",
  1864. "XML"
  1865. )
  1866. class Macaulay2Lexer(RegexLexer):
  1867. """Lexer for Macaulay2, a software system for research in algebraic geometry."""
  1868. name = 'Macaulay2'
  1869. url = 'https://macaulay2.com/'
  1870. aliases = ['macaulay2']
  1871. filenames = ['*.m2']
  1872. version_added = '2.12'
  1873. tokens = {
  1874. 'root': [
  1875. (r'--.*$', Comment.Single),
  1876. (r'-\*', Comment.Multiline, 'block comment'),
  1877. (r'"', String, 'quote string'),
  1878. (r'///', String, 'slash string'),
  1879. (words(M2KEYWORDS, prefix=r'\b', suffix=r'\b'), Keyword),
  1880. (words(M2DATATYPES, prefix=r'\b', suffix=r'\b'), Name.Builtin),
  1881. (words(M2FUNCTIONS, prefix=r'\b', suffix=r'\b'), Name.Function),
  1882. (words(M2CONSTANTS, prefix=r'\b', suffix=r'\b'), Name.Constant),
  1883. (r'\s+', Text.Whitespace),
  1884. (r'.', Text)
  1885. ],
  1886. 'block comment' : [
  1887. (r'[^*-]+', Comment.Multiline),
  1888. (r'\*-', Comment.Multiline, '#pop'),
  1889. (r'[*-]', Comment.Multiline)
  1890. ],
  1891. 'quote string' : [
  1892. (r'[^\\"]+', String),
  1893. (r'"', String, '#pop'),
  1894. (r'\\"?', String),
  1895. ],
  1896. 'slash string' : [
  1897. (r'[^/]+', String),
  1898. (r'(//)+(?!/)', String),
  1899. (r'/(//)+(?!/)', String, '#pop'),
  1900. (r'/', String)
  1901. ]
  1902. }