mfp changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | OCaml 3.11.2 released | Inscription for OCaml Meeting 2010 is opened http://wiki.cocan.org/events/europe/ocamlmeetingparis2010
albacker has quit [Read error: Operation timed out]
pimmhogeling has quit [Ping timeout: 245 seconds]
<mfp> mrvn: omake supports FAM/gamin, which use inotify on linux
<mfp> (-P option)
slash_ has quit [Quit: Lost terminal]
joewilliams is now known as joewilliams_away
<bmp> thelema: I'm available to do more batteries debugging, if that's helpful.
joewilliams_away is now known as joewilliams
mfp has quit [Ping timeout: 245 seconds]
CcSsNET has quit [Quit: User disconnected]
bmp has quit [Remote host closed the connection]
bmp has joined #ocaml
asurai has joined #ocaml
bmp has quit [Ping timeout: 240 seconds]
asurai is now known as bmp
seafood has joined #ocaml
Associat0r has quit [Quit: Associat0r]
sepp2k1 has quit [Quit: Leaving.]
mfp has joined #ocaml
yakischloba has quit [Quit: Leaving.]
spearalot has joined #ocaml
spearalot has quit [Client Quit]
ikaros has quit [Quit: Leave the magic to Houdini]
sc30317 has joined #ocaml
travisbrady has quit [Quit: travisbrady]
ReachingFarr has joined #ocaml
enthymene has quit [Quit: rcirc on GNU Emacs 23.1.1]
_unK has quit [Remote host closed the connection]
<ReachingFarr> So I'm picking out a lexer generator and a parser generator for a project. Right now I'm thinking of using ulex for lexing because I want to accept UTF-8 encoded programs, but I can't find a good tutorial for ulex. Anyone know of one?
joewilliams is now known as joewilliams_away
<krankkatze> hey
seanmcl has quit [Quit: seanmcl]
boscop_ has quit [Quit: Gxis revido!]
<krankkatze> so I have this let foo string = ... function
<krankkatze> and I'd like to match the first char of the string
boscop has joined #ocaml
<krankkatze> which might be actually empty
<krankkatze> should I make two imbricated pattern matchings?
<krankkatze> it looks ugly to me
seafood has quit [Quit: seafood]
bmp has quit [Quit: bmp]
travisbrady has joined #ocaml
yakischloba has joined #ocaml
MrHeavy has quit [Ping timeout: 246 seconds]
maskd has quit [Quit: leaving]
seafood has joined #ocaml
seafood has quit [Quit: seafood]
pad has quit [Remote host closed the connection]
seafood has joined #ocaml
seafood has quit [Client Quit]
seafood has joined #ocaml
<thelema> krankkatze: if string = "" then ... else match string.[0] with ...
derdon has quit [Quit: derdon]
kriko has quit [Remote host closed the connection]
<ReachingFarr> How do I match the character " in ocamllex rules?
<thelema> '"', no?
<ReachingFarr> I'm getting an illegal character error on that.
<thelema> are you sure that's the problem - I'm using it my .mll file with no problem
<thelema> (I think. my project isn't compiling ATM, let's see if I can stub out the missing bits)
<ReachingFarr> This is the line that is generating the problem at character 9. (The first character is a tab.)
<ReachingFarr> Arrg, sorry. That is my bad. I was reading columns instead of characters.
<ReachingFarr> So it isn't liking the .*
<ReachingFarr> Because I should be using a _...
<ReachingFarr> OK. I should just give up for tonight :-)
<thelema> try again tomorrow.
<ReachingFarr> Yup. 12 hours of work isn't good for anyone.
Drk-Sd has quit [Quit: {'EXIT', Drk-Sd, "bye"}]
enthymene has joined #ocaml
MrHeavy has joined #ocaml
seafood has quit [Quit: seafood]
bzzbzz has quit [Quit: leaving]
ygrek has joined #ocaml
ulfdoz has joined #ocaml
seafood has joined #ocaml
dark has quit [Remote host closed the connection]
ygrek has quit [Ping timeout: 245 seconds]
albacker has joined #ocaml
ygrek has joined #ocaml
CcSsNET has joined #ocaml
CcSsNET has quit [Read error: Connection reset by peer]
yakischloba has quit [Quit: Leaving.]
<flux> say, anyone doesn't know of a code to generate strings from a regular expression?
tmaeda has quit [Ping timeout: 240 seconds]
Associat0r has joined #ocaml
tmaeda has joined #ocaml
enthymene has quit [Quit: rcirc on GNU Emacs 23.1.1]
<albacker> flux, you mean what should .* generate than?
<albacker> forget the 'you mean' part.
<flux> albacker, obviously all strings
<flux> albacker, if I don't want to generate all strings, I put in a more limited regexp
<flux> additionally I might ask it to generate only strings up to n characters
<albacker> maybe i lost one part of the discussion. .* can generate aaa or even aaaaaaaaaaaaaa or many many more a's (etc...). Do you have 'one database' of strings to search in ?
<albacker> ah i see.
<flux> preferably it would generate them in lexicographical order, ie. shortest first
<Camarade_Tux> I don't know of any library that does that but it should be quite easy if there is a library that gives you a graph for the regexp
<Camarade_Tux> at each node, decide randomly where to go next, of course it is guaranteed to not terminate when you need it the most thanks to Murphy's Law :-)
<flux> well, there is something for java(?): http://code.google.com/p/xeger/
<flux> camarade_tux, well, is there a RE->NFA or even RE->DFA library around?-)
<Camarade_Tux> flux: no idea but I'm starting to think that's how xeger does it: it relies on http://www.brics.dk/~amoeller/automaton/ ;-)
<Camarade_Tux> maybe mikmatch
<Camarade_Tux> nah, mikmatch won't have enough in its code
seafood has quit [Quit: seafood]
ikaros has joined #ocaml
Alpounet has joined #ocaml
tmaeda has quit [Ping timeout: 265 seconds]
tmaeda has joined #ocaml
avsm has joined #ocaml
CcSsNET has joined #ocaml
avsm1 has joined #ocaml
avsm has quit [Ping timeout: 276 seconds]
_zack has joined #ocaml
ulfdoz has quit [Quit: kernel-update]
ulfdoz has joined #ocaml
_unK has joined #ocaml
_zack has quit [Quit: Leaving.]
maskd has joined #ocaml
lokydor has joined #ocaml
zhijie has joined #ocaml
lokydor has quit [Ping timeout: 252 seconds]
thelema has quit [Remote host closed the connection]
thelema has joined #ocaml
spearalot has joined #ocaml
lokydor has joined #ocaml
boscop_ has joined #ocaml
boscop has quit [Ping timeout: 256 seconds]
<albacker> are labels only used to somehow know why are we using that argument during the code?
<albacker> a given argument*
<Camarade_Tux> you can the order of arguments too
<Camarade_Tux> and they give optional arguments
<albacker> i see.
<albacker> thanks : Camarade_Tux
boscop_ has quit [Quit: Gxis revido!]
boscop has joined #ocaml
seafood has joined #ocaml
_unK has quit [Remote host closed the connection]
_unK has joined #ocaml
boscop has quit [Quit: Gxis revido!]
_unK has quit [Remote host closed the connection]
boscop has joined #ocaml
_unK has joined #ocaml
avsm has joined #ocaml
avsm1 has quit [Ping timeout: 245 seconds]
_unK has quit [Remote host closed the connection]
_zack has joined #ocaml
ulfdoz has quit [Quit: hal upgrade]
seanmcl has joined #ocaml
Yoric has joined #ocaml
_unK has joined #ocaml
derdon has joined #ocaml
CcSsNET has quit [Ping timeout: 245 seconds]
seafood has quit [Quit: seafood]
Yoric has quit [Quit: Yoric]
ztfw has joined #ocaml
ulfdoz has joined #ocaml
_unK has quit [Remote host closed the connection]
ikaros has quit [Quit: Leave the magic to Houdini]
pimmhogeling has joined #ocaml
_unK has joined #ocaml
<thelema> flux: still wanting to generate strings from a regex?
<_zack> thelema: what is the reccomended way to use (the new) batteries by default now?
<_zack> open Batteries
<_zack> ?
<_zack> in the top-level it doesn't work (at least in my debian 1.1 package pre-release)
<_zack> # open Batteries;;
<_zack> # List.fold_left;;
<_zack> Error: Reference to undefined global `Batteries'
<_zack> #
<_zack> (with #require "batteries" before, of course)
lokydor has quit [Ping timeout: 240 seconds]
<flux> thelema, suure, what've you got/-)
<flux> _zack, open Batteries_uni;; if you're not using threads
<_zack> flux: thanks, that works
<_zack> Debian package is ready then :-)
<flux> :)
<_zack> still, it seems to me that under doc/ there is a lot of outdated documentation
<_zack> which is still shipped by the Debian package and can be a tad misleading
<_zack> should I just ship the HTML API ref for the moment?
<_zack> thelema: ^^^
<thelema> _zack: the recommended way is to somehow include our battop.ml in your toplevel
<thelema> _zack: yes, just the api ref for the moment
<_zack> thelema: ack
<thelema> flux: I've got a regex -> dfa library
<_zack> if that "recommended way" documented anywhere that I can ship with the -dev package?
<thelema> _zack: you're supposed to do #threads;;, and then [open Batteries] is correct
lokydor has joined #ocaml
<thelema> _zack: the documentation in the FAQ file could be better written, but it explains this.
<_zack> cool! then I'll ship that
* _zack was a bit puzzled in understanding what is up to date and what is not inside batteries' doc
<thelema> stuff in sub-folders isn't guaranteed to be up to date.
<_zack> it seems to me that the general rule is that: everything which is in the root dir is ok
<_zack> indeed
<thelema> the root and src/ folders are up to date
<thelema> well, VERSION isn't so good. I'm gonna remove it from git
<_zack> I'll drop also examples/* then
<_zack> right?
<thelema> yes, we'll get those up to speed sometime soon.
<_zack> thelema: last question, is myocamlbuild.ml up to date?
<thelema> the one in doc/batteries/?
<_zack> yep
<thelema> It's got a bunch of old cruft, but it still works.
pimmhogeling has quit [Ping timeout: 245 seconds]
bzzbzz has joined #ocaml
Drk-Sd has joined #ocaml
ulfdoz_ has joined #ocaml
krankkatze has quit [Remote host closed the connection]
ulfdoz has quit [Ping timeout: 252 seconds]
spearalot has quit [Ping timeout: 268 seconds]
sepp2k has joined #ocaml
Shoggoth has joined #ocaml
<_zack> debian package of batteries 1.10 has just been uploaded
alp has joined #ocaml
Alpounet has quit [Read error: Connection reset by peer]
Shoggoth has quit [Quit: Ex-Chat]
travisbrady has quit [Quit: travisbrady]
Submarine has joined #ocaml
Drk-Sd is now known as drk-sd
tmaeda has quit [Ping timeout: 268 seconds]
tmaeda has joined #ocaml
tmaeda has quit [Client Quit]
tmaeda has joined #ocaml
lokydor has quit [Remote host closed the connection]
Yoric has joined #ocaml
pimmhogeling has joined #ocaml
travisbrady has joined #ocaml
krankkatze has joined #ocaml
Yoric has quit [Ping timeout: 240 seconds]
seanmcl has quit [Quit: seanmcl]
ulfdoz_ has quit [Quit: Reconnecting]
ulfdoz has joined #ocaml
slash_ has joined #ocaml
pimmhogeling has quit [Ping timeout: 256 seconds]
yakischloba has joined #ocaml
bmp has joined #ocaml
_zack has quit [Quit: Leaving.]
bzzbzz has quit [Quit: leaving]
avsm has quit [Quit: Leaving.]
krankkatze has quit [Ping timeout: 240 seconds]
ztfw has quit [Remote host closed the connection]
sepp2k has quit [Ping timeout: 256 seconds]
alp has quit [Quit: ``Do what you think you can't do.'']
Alpounet has joined #ocaml
sepp2k has joined #ocaml
bmp has quit [Remote host closed the connection]
bmp has joined #ocaml
enthymene has joined #ocaml
ofaurax has joined #ocaml
<ofaurax> !
<julm> !
<Camarade_Tux> ¡
tmaeda is now known as tmaedaZ
enthymene has quit [Quit: bye for now]
hcarty has joined #ocaml
asurai has joined #ocaml
bmp has quit [Ping timeout: 260 seconds]
asurai is now known as bmp
bmp has quit [Quit: bmp]
lokydor has joined #ocaml
jao has joined #ocaml
tmaedaZ has quit [Ping timeout: 245 seconds]
CcSsNET has joined #ocaml
maattd has joined #ocaml
lokydor has quit [Ping timeout: 240 seconds]
tmaedaZ has joined #ocaml
pimmhogeling has joined #ocaml
kakadu has joined #ocaml
kakadu has quit [Remote host closed the connection]
ygrek has quit [Ping timeout: 245 seconds]
pimmhogeling has quit [Remote host closed the connection]
maattd is now known as maattd|away
bzzbzz has joined #ocaml
seafood has joined #ocaml
leoncame1 has joined #ocaml
pimmhogeling has joined #ocaml
Submarine has quit [Ping timeout: 240 seconds]
joewilliams_away is now known as joewilliams
seafood has quit [Quit: seafood]
seafood has joined #ocaml
joewilliams is now known as joewilliams_away
seafood has quit [Client Quit]
albacker has quit [Disconnected by services]
albacker has joined #ocaml
Amorphous has quit [Ping timeout: 258 seconds]
<Camarade_Tux> stumbled on http://code.google.com/p/nacl-ocaml/wiki/GettingStarted and pondering trying it
Amorphous has joined #ocaml
<mrvn> *shiver* My Tree.replace function turned out horrible: http://paste.debian.net/62855/
seafood has joined #ocaml
seafood has quit [Client Quit]