==== XEQ ==== ---- ---- Execute a program ---- ^ __Input Stack__ ^ ^ __Output Stack__ ^^^ | **O1** | **→** | //see list under __Description__// ||| | //Level 1// | //→// | //Level n// | //...// | //Level 1// | {{page>manual:chapter6:aux:legend&nofooter&noeditbtn&inline}} |**Type**| [[manual:chapter5:basics#operators|Operator]] || |**Parallel list processing**| [[manual:chapter5:listproc#group-2commands-that-must-use-dolist-to-parallel-process|Group 2]] || |**Affected by flags**| None || ---- The ''XEQ'' command executes the object on the top level of the stack. The effect of the execution and the resulting output depends on the type of object being executed, as summarized by the following list. * **Program**: ''XEQ'' //enters// each object in the program: - an [[manual:chapter6:dirs:cmd_unquoteid|unquoted]] __Name__ is ''[[manual:chapter6:operators:cmd_ovr_eval|EVAL]]''uated; - a __Keyword__ is ''XEQ''ted; - __other objects__ are put on the stack. * **Other objects**: ''XEQ'' puts the object on the stack. ---- This command is new in newRPL and does not exist in userRPL. ---- The command 1: « '16' √ » …………………………………………………………………………………… XEQ will perform the following steps: - ''%%'16'%%'' (a //symbolic expression//) is put on the stack; - ''[[manual:chapter6:transcendentals:cmd_sqrt|√]]'' (a //keyword//) is ''XEQ''ted. Resulting in 1: '√16' …………………………………………………………………………………… ---- {{page>manual:chapter6:operators&nofooter&noeditbtn&inline}}