[top][index]
search for:

Command -- the class of all commands

The self initializing type Command is a member of the class SelfInitializingType. Each object of class Command is called a command. Each command is also a member of class BasicList.

More general types (whose methods may also apply) :

  • BasicList -- the class of all basic lists
  • A command behaves as a function does if it is followed by an adjacent expression which can serve as its argument or argument list. In addition, if it appears as the value of an expression typed by the user at top level, then it gets executed with empty argument list. This is accomplished by installing a method for AfterEval.

    Create a new command f from a function g with f = Command g.

    Create a new command f from a shell command named g with f = Command "g". Arguments to f will be provided to g.

    Functions and methods returning a a command :

  • new Command from Function
  • new Command from String
  • Methods for using a command :

  • code Command
  • Command Thing
  • net Command
  • toExternalString Command
  • toString Command
  • Fixed objects of class Command :

  • clearAll -- forget everything
  • clearOutput -- forget output values
  • edit -- edit source code
  • engineHeap -- display the engine's heap
  • engineMemory -- display engine memory usage
  • engineStack -- display the engine's stack
  • exit -- exit the program
  • listUserSymbols -- display the user's symbols
  • look -- look at the engine's stack
  • profileSummary -- display profiling data
  • quit -- quit the program
  • restart -- restart Macaulay 2
  • seeParsing -- print syntax table
  • showStructure -- show relationship between types
  • showUserStructure -- show relationship between types defined by user
  • topics -- display available help topics

  • [top][index]
    search for: