이전 주제 보기 :: 다음 주제 보기 |
글쓴이 |
메시지 |
김윤승
가입: 2014년 9월 1일 올린 글: 452 위치: 302동 312-2호
|
올려짐: 2014년11월19일 18:15 주제: How to test your code in the interactive environment |
|
|
# For command line users #
1. Compile your code like [ocamlc hw6-2.ml].
2. Run [ocaml] to open the interactive environment.
3. Type [#load "hw6-2.cmo" ;;]
4. Type [open Hw6-2;;] (The first character should be a capital letter)
5. Test anything you like.
* [ocamlmktop -o hw6-2toplevel hw6-2.cmo] produces a executable file [hw6-2toplevle] so that running this file automatically does 2 & 3.
# For Eclipse users #
1. Select all of your code you want to test. (Or use [Ctrl+a].)
2. Press [F6] button or click [Ocaml -> Eval In Toplevel] in the menu bar.
3. Test anything at the bottom window of the "Ocaml Toplevel" window, which is usually located at the bottom of the screen. |
|
위로 |
|
 |
정의진
가입: 2014년 11월 13일 올린 글: 9
|
올려짐: 2014년11월19일 21:20 주제: |
|
|
감사합니다!! |
|
위로 |
|
 |
정의진
가입: 2014년 11월 13일 올린 글: 9
|
올려짐: 2014년11월20일 18:24 주제: |
|
|
알려주신 방법을 사용하면 sig가 걸려있으면 결과물을 보지 못하는데 혹 볼 수 있는 방법이 있을까요/ |
|
위로 |
|
 |
김윤승
가입: 2014년 9월 1일 올린 글: 452 위치: 302동 312-2호
|
올려짐: 2014년11월20일 20:22 주제: |
|
|
모르겠습니다. |
|
위로 |
|
 |
|