~brian-sidebotham/wxwidgets-cmake/wxpython-2.9.4

« back to all changes in this revision

Viewing changes to wxPython/wx/tools/Editra/tests/syntax/caml.ml

  • Committer: Brian Sidebotham
  • Date: 2013-08-03 14:30:08 UTC
  • Revision ID: brian.sidebotham@gmail.com-20130803143008-c7806tkych1tp6fc
Initial import into Bazaar

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
(* Syntax Highlighting Test File for Caml *)
 
2
(* Some Comments about this file *)
 
3
 
 
4
(* Hello World *)
 
5
print_endline "Hello world!";;
 
6
 
 
7
(* Calculate Fibbonacci Value of N *)
 
8
let rec fib n =
 
9
  if n < 2 then 1 else fib(n-1) + fib(n-2);;
 
10
let main () =
 
11
  let arg = int_of_string Sys.argv.(1) in
 
12
  print_int(fib arg);
 
13
  print_newline();
 
14
  exit 0;;
 
15
main ();;
 
16