<ulfdoz>
mush: I suppose, because of the arrow after the "with" of the "match <id> with"
<ulfdoz>
Or on line 6 to say it clearer.
<mush>
ulfdoz, but there is a bracket ... ?
<ulfdoz>
But a pattern is expected after "with". And the parenthesis is on line 5.
<ulfdoz>
At least in the code you pastet.
<mush>
ok sorry
<mush>
i see
threeve has joined #ocaml
MisterC has quit [Read error: 110 (Connection timed out)]
brx has joined #ocaml
vezenchio has joined #ocaml
brx has quit [Connection timed out]
brx has joined #ocaml
mush has quit [Nick collision from services.]
mush_ has joined #ocaml
__DL__ has joined #ocaml
brx has quit [Remote closed the connection]
brx has joined #ocaml
brx has quit [Remote closed the connection]
brx has joined #ocaml
TFK has joined #ocaml
ChipsterOne has quit []
TFK has quit ["Leaving"]
TFK has joined #ocaml
ppsmimou has quit ["Leaving"]
threeve has quit []
threeve has joined #ocaml
smimou has joined #ocaml
pango has quit ["Leaving"]
Submarine has quit ["in Soviet Russia, Céline Dion owns you"]
pango has joined #ocaml
mush_ has quit [Remote closed the connection]
mrsolo has joined #ocaml
<ulfdoz>
Is there a way to manually add eports to an mli-file generated by ocamlyacc? Currently I have a circular dependency between two compilation units.
<ulfdoz>
Manually actually means non-manually, i.e. when the file is generated I'd like to have more than just the token type in there.
Schmurtz has quit [Read error: 113 (No route to host)]
Skal has joined #ocaml
chs_ has joined #ocaml
<ulfdoz>
I feel somewhat lonely. :)
Bigb[a]ng is now known as Bigbang
bernardo has joined #ocaml
brx has quit [Remote closed the connection]
brx has joined #ocaml
mauke has quit [Remote closed the connection]
mauke has joined #ocaml
bernardo has left #ocaml []
mikeX has joined #ocaml
brx has quit [Read error: 104 (Connection reset by peer)]
brx has joined #ocaml
Snark has left #ocaml []
__DL__ has quit [Remote closed the connection]
brx_ has joined #ocaml
brx has quit [Connection reset by peer]
<ulfdoz>
How to concat a character and a string?
<pango>
ulfdoz: lenght of string are immutable, so you need to create a new string...
<smimou>
s = c ^ s;
<smimou>
s = " " ^ s;
<smimou>
s.[0] <- c
<smimou>
sorry
<ulfdoz>
ugly as C, but ok. I couldn't get ocamllex to give "string option" which would have made life easier.
<pango>
Printf.sprintf "%c%s" c s
<ulfdoz>
*printf considered evil, at least in my opinion, no type checking and even more confusing format strings.
<pango>
no type checking ??
<pango>
# Printf.sprintf "%c%s" ;;
<pango>
- : char -> string -> string = <fun>
<ulfdoz>
I mean for the type in the format string.
<pango>
I don't get you
<ulfdoz>
actually that are no types, but it makes no sense to me, to replace %c by a string.
clog has joined #ocaml
<pango>
ulfdoz: a matter of taste, I guess, because it doesn't bother me at all
brx_ has quit [Read error: 110 (Connection timed out)]
clog has joined #ocaml
clog has joined #ocaml
brx has joined #ocaml
brx has quit [Read error: 110 (Connection timed out)]
revision17_ has quit [Remote closed the connection]