manual:chapter6:operators:cmd_ovr_eval

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
manual:chapter6:operators:cmd_ovr_eval [2019/10/28 15:37]
jojo1973 Added example
manual:chapter6:operators:cmd_ovr_eval [2019/11/06 15:31]
jojo1973
Line 9: Line 9:
 ---- ----
 ^  __Input Stack__  ^  ^  __Output Stack__  ^^^ ^  __Input Stack__  ^  ^  __Output Stack__  ^^^
-|  **O<sub>1</sub>**  |  **→**  |  //see list under __Description__//  |||+|  **O**  |  **→**  |  //see list under __Description__//  |||
 |  //Level 1//  |  //→//  |  //Level n//  |  //...//  |  //Level 1//  |  |  //Level 1//  |  //→//  |  //Level n//  |  //...//  |  //Level 1//  | 
  
Line 34: Line 34:
 The effect of the evaluation and the resulting output depends on the type of object being evaluated, as summarized by the following list. The effect of the evaluation and the resulting output depends on the type of object being evaluated, as summarized by the following list.
  
-  * **Local Name**: //Recalls// the content of the variable. +  * **Local Name**: ''EVAL'' //recalls// the content of the variable. 
-  * **Global Name**: //Calls// the content of a variable:+  * **Global Name**: ''EVAL'' //calls// the content of a variable:
     - a __Name__ is evaluated;     - a __Name__ is evaluated;
     - a __Program__ is evaluated;     - a __Program__ is evaluated;
     - a __Directory__ becomes the current directory;     - a __Directory__ becomes the current directory;
     - __other objects__ which are not lists are put on the stack.     - __other objects__ which are not lists are put on the stack.
-  * **Program**: //Enters// each object in the program:+  * **Program**: ''EVAL'' //enters// each object in the program:
     - an [[manual:chapter6:dirs:cmd_unquoteid|unquoted]] __Name__ is evaluated;     - an [[manual:chapter6:dirs:cmd_unquoteid|unquoted]] __Name__ is evaluated;
     - a __Keyword__ is ''[[manual:chapter6:operators:cmd_ovr_xeq|XEQ]]''ted;     - a __Keyword__ is ''[[manual:chapter6:operators:cmd_ovr_xeq|XEQ]]''ted;
     - __other objects__ which are not lists are put on the stack.     - __other objects__ which are not lists are put on the stack.
-  * **Symbolic expression**: //Enters// each object in the expression:+  * **Symbolic expression**: ''EVAL'' //enters// each object in the expression:
     - a __Name__ is evaluated;     - a __Name__ is evaluated;
     - a __Keyword__ is ''[[manual:chapter6:operators:cmd_ovr_xeq|XEQ]]''ted;     - a __Keyword__ is ''[[manual:chapter6:operators:cmd_ovr_xeq|XEQ]]''ted;
     - __other objects__ which are not lists are put on the stack.     - __other objects__ which are not lists are put on the stack.
-  * **Other objects**: if they are not lists they are put on the stack. +  * **Other objects**: if they are not lists ''EVAL'' puts them on the stack. 
-  * **List**: //Enters// each object in the list:+  * **List**: ''EVAL'' //enters// each object in the list:
     - __any object__ is evaluated according above mentioned rules.     - __any object__ is evaluated according above mentioned rules.
          
  • manual/chapter6/operators/cmd_ovr_eval.txt
  • Last modified: 2019/11/17 08:23
  • by jojo1973