ocaml
IEnumerable<T> in OCaml
I use F# a lot. All the basic collections in F# implement IEumberable interface, thus it is quite natural to access them using the single Seq module in F#. Is this possible in OCaml?[详细]
2023-03-17 07:00 分类:问答What is the state of OCaml's parallelization abilities?
I\'m interested in using OCaml for a project, however I\'m not sure about where its parallelizatio开发者_运维技巧n capabilities are anymore.Is there a message passing ability in OCaml?Is OCaml able to[详细]
2023-03-17 06:29 分类:问答How to change a part of values in a record?
I have defined a type like that: type s_program = { globals : s_var list; main: s_block; } and s_var = { s_var_name: string;[详细]
2023-03-17 05:47 分类:问答An error of parser
I am writing a compiler in Ocaml. I want to realize something like that: program test; var a,b : boolean;[详细]
2023-03-17 00:06 分类:问答Open Module_name gives a compiler-error
I cannot compile an extremely simple ocaml program test2.ml open Test1 print_string \" Hello \" with test1.ml containing only 1 line[详细]
2023-03-16 05:13 分类:问答Where/how to declare the unique key of variables in a compiler written in Ocaml?
I am writing a compiler of mini-pascal in Ocaml. I would like my compiler to accept the following code for instance:[详细]
2023-03-15 23:18 分类:问答Ocaml code which compiles, but does not go with toplevel
I am doing an exercise of a free course. The following ocaml code compiles when I \"make\", but it complains once I am trying to put it into toplevel. Why?[详细]
2023-03-15 20:34 分类:问答Writing cat in OCaml: use of Unix.read
I\'m trying to write small utilities to get used to Unix programming with OCaml. Here\'s my try for cat:[详细]
2023-03-14 18:51 分类:问答How to debug/execute a Ocaml program step by step?
I am wondering if it is possible to debug/execute a Ocaml program step by step, for instance like debugging C++ programs in Visual Studio. In other words, I would like to run a Ocaml program line by l[详细]
2023-03-14 15:57 分类:问答How to generate and set up annotation for Ocaml in Emacs?
I am writing a compiler in Ocaml with Emacs. I am told that with -annot a file .annot could be generated while compiling, which could help Emacs to show the type of my code. But it is odd that no .ann[详细]
2023-03-14 04:34 分类:问答