Browse thread
Camlp4 beginner
- Alexsandro Soares
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Alexsandro Soares <a_s_soares@y...> |
| Subject: | Camlp4 beginner |
Hi all,
I'm trying to understand how the new campl4 works. I'll begin with small examples and I would like to receive one program and instructions about how to compile it.
1 - sequences.
# let x = [+ 1, 2 .. 5 +];;
val x : int list = [1; 2; 3; 4; 5]
# let x = [+ 1, 3 .. 10 +];;
val x : int list = [1; 3; 5; 7; 9]
# let x = [+ 5, 4 .. 1 +];;
val x : int list = [5; 4; 3; 2; 1]
# let x = [+ 1 .. 5 +];;
val x : int list = [1; 2; 3; 4; 5]
Thanks in advance for any answer.
Best regards,
Alex
____________________________________________________________________________________
Novo Yahoo! Cadê? - Experimente uma nova busca.
http://yahoo.com.br/oqueeuganhocomisso