smkl has quit [Read error: 110 (Connection timed out)]
smkl has joined #ocaml
gl has quit [Read error: 113 (No route to host)]
tsaib is now known as tsaib_afk
gl has joined #ocaml
* gl
is away: I'm busy
malc has joined #ocaml
malc has quit ["no reason"]
mrvn has joined #ocaml
<
mrvn>
Anyone used the Lexer and Parser generator of ocaml?
<
mrvn>
File "sourceParser.mli", line 27, characters 48-66:
<
mrvn>
Unbound type constructor SourceType.sources
<
mrvn>
ocaml doesn#t want to use my user defined type.
cymonts has joined #ocaml
<
mrvn>
cymonts: every used the parser generator in ocaml?
<
mrvn>
If I use "SourceType.Source foo" shouldn't ocaml then look for a sourceType.mli or cmi?
yangsx has joined #ocaml
<
smkl>
mrvn: yes (for .cmi)
<
mrvn>
It says unbound constructor.
<
mrvn>
hmm, SourceType.SourceType.sources works.
<
mrvn>
Why is the name doubled there?
<
smkl>
perhaps sourceType.ml has something like module SourceType = struct ... end
<
mrvn>
yes. Don't I need that?
<
mrvn>
Do I need the .mli if everything from the ml is to be exported?
yangsx has quit ["Client Exiting"]
gene9 has joined #ocaml
gene9 has quit ["."]
Dalroth has joined #ocaml
taw has joined #ocaml
<
taw>
how to say define type foo to be hash from string to bar ?
cymonts has quit [Read error: 60 (Operation timed out)]
<
smkl>
type foo = (string,bar) Hashtbl.t ?
<
taw>
i'm new to ocaml so i'm asking silly questions ;)
<
taw>
are there any open source ocaml programs that do cgi or heavy text processing ?
<
taw>
i'd like to see some code of that kind
gl has quit [Read error: 113 (No route to host)]
gl has joined #ocaml
tmcm has joined #ocaml
tmcm has quit [Client Quit]
TimFreeman has joined #ocaml
TimFreeman has left #ocaml []
Dalroth has quit []
gl has quit [Read error: 104 (Connection reset by peer)]
gl has joined #ocaml
two-face has joined #ocaml
two-face has quit [Client Quit]
malc has joined #ocaml
gl has quit [Read error: 104 (Connection reset by peer)]
gl has joined #ocaml
<
taw>
how to read integer from stdio ?
<
malc>
taw: what kind of integer
<
taw>
echo 1234 | my_ocaml_program
<
taw>
normal integer
<
malc>
let n = int_of_string (read_line ())
<
smkl>
"read_int ()" works too
<
mr_bubbs>
yeah, malc >_<
<
malc>
well, yes. i do not seek easy ways, bite me
malc has quit ["no reason"]
<
taw>
how can i push new values onto list ?
<
smkl>
lists are immutable, they cannot be modified. a::tl returns a new list with a added to tl
<
taw>
i need something mutable
* taw
is using Queue now but this may not be very optimal
<
taw>
writing non-functional code in ocaml is hard
<
smkl>
you can have let l = ref lst and then l := x :: !l
<
taw>
i probably simply should change the solution from non-functional to functional