Changeset 130 for trunk/thune/doc

Show
Ignore:
Timestamp:
04/29/06 05:49:56 (3 years ago)
Author:
krobillard
Message:

Thune - Added proc.env.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/thune/doc/UserManual

    r129 r130  
    181181------------ 
    182182 
    183 =======  =========================  ============================ 
    184 Word     Stack Usage                Function 
    185 =======  =========================  ============================ 
    186 ift      (logic -- )                Evaluate next value if true. 
    187 iff      (logic -- )                Evaluate next value if false. 
    188 while    (body cond -- )            Evaluate body while cond is true. 
    189 loop     (block n -- )              Repeat block **n** times. 
    190 iter     (block ser -- )            Iterate over series. 
    191 proc     (body -- )                 Create procedure. 
    192 func     (sig body -- )             Create function with local values. 
    193 return   ()                         Leave function. 
    194 recurse  ()                         Start function from beginning. 
    195 do       (a -- )                    Evaluate. 
    196 select   (data options -- match)    Choose option which matches data. 
    197 case     (data options -- )         Evaluate option which matches data. 
    198 throw    (val -- val)               Throw exception. 
    199 error    (message -- error)         Throw error. 
    200 try      (body catch -- )           Try body and catch exception. 
    201 =======  =========================  ============================ 
     183========  =========================  ============================ 
     184Word      Stack Usage                Function 
     185========  =========================  ============================ 
     186ift       (logic -- )                Evaluate next value if true. 
     187iff       (logic -- )                Evaluate next value if false. 
     188while     (body cond -- )            Evaluate body while cond is true. 
     189loop      (block n -- )              Repeat block **n** times. 
     190iter      (block ser -- )            Iterate over series. 
     191proc      (body -- )                 Create procedure. 
     192func      (sig body -- )             Create function with local values. 
     193return    ()                         Leave function. 
     194recurse   ()                         Start function from beginning. 
     195do        (a -- )                    Evaluate. 
     196select    (data options -- match)    Choose option which matches data. 
     197case      (data options -- )         Evaluate option which matches data. 
     198throw     (val -- val)               Throw exception. 
     199error     (message -- error)         Throw error. 
     200try       (body catch -- )           Try body and catch exception. 
     201========  =========================  ============================ 
     202 
     203 
     204Flow Helpers 
     205~~~~~~~~~~~~ 
     206 
     207========  =========================  ============================ 
     208Word      Stack Usage                Function 
     209========  =========================  ============================ 
     210proc.env  (env body -- proc)         Create procedure with context. 
     211========  =========================  ============================ 
    202212 
    203213 
     
    212222type?       (val -- type)             Replace value with datatype of value. 
    213223type?.word  (val -- word)             Replace value with datatype word. 
    214 is-type?    (val type -- logic) 
     224is-type?    (val type -- logic)       True if value is of specified type. 
     225bind        (block ctx -- block)      Bind block to context. 
    215226infuse      (block ctx -- block)      Replace words with context values. 
    216227reduce      (a -- r)                  word! & paren! are evaluated. 
     
    219230mark.eol    (block [end] -- block)    Set EOL flag for current cell. 
    220231parse       (data rules -- pos)       Parse string or block. 
     232==========  ========================  ================= 
     233 
     234 
     235Data Helpers 
     236~~~~~~~~~~~~ 
     237 
     238==========  ========================  ================= 
     239Word        Stack Usage               Function 
     240==========  ========================  ================= 
     241parse.some  (data rules -- pos)       Parse string or block. 
    221242==========  ========================  ================= 
    222243