macaulay2.py 31 KB

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