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 :-)