macaulay2.py 33 KB

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