ocaml
How to trace error of OCaml programs?
I am writing a compiler written in OCaml. Sometimes when there is an error of execution, it shows the line of error, but it 开发者_JAVA百科does not show the context, for instance, how the function is[详细]
2023-03-14 01:05 分类:问答"Error during linking" for a Java compiler written in Ocaml
I have found a source of Java compiler writ开发者_StackOverflowten in Ocaml which should work. But when I do make, it finished with an error:[详细]
2023-03-13 18:40 分类:问答Expression types in a compiler written in Ocaml
I am writing a small compiler in Ocaml. In ast.mli, i have defined 2 kinds of expressions type int_expr =[详细]
2023-03-13 15:36 分类:问答OpenGL + GLUT using Ocaml
I have a problem with installing OpenGL (and GLut) and using it with Ocaml. I have tried many different packages (under both Linux and Windows) and always got problems[详细]
2023-03-13 09:52 分类:问答Getting rid of value restriction errors
in OCaml Objective Caml version 3.11.0 # let rec last l= match l with [] -> failwith(\"Empty list\") |a::[] -> a[详细]
2023-03-13 08:20 分类:问答Better to use "and" or "in" when chaining "let" statements?
I realize this is probably a silly question, but... If I\'m chaining a bunch of let statements which do not need to know each other\'s values, is it better to use and or in?[详细]
2023-03-13 05:08 分类:问答OCaml return values
In the book \'Developing Applications with OCaml\', there is the following explanation regarding return values:[详细]
2023-03-12 21:11 分类:问答Type of addition (+) in F#
I just learned that OCAML have to have a . postfix for doing float arithmetic. An example would be 3. +. 4. which equals 7. (float). However, F# handles float and integer arithmetic in the same way, s[详细]
2023-03-11 19:18 分类:问答Detecting if memory is low under ocaml
I need a way to detect if memory is low, so that my ocaml program could react on this. Could you point me how to implement or use it?[详细]
2023-03-10 22:04 分类:问答running executable (windows) file inside ocaml
Quick question. How to run an executable file in ocam开发者_Go百科l? I believe this is possible, but I don\'t know how.[详细]
2023-03-10 10:55 分类:问答