diff6-10.chapter1.txt

このページは最後に更新されてから1年以上経過しています。情報が古い可能性がありますので、ご注意ください。

last mod. 2008-08-28 (木) 09:46:05

diff6-10

28c28
<   val pi : float = 3.14159265359
---
>   val pi : float = 3.14159265358979312
76,77c76,77
< or built from the empty list [] (pronounce ``nil'') by adding elements in front
< using the :: (``cons'') operator. 
---
> or built from the empty list [] (pronounce "nil") by adding elements in front
> using the :: ("cons") operator. 
145c145
<   - : float = -1.00000000014
---
>   - : float = -1.00000000013961143
155,156c155,156
<   Functions that take other functions as arguments are called ``functionals'',
< or ``higher-order functions''. Functionals are especially useful to provide
---
>   Functions that take other functions as arguments are called "functionals", or
> "higher-order functions". Functionals are especially useful to provide
582c582
<   	Camlp4 Parsing version 3.05 (2002-07-22)
---
>   	Camlp4 Parsing version 3.10+dev26 (2007-04-25)
591c591
< stream of tokens), we use a ``generic'' lexer provided in the standard library
---
> stream of tokens), we use a "generic" lexer provided in the standard library
593c593
< lexing function that ``tokenizes'' an input stream of characters. Tokens are
---
> lexing function that "tokenizes" an input stream of characters. Tokens are
614,622c614,615
< matching sub-components of the input stream. See chapter 7 for more details.
<   In order to use stream parsers at toplevel, we must first load the camlp4
< preprocessor. 
< <<##load"camlp4o.cma";;
<   	Camlp4 Parsing version 3.05 (2002-07-22)
<   
< >>
<   
<   Then we are ready to define our parser. 
---
> matching sub-components of the input stream. See the Camlp4 documentation for
> more details.
689,690c682
< <<
<   (* File fib.ml *)
---
> <<(* File fib.ml *)
703,704c695
< <<
<   $ ocamlc -o fib fib.ml
---
> <<$ ocamlc -o fib fib.ml

新規 編集 添付