macaulay2.py 33 KB

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