Source

ocaml-llists / README

1. Description

This OCaml package provides lazy lists for OCaml. The features are as follows:
  * lazy lists library
  * syntax extension with support for
      - lazy list construction and generation
      - lazy list comprehension
      - parallel lazy list comprehension
      - lazy list pattern matching

Usage examples for original syntax see in examples/llistcons_orig.ml,
examples/llistcomp_orig.ml; for revised syntax - in examples/llistcons_rev.ml,
examples/llistcomp_rev.ml.

Documentation for lazy list library see in doc/index.html.


2. Installation Instructions

As usual
  make
  sudo make install

For compiling and running tests:
  make tests
  make runtests


3. Usage

Compilation of program test.ml that uses lazy lists:
  * Original syntax:
      ocamlc -c -pp "camlp4o pa_llistcomp.cma" test.ml
  * Revised syntax:
      ocamlc -c -pp "camlp4r pa_llistcomp.cma" test.ml

And linking:
  ocamlc lazy_list.cmo test.cmo -o test

Using in toplevel (original syntax):

  #load "camlp4o.cma" ;;
  #load "pa_llistcomp.cma" ;;
  #load "lazy_list.cmo" ;;

Using in toplevel (revised syntax):

  #load "camlp4r.cma" ;;
  #load "pa_llistcomp.cma" ;
  #load "lazy_list.cmo" ;



Comments are very welcome.

Vadim Shender
vadim at shender dot org
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.