00:21
sepp2k has quit [Quit: Leaving.]
00:27
iago has quit [Quit: Leaving]
00:28
Edward has joined #ocaml
00:29
Edward has quit [Read error: Connection reset by peer]
00:34
worldhlord has quit [Ping timeout: 265 seconds]
00:37
mjonsson_ has joined #ocaml
00:47
aj2009 has quit [Read error: Connection timed out]
00:49
aj2009 has joined #ocaml
01:35
Associat0r has quit [Quit: Associat0r]
01:37
iratsu` has quit [Ping timeout: 240 seconds]
01:42
aj2009 has quit [Quit: Leaving]
01:50
jeddhaberstro has joined #ocaml
02:05
eldragon has joined #ocaml
02:43
iratsu` has joined #ocaml
02:54
|marius| has quit [Ping timeout: 265 seconds]
03:07
mjonsson_ has quit [Ping timeout: 248 seconds]
03:16
ulfdoz_ has joined #ocaml
03:20
ulfdoz has quit [Ping timeout: 276 seconds]
03:24
mjonsson_ has joined #ocaml
03:57
metasyntax has joined #ocaml
03:59
iNode has quit [Ping timeout: 246 seconds]
04:07
jakedouglas has quit [Quit: Leaving.]
04:33
|marius| has joined #ocaml
04:58
ulfdoz_ has quit [Quit: Reconnecting]
04:58
ulfdoz has joined #ocaml
05:08
oc13 has joined #ocaml
05:12
ftrvxmtrx has joined #ocaml
05:52
ygrek_ has joined #ocaml
05:56
Yoric has joined #ocaml
05:58
valross has quit [Quit: Ex-Chat]
06:03
odobenus has joined #ocaml
06:07
odobenus has quit [Remote host closed the connection]
06:10
ftrvxmtrx has quit [Quit: Leaving]
06:11
dcolish has quit [Ping timeout: 260 seconds]
06:12
metasyntax` has joined #ocaml
06:14
Obfuscate has quit [Ping timeout: 264 seconds]
06:14
metasyntax has quit [Ping timeout: 264 seconds]
06:14
ulfdoz has quit [Ping timeout: 240 seconds]
06:16
Obfuscate has joined #ocaml
06:42
oc13 has quit [Quit: oc13]
06:45
Yoric has quit [Quit: Yoric]
06:47
oc13 has joined #ocaml
06:48
itewsh has joined #ocaml
06:49
ikaros has joined #ocaml
06:53
<
oc13 >
hi, i am playing around with ulex and yacc
06:53
<
oc13 >
and got an error i have got difficulties to clear
06:53
Amorphous has quit [Ping timeout: 265 seconds]
06:54
<
oc13 >
File "main.ml", line 15, characters 31-42:
06:54
<
oc13 >
Error: This expression has type Ulexing.lexbuf -> Parser.token
06:54
<
oc13 >
but an expression was expected of type Lexing.lexbuf -> Parser.token
06:54
<
oc13 >
created a small example at:
06:54
jeddhaberstro has quit [Quit: jeddhaberstro]
06:55
ftrvxmtrx has joined #ocaml
06:55
<
oc13 >
can anybody help me out here?
06:59
<
thelema >
ULexing != Lexing
07:00
<
oc13 >
yes i am aware of, but where do i declare it
07:00
dcolish has joined #ocaml
07:00
<
oc13 >
parser.ml and lexer.ml are mostly generated
07:03
thelema_ has joined #ocaml
07:03
<
oc13 >
used exactly this text to change from lexing to ulexing
07:04
<
oc13 >
must have overlooked something simple
07:04
thelema has quit [Disconnected by services]
07:04
thelema_ is now known as thelema
07:05
<
thelema >
it looks like it's missing the instructions on how to use this in yacc - it looks like you can't use it directly
07:06
<
oc13 >
thanks. do you know to tell yacc to use lexing?
07:06
<
oc13 >
sorry, ulexing
07:07
<
thelema >
yacc defaults to using lexing, I don't know how to tell it to use ulexing. It's possible a simple "module Lexing = Ulexing" would work
07:07
<
thelema >
(in the header of your yacc file)
07:08
Amorphous has joined #ocaml
07:09
|marius| has quit [Remote host closed the connection]
07:13
<
thelema >
you might try putting the question to stackoverflow.com - there's some really knowledgable ocaml people that answer questions there impressively promptly
07:14
<
thelema >
another person says that dpygen can use ulex
07:15
<
oc13 >
thanks, will resort to recursive descend
07:15
<
thelema >
yup, that seems to be the alternative. There's some example code
07:16
<
thelema >
good luck.
07:16
<
oc13 >
ok, will try it, thanks for your help
07:30
yoruk has joined #ocaml
07:42
ikaros has quit [Quit: Leave the magic to Houdini]
07:47
Tianon has quit [Read error: Connection reset by peer]
07:49
Associat0r has joined #ocaml
08:07
yoruk has quit [Quit: .]
08:12
oc13 has quit [Quit: oc13]
08:16
boscop_ has joined #ocaml
08:18
boscop has quit [Ping timeout: 265 seconds]
08:25
bacam has joined #ocaml
08:32
Associat0r has quit [Quit: Associat0r]
09:07
ygrek_ has quit [Ping timeout: 245 seconds]
09:08
pikachuyann has joined #ocaml
09:12
itewsh has quit [Ping timeout: 245 seconds]
09:16
hto has quit [Quit: leaving]
09:20
hto has joined #ocaml
09:36
krankkatze is now known as krnkktz
09:37
Yoric has joined #ocaml
09:48
eldragon has quit [Read error: Connection reset by peer]
09:51
eldragon has joined #ocaml
09:55
asmanur_ has joined #ocaml
09:58
asmanur has quit [Ping timeout: 248 seconds]
10:01
Yoric has quit [Ping timeout: 258 seconds]
10:02
manual has joined #ocaml
10:19
ygrek_ has joined #ocaml
10:24
boscop_ has left #ocaml []
10:24
boscop has joined #ocaml
10:41
ztfw`` has quit [Read error: Operation timed out]
10:43
Yoric has joined #ocaml
10:57
Associat0r has joined #ocaml
11:01
ASpiwack has joined #ocaml
11:15
_andre has joined #ocaml
11:33
ygrek_ has quit [Ping timeout: 245 seconds]
11:35
fraggle_ has quit [Quit: -ENOBRAIN]
11:39
fraggle_ has joined #ocaml
12:10
_unK has joined #ocaml
12:55
manual is now known as melba
12:57
melba is now known as manual
13:02
iratsu` has quit [Ping timeout: 240 seconds]
13:10
iratsu` has joined #ocaml
13:13
hto has quit [Quit: Lost terminal]
13:15
hto has joined #ocaml
13:28
bzzbzz has joined #ocaml
13:58
Znudzon_ has joined #ocaml
13:59
Yoric has quit [Quit: Yoric]
14:16
Znudzon_ has quit [Read error: Connection reset by peer]
14:17
iratsu` has quit [Ping timeout: 260 seconds]
14:18
iratsu has joined #ocaml
14:23
Znudzon has joined #ocaml
14:24
<
Znudzon >
could anyone tell me what means unbound package ? (iam trying to compile program with Tk )
14:26
<
adrien >
can you quote the exact error? and which program? it has a makefile or something like that? also, where is your ocaml installation from?
14:31
<
Znudzon >
"Error: Unbound value require" this is the error msg
14:32
|marius| has joined #ocaml
14:33
|marius| has quit [Remote host closed the connection]
14:49
<
Znudzon >
I have error :Unbound module Tk... what i can do with this ?
14:51
<
flux >
znudzon, the compiler cannot find the corresponding .cmi-files
14:51
<
flux >
znudzon, in this case, tk.cmi
14:52
<
flux >
znudzon, to fix it, use the the switch -I +labltk (if you're not using ocamlfind)
14:52
<
Znudzon >
How about when i'm using ocamlfind ?
14:53
<
flux >
-package labltk
14:54
<
Znudzon >
and after this my compiler add this to his packages lib or i must to write this all the time ?
14:55
<
flux >
often times this kind on information is written into your build script or Makefile
14:55
<
flux >
if you are not familiar with make, you could just make do with build.sh that contains the line required to compile the program
14:56
<
flux >
then there is ocamlbuild, which is nice to use once you get a proper myocamlbuild.ml (one that has ocamlfind-support)
14:57
<
Znudzon >
and each time when i will write something with tk module i must add - +labltk ?
14:58
jakedouglas has joined #ocaml
14:59
<
flux >
yes. ocamlc doesn't save anything to some configuration file.
14:59
<
Znudzon >
what a pity...
15:00
<
Znudzon >
but is there any kind of script for emacs fir this ?
15:01
<
flux >
I doubt that
15:01
<
flux >
well, you can use M-x compile
15:01
<
flux >
it asks for the compilation line
15:01
<
flux >
M-x recompile will recompile using the same line
15:01
<
flux >
IIRC the line can also be embedded inside the source file, but I don't remember the syntax
15:02
<
Znudzon >
hmm and add it to a new shortcut ...
15:03
<
Znudzon >
how will look the whole campilation line with labltk inside ?
15:04
iratsu has quit [Ping timeout: 240 seconds]
15:06
<
flux >
ocamlfind ocamlc -package labltk -o program -linkpkg source1.ml source2.ml
15:07
<
Znudzon >
thank you
15:08
<
Znudzon >
source is the program name ? right ?
15:12
<
flux >
source1.ml is the file with your code in it.. "program" is the resulting executable file.
15:19
<
flux >
znudzon, you do know what M-x means, right?
15:30
iratsu has joined #ocaml
15:33
Associat0r has quit [Quit: Associat0r]
15:33
Associat0r has joined #ocaml
15:35
rwmjones has quit [Quit: Terminated with extreme prejudice - dircproxy 1.2.0]
15:35
<
flux >
znudzon, maybe the compilation line is wrong or you have a problem in the program.
15:35
rwmjones has joined #ocaml
15:36
ikaros has joined #ocaml
15:40
ygrek_ has joined #ocaml
15:40
Yoric has joined #ocaml
15:50
<
Znudzon >
hmm this program is from examples to caml
15:50
<
Znudzon >
i think that i dont have problems there
15:57
<
Znudzon >
Adrien: ive copy this to my emacs .. whats next ?
15:59
<
adrien >
'ocamlopt -I +labltk source.ml' gives you "unbound module"? how did you install ocaml?
16:00
<
adrien >
have to go away a bit
16:00
<
Znudzon >
from with synaptic pakage menager
16:02
<
thelema >
Znudzon: ubuntu?
16:03
<
Znudzon >
something is wrong ?
16:04
* thelema
checks if the packagers split off labltk into a different package
16:05
<
thelema >
you have the package ocaml-base installed?
16:05
<
thelema >
(not just ocaml-base-nox)
16:06
<
thelema >
do you have a folder /usr/lib/ocaml/labltk
16:06
_unK has quit [Remote host closed the connection]
16:07
<
Znudzon >
one second...
16:09
<
Znudzon >
yes i have it
16:10
<
thelema >
and and what's your error? unbound 'require'?
16:12
<
Znudzon >
Unboun Tk module
16:12
<
Znudzon >
Adrien when i use your example i have :No implementations provided for the following modules:
16:13
<
Znudzon >
Camltk referenced from simple.cmx
16:14
<
thelema >
and you have a /usr/lib/ocaml/labltk/camltk.cmi file?
16:14
<
thelema >
hmm, actually you might have found a packaging bug. try ocamlopt instead.
16:15
avsm has joined #ocaml
16:15
<
thelema >
hmm, it doesn't work for me either.
16:16
<
Znudzon >
this is my program :
16:16
<
Znudzon >
open Camltk;;
16:16
<
Znudzon >
let action () = print_string "Hello world!"; print_newline ();;
16:16
<
Znudzon >
let hello () =
16:16
<
Znudzon >
let main_window = openTk () in
16:16
<
Znudzon >
let bouton_press =
16:16
<
Znudzon >
Button.create main_window
16:16
<
Znudzon >
[Text "Press me"; Command action] in
16:16
<
Znudzon >
pack [bouton_press] [];
16:16
<
Znudzon >
mainLoop ();;
16:16
<
Znudzon >
if !Sys.interactive then () else begin hello (); closeTk () end;;
16:17
<
Znudzon >
after compiling with ocamlc i have error:Reference to undefined global `Camltk'
16:17
<
thelema >
I found the pastebin and am working to compile that myself
16:18
<
thelema >
ok, it works with ocamlbuild:
16:18
<
thelema >
ocamlfind ocamlc -c -package labltk -o tk.cmo tk.ml
16:18
<
thelema >
ocamlfind ocamlc -linkpkg -package labltk tk.cmo -o tk.byte
16:21
<
thelema >
ah, we weren't building properly - in addition to [-I +labltk], we needed to add [labltk.cma]
16:21
<
thelema >
(which is why I let ocamlfind/ocamlbuild take care of these things
16:24
<
Znudzon >
after this i have tk.o and what now ?:)
16:30
Tianon has joined #ocaml
16:30
Tianon has quit [Changing host]
16:30
Tianon has joined #ocaml
16:33
<
thelema >
tk.o? the two ocamlfind lines I pasted work together to produce the binary in two steps, producing an intermediate tk.cmo file
16:35
<
adrien >
we tend to use ocamlfind as soon as additional libraries are involved: it takes cares of almost everything
16:38
<
thelema >
ocamlopt -I +labltk labltk.cmxa tk.ml -o tk
16:40
jsk is now known as jsk-away
16:41
<
Znudzon >
ok... then each time when i would like to build some program with tk i must write in console :
16:42
<
Znudzon >
ocamlfind ocamlc -c -package labltk -o tk.cmo tk.ml
16:42
<
Znudzon >
ocamlfind ocamlc -linkpkg -package labltk tk.cmo -o tk.byte
16:42
<
Znudzon >
ocamlopt -I +labltk labltk.cmxa tk.ml -o tk
16:42
<
Znudzon >
those 3 lines ?
16:47
sepp2k has joined #ocaml
16:51
<
adrien >
no: the first two
*OR* the third one, and they 're not completely equivalent since the first two ones perform separate compilation (useful when you have several files) and the last one does it in one pass
16:52
<
Znudzon >
how about when i have several modules ?
16:57
ftrvxmtrx has quit [Quit: Leaving]
17:01
Znudzon has quit [Read error: Connection reset by peer]
17:02
ulfdoz has joined #ocaml
17:03
Znudzon has joined #ocaml
17:04
<
adrien >
Znudzon: ocamlfind ocamlc -c -package labltk -o tk1.cmo tk1.ml; ocamlfind ocamlc -c -package labltk -o tk2.cmo tk2.ml; ocamlfind ocamlc -c -package labltk -o tk3.cmo tk3.ml; ocamlfind ocamlc -linkpkg -package labltk tk1.cmo tk2.cmo tk3.cmo -o tk.byte
17:04
Znudzon has quit [Remote host closed the connection]
17:14
mjonsson_ has quit [Ping timeout: 264 seconds]
17:16
mjonsson_ has joined #ocaml
17:19
oriba has joined #ocaml
17:20
|marius| has joined #ocaml
17:27
metasyntax has joined #ocaml
17:27
metasyntax is now known as metasyntax``
17:28
ygrek_ has quit [Remote host closed the connection]
17:50
ftrvxmtrx has joined #ocaml
17:52
ASpiwack has quit [Ping timeout: 246 seconds]
18:00
Anarchos has joined #ocaml
18:05
oriba has quit [Quit: Verlassend]
18:19
avsm has quit [Quit: Leaving.]
18:24
jakedouglas has quit [Ping timeout: 240 seconds]
18:24
jakedouglas has joined #ocaml
18:32
willb has joined #ocaml
18:40
sepp2k has quit [Quit: Leaving.]
18:41
Associat0r has quit [Quit: Associat0r]
20:27
_andre has quit [Quit: leaving]
20:31
ulfdoz has quit [Ping timeout: 276 seconds]
20:52
manual is now known as melba
21:10
willb has quit [Ping timeout: 245 seconds]
21:12
Yoric has quit [Quit: Yoric]
21:18
<
pikachuyann >
Bonne nuit / good night all
21:20
pikachuyann has quit [Quit: Quitte]
21:22
willb has joined #ocaml
21:26
malc_ has joined #ocaml
21:56
Anarchos has quit [Quit: time to sleep]
21:58
avsm has joined #ocaml
22:09
valross has joined #ocaml
22:19
ikaros has quit [Quit: Leave the magic to Houdini]
22:36
philtor has joined #ocaml
22:58
philtor has quit [Ping timeout: 240 seconds]
23:06
avsm has quit [Quit: Leaving.]
23:26
sepp2k has joined #ocaml
23:46
|marius| has quit [Remote host closed the connection]
23:49
|marius| has joined #ocaml
23:52
aj2009 has joined #ocaml