Changeset 320 for trunk/thune/doc

Show
Ignore:
Timestamp:
12/21/06 22:41:25 (2 years ago)
Author:
krobillard
Message:

Thune - Additions to UserManual?

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/thune/doc/UserManual

    r313 r320  
    263263Word      Stack Usage                Function 
    264264========  =========================  ============================ 
    265 ift       (logic -- )                Evaluate next value if true. 
     265ift_      (logic -- )                Evaluate next value if true. 
    266266iff       (logic -- )                Evaluate next value if false. 
    267267if/C      (val val -- )              Evaluate next value if comparison is true. 
     
    271271iter      (ser body -- )             Iterate over series. 
    272272iter/N    (ser body -- )             Iterate over series with skip. 
    273 proc      (body -- )                 Create procedure. 
    274 func      (sig body -- )             Create function with local values. 
     273proc      (body -- proc)             Create procedure. 
     274func      (sig body -- func)         Create function with local values. 
    275275return    ()                         Leave function. 
    276276recurse   ()                         Start function from beginning. 
     
    311311make        (type proto [p2] -- val)  Create value. 
    312312as          (val type -- val)         View value as a similar type. 
     313to          (val type -- val)         Convert value to a similar type. 
    313314type?       (val -- type)             Replace value with datatype of value. 
    314315type?.word  (val -- word)             Replace value with datatype word. 
     
    347348==========  ======================  ================= 
    348349append      (ser val -- ser)        Append value to series. 
     350append      (bin num bytes -- bin)  Append number to binary. 
    349351append.cat  (ser val -- ser)        Join value to series. 
    350 insert      (ser val -- ser)        Insert value to series. 
     352insert      (ser val -- ser)        Insert value into series. 
    351353remove      (ser -- ser)            Remove value at current series position. 
    352354clear       (ser -- ser)            Remove all elements. 
     
    370372find        (ser pat -- ser)        Find pattern in series. 
    371373find.last   (ser pat -- ser)        Find pattern in series starting from end. 
    372 match       (ser pat -- ser)        Move position to end of pattern. 
     374match_      (ser pat -- end)        Move position to end of matching pattern. 
    373375trim        (str -- str)            Remove whitespace from start and end. 
    374376==========  ======================  ================= 
     
    483485==========  =========================== 
    484486 
     487 
     488 
     489Data Stack Functions 
     490==================== 
     491 
     492 
     493 
     494Flow Control Functions 
     495======================= 
     496 
     497ift 
     498--- 
     499:: 
     500 
     501        (logic -- ) 
     502 
     503Evaluate next value if TOS is true.  To evaluate more than one value use 
     504a paren!. 
     505 
     506Example:: 
     507 
     508    )> 4 1 gt? ift ("Four is greater than one." print) 
     509    Four is greater than one. 
     510 
     511 
     512 
     513Data Manipulation Functions 
     514=========================== 
     515 
     516 
     517 
     518Series Functions 
     519================ 
     520 
     521 
     522match 
     523----- 
     524:: 
     525 
     526        (ser pat -- end series!/none!) 
     527 
     528Move position to end of matching pattern. 
     529Returns *none* if start of *ser* does not match *pat*. 
     530 
     531 
     532 
     533Math Functions 
     534============== 
     535 
     536 
     537 
     538Input/Output Functions 
     539====================== 
     540 
     541