Macaulay2 » Documentation
Packages » Macaulay2Doc » The Macaulay2 language » Thing » Pseudocode
next | previous | forward | backward | up | index | toc

Pseudocode -- the class of pseudocodes

Description

The Macaulay2 interpreter compiles its language into pseudocode, which is evaluated later, step by step. At each step, the evaluator is considering a pseudocode item. These pseudocode items are normally not available to the user, but the internal function pseudocode can convert a function closure to pseudocode and display their contents, the function value can evaluate it (bindings of values to local symbols are enclosed with the pseudocode), the operator === can be used for equality testing, and when the debugger is activated after an error, the variable current contains the pseudocode step whose execution produced the error.

See also

Menu

Types of Pseudocode:

  • PseudocodeClosure

Methods that use an object of class Pseudocode:

  • code(Pseudocode) -- see code -- display source code
  • disassemble(Pseudocode) -- see disassemble -- disassemble a pseudocode or function
  • locate(Pseudocode) -- see locate -- locate source code
  • toList(Pseudocode) (missing documentation)
  • value(Pseudocode) -- execute pseudocode

For the programmer

The object Pseudocode is a type, with ancestor class Thing.


The source of this document is in Macaulay2Doc/ov_repl.m2:992:0.