macaulay2.py 32 KB

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