Changeset 13686 in project for chicken


Ignore:
Timestamp:
03/11/09 17:21:38 (11 years ago)
Author:
felix winkelmann
Message:

manual cleanups

Location:
chicken/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • chicken/trunk/manual/Extensions to the standard

    r13683 r13686  
    33== Extensions to the standard
    44
    5 [2.1] Identifiers may contain special characters if delimited with
     5=== [2.1]
     6
     7Identifiers may contain special characters if delimited with
    68{{| ... |}}.
    79
    8 [2.3] The brackets {{[ ... ]}} and the braces {{ { ... } }} are
     10=== [2.3]
     11
     12The brackets {{[ ... ]}} and the braces {{ { ... } }} are
    913provided as an alternative syntax for {{( ... )}}.  A number of reader
    1014extensions is provided. See [[Non-standard read syntax]].
    1115
    12 [4] Numerous non-standard macros are provided. See
     16=== [4]
     17
     18Numerous non-standard macros are provided. See
    1319[[Non-standard macros and special forms]] for more information.
    1420
    15 [4.1.4] Extended DSSSL style lambda lists are supported. DSSSL parameter lists are defined by the following grammar:
     21=== [4.1.4]
     22
     23Extended DSSSL style lambda lists are supported. DSSSL parameter lists are defined by the following grammar:
    1624
    1725 <parameter-list> ==> <required-parameter>*
     
    5159  3 4 5 i: 6 i: 7)            => (3 4 5 i: 6 j: 1)
    5260
    53 [4.1.6] {{set!}} for unbound toplevel variables is allowed. {{set! (PROCEDURE ...) ...)}}
     61=== [4.1.6]
     62
     63{{set!}} for unbound toplevel variables is allowed. {{set! (PROCEDURE ...) ...)}}
    5464is supported, as CHICKEN implements [[http://srfi.schemers.org/srfi-17/srfi-17.html|SRFI-17]].
    55 [4.2.1] The {{cond}} form supports [[http://srfi.schemers.org/srfi-61|SRFI-61]].
    56 
    57 [4.2.2] It is allowed for initialization values of bindings in a {{letrec}}
     65
     66=== [4.2.1]
     67
     68The {{cond}} form supports [[http://srfi.schemers.org/srfi-61|SRFI-61]].
     69
     70=== [4.2.2]
     71
     72It is allowed for initialization values of bindings in a {{letrec}}
    5873construct to refer to previous variables in the same set of bindings, so
    5974
     
    6479is allowed and returns {{123}}.
    6580
    66 [4.2.3] {{(begin)}} is allowed in non-toplevel contexts and evaluates
     81=== [4.2.3]
     82
     83{{(begin)}} is allowed in non-toplevel contexts and evaluates
    6784to an unspecified value.
    6885
    69 [4.2.5] Delayed expressions may return multiple values.
    70 
    71 [5.2.2] CHICKEN extends standard semantics by allowing internal definitions
     86=== [4.2.5]
     87
     88Delayed expressions may return multiple values.
     89
     90=== [5.2.2]
     91
     92CHICKEN extends standard semantics by allowing internal definitions
    7293everywhere, and not only at the beginning of a body. A set of internal definitions
    7394is equivalent to a {{letrec}} form enclosing all following expressions
     
    90111the expression.
    91112
    92 [5.2] {{define}} with a single argument is allowed and initializes the toplevel or local binding
     113=== [5.2]
     114
     115{{define}} with a single argument is allowed and initializes the toplevel or local binding
    93116to an unspecified value. CHICKEN supports ''curried'' definitions, where the variable name
    94117may also be a list specifying a name and a nested lambda list. So
     
    100123 (define (make-adder x) (lambda (y) (+ x y)))
    101124
    102 [6] CHICKEN provides numerous non-standard procedures. See the manual
     125=== [6]
     126
     127CHICKEN provides numerous non-standard procedures. See the manual
    103128sections on library units for more information.
    104129
    105 [6.2.4] The special IEEE floating-point numbers ''+nan'', ''+inf'' and ''-inf''
     130=== [6.2.4]
     131
     132The special IEEE floating-point numbers ''+nan'', ''+inf'' and ''-inf''
    106133are supported, as is negative zero.
    107134
    108 [6.3.4] User defined character names are supported. See
     135=== [6.3.4]
     136
     137User defined character names are supported. See
    109138{{char-name}}. Characters can be given
    110139in hexadecimal notation using the ''#\xXX'' syntax where ''XX'' specifies the
     
    115144{{#\vtab}}, {{#\nul}}, {{#\page}}, {{#\esc}}, {{#\delete}} and {{#\backspace}}.
    116145
    117 [6.3.5]  CHICKEN supports special characters preceded with
     146=== [6.3.5] 
     147
     148CHICKEN supports special characters preceded with
    118149a backslash ''\'' in quoted string
    119150constants. ''\n'' denotes the newline-character,
     
    127158of the string.
    128159
    129 [6.4] {{force}} called with an argument that is not a promise returns
     160=== [6.4]
     161
     162{{force}} called with an argument that is not a promise returns
    130163that object unchanged.  Captured continuations can be safely invoked
    131164inside before- and after-thunks of a {{dynamic-wind}} form and
     
    138171explicit continuations (created with {{call-with-current-continuation}}).
    139172
    140 [6.5] The second argument to {{eval}} is optional and
     173=== [6.5]
     174
     175The second argument to {{eval}} is optional and
    141176defaults to the value of {{(interaction-environment)}}.
    142177{{scheme-report-environment}} and {{null-environment}} accept
     
    145180bindings may be introduced.
    146181
    147 [6.6] The ''tilde'' character ({{~}}) is automatically expanded in pathnames.
     182=== [6.6]
     183
     184The ''tilde'' character ({{~}}) is automatically expanded in pathnames.
    148185Additionally, if a pathname starts with {{$VARIABLE...}}, then the prefix is replaced
    149186by the value of the given environment variable.
    150187
    151 [6.6.1] if the procedures {{current-input-port}} and
     188=== [6.6.1]
     189
     190If the procedures {{current-input-port}} and
    152191{{current-output-port}} are called with an argument (which should
    153192be a port), then that argument is selected as the new current input- and
     
    161200{{#:append}}.
    162201
    163 [6.7] The {{exit}} procedure exits a program right away and does ''not'' invoke pending {{dynamic-wind}} thunks.
     202=== [6.7]
     203
     204The {{exit}} procedure exits a program right away and does ''not'' invoke pending {{dynamic-wind}} thunks.
    164205
    165206---
  • chicken/trunk/manual/Unit expand

    r13683 r13686  
    4949Previous: [[Unit library]]
    5050
    51 Next: [[Unit expand]]
     51Next: [[Unit data-structures]]
  • chicken/trunk/manual/Unit library

    r13683 r13686  
    1212==== add1/sub1
    1313
    14 ; [procedure] (add1 N)
    15 ; [procedure] (sub1 N)
     14<procedure>(add1 N)</procedure>
     15<procedure>(sub1 N)</procedure>
    1616
    1717Adds/subtracts 1 from {{N}}.
     
    2626platforms).
    2727
    28 ; [procedure] (bitwise-and N1 ...)
    29 ; [procedure] (bitwise-ior N1 ...)
    30 ; [procedure] (bitwise-xor N1 ...)
    31 ; [procedure] (bitwise-not N)
    32 ; [procedure] (arithmetic-shift N1 N2)
     28<procedure>(bitwise-and N1 ...)</procedure>
     29<procedure>(bitwise-ior N1 ...)</procedure>
     30<procedure>(bitwise-xor N1 ...)</procedure>
     31<procedure>(bitwise-not N)</procedure>
     32<procedure>(arithmetic-shift N1 N2)</procedure>
    3333
    3434==== bit-set?
     
    5151respectively.
    5252
    53 ; [procedure] (fx+ N1 N2)
    54 ; [procedure] (fx- N1 N2)
    55 ; [procedure] (fx* N1 N2)
    56 ; [procedure] (fx/ N1 N2)
    57 ; [procedure] (fxmod N1 N2)
    58 ; [procedure] (fxneg N)
    59 ; [procedure] (fxmin N1 N2)
    60 ; [procedure] (fxmax N1 N2)
    61 ; [procedure] (fx= N1 N2)
    62 ; [procedure] (fx> N1 N2)
    63 ; [procedure] (fx< N1 N2)
    64 ; [procedure] (fx>= N1 N2)
    65 ; [procedure] (fx<= N1 N2)
    66 ; [procedure] (fxand N1 N2)
    67 ; [procedure] (fxior N1 N2)
    68 ; [procedure] (fxxor N1 N2)
    69 ; [procedure] (fxnot N)
    70 ; [procedure] (fxshl N1 N2)
    71 ; [procedure] (fxshr N1 N2)
     53<procedure>(fx+ N1 N2)</procedure>
     54<procedure>(fx- N1 N2)</procedure>
     55<procedure>(fx* N1 N2)</procedure>
     56<procedure>(fx/ N1 N2)</procedure>
     57<procedure>(fxmod N1 N2)</procedure>
     58<procedure>(fxneg N)</procedure>
     59<procedure>(fxmin N1 N2)</procedure>
     60<procedure>(fxmax N1 N2)</procedure>
     61<procedure>(fx= N1 N2)</procedure>
     62<procedure>(fx> N1 N2)</procedure>
     63<procedure>(fx< N1 N2)</procedure>
     64<procedure>(fx>= N1 N2)</procedure>
     65<procedure>(fx<= N1 N2)</procedure>
     66<procedure>(fxand N1 N2)</procedure>
     67<procedure>(fxior N1 N2)</procedure>
     68<procedure>(fxxor N1 N2)</procedure>
     69<procedure>(fxnot N)</procedure>
     70<procedure>(fxshl N1 N2)</procedure>
     71<procedure>(fxshr N1 N2)</procedure>
    7272
    7373==== fixnum?
     
    9191in unsafe mode can crash the system.
    9292
    93 ; [procedure] (flonum? X)
    94 ; [procedure] (fp+ X Y)
    95 ; [procedure] (fp- X Y)
    96 ; [procedure] (fp* X Y)
    97 ; [procedure] (fp/ X Y)
    98 ; [procedure] (fpneg X)
    99 ; [procedure] (fpmin X Y)
    100 ; [procedure] (fpmax X Y)
    101 ; [procedure] (fp= X Y)
    102 ; [procedure] (fp> X Y)
    103 ; [procedure] (fp< X Y)
    104 ; [procedure] (fp>= X Y)
    105 ; [procedure] (fp<= X Y)
     93<procedure>(flonum? X)</procedure>
     94<procedure>(fp+ X Y)</procedure>
     95<procedure>(fp- X Y)</procedure>
     96<procedure>(fp* X Y)</procedure>
     97<procedure>(fp/ X Y)</procedure>
     98<procedure>(fpneg X)</procedure>
     99<procedure>(fpmin X Y)</procedure>
     100<procedure>(fpmax X Y)</procedure>
     101<procedure>(fp= X Y)</procedure>
     102<procedure>(fp> X Y)</procedure>
     103<procedure>(fp< X Y)</procedure>
     104<procedure>(fp>= X Y)</procedure>
     105<procedure>(fp<= X Y)</procedure>
    106106
    107107==== flonum?
  • chicken/trunk/scripts/wiki2html.scm

    r13683 r13686  
    1010;;; inline elements
    1111
    12 (define +code+ '(: #\{ #\{ (submatch (*? (~ #\}))) #\} #\}))
     12(define +code+ '(: #\{ #\{ (submatch (*? any)) #\} #\}))
    1313(define +bold+ '(: (= 3 #\') (submatch (* (~ #\'))) (= 3 #\')))
    1414(define +italic+ '(: (= 2 #\') (submatch (* (~ #\'))) (= 2 #\')))
     
    2929(define +header+ '(: (submatch (>= 2 #\=)) (* space) (submatch (* any))))
    3030(define +pre+ '(: (>= 1 space) (submatch (* any))))
    31 (define +d-list+ '(: (* space) #\; (submatch (*? any)) #\space #\: #\space (submatch (* any))))
     31
     32(define +d-list+
     33  '(: (* space) #\; (submatch (*? any)) #\space #\: #\space (submatch (* any))))
     34
    3235(define +u-list+ '(: (* space) (submatch (>= 1 #\*)) (* space) (submatch (* any))))
    3336(define +o-list+ '(: (* space) (submatch (>= 1 #\*)) #\# (* space) (submatch (* any))))
     
    123126                  (set! *list-continuation* #t)
    124127                  (fprintf out "<dt>~a</dt><dd>~a</dd>~%"
    125                            (inline (second m)) (inline (third m)))))
     128                           (inline (second m)) (inline (or (third m) "")))))
    126129               ((string-match (rx +u-list+) ln) =>
    127130                (lambda (m)
Note: See TracChangeset for help on using the changeset viewer.