Changeset 37162 in project


Ignore:
Timestamp:
01/30/19 11:02:18 (3 weeks ago)
Author:
svnwiki
Message:

Anonymous wiki edit for IP [220.233.44.123]:

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/5/shen

    r37161 r37162  
    2222[[https://sarnath.xyz/chicken-shen |Chicken-Shen]]
    2323
    24 === chicken-shen Usage
     24=== Chicken Shen Usage
    2525
    2626<enscript highlight="bash">
     
    3434Any additional arguments are passed to the Shen system in
    3535the variable shen-wasp.*argv*
     36</enscript>
     37
     38=== Embedded in Scheme
     39<enscript highlight="lisp">
     40 (import (prefix shen shen:))
    3641</enscript>
    3742
     
    6368==== Basic List processing
    6469
     70Lists in Shen are enclosed with [ ] for example:
     71
     72<enscript highlight="lisp">
     73(12-) [1 2 3]
     74(13-) (head [1 2 3])
     751
     76(14-) (cons 1 [])
     77[1]
     78(15-) [1 2 | [3]]
     79[1 2 3]
     80</enscript>
     81
     82==== Procedures
     83
     84Procedures are defined using a pattern matching. For example:
    6585<enscript highlight="lisp">
    6686(define factorial
     
    83103
    84104==== YACC
     105Shen has an internal YACC (yet another compiler compiler)
     106
    85107<enscript highlight="lisp">
    86108(defcc <binary?>
     
    91113
    92114==== Prolog
     115
     116Shen also has an emebedded prolog for logic programming
    93117
    94118<enscript highlight="lisp">
Note: See TracChangeset for help on using the changeset viewer.