<_BT>
I CANNOT get this *&%$# cameleon install to work
<Kinners>
where's it going wrong?
xoozce is now known as lament
ecc has quit [Read error: 54 (Connection reset by peer)]
_BT has quit ["Client Exiting"]
Kinners has quit [Read error: 104 (Connection reset by peer)]
lament is now known as sk8ter69
foxster has joined #ocaml
sk8ter69 is now known as lament
clog has quit [^C]
clog has joined #ocaml
foxster has quit [Read error: 104 (Connection reset by peer)]
* Sonarman
is back (gone 01:34:25)
lament has quit ["Did you know that God's name is ERIS, and that He is a girl?"]
Sonarman has quit ["Client exiting"]
teliaz has joined #ocaml
teliaz is now known as tome
foxster has joined #ocaml
tome has left #ocaml []
mattam has joined #ocaml
polin8_ has joined #ocaml
usander has joined #ocaml
polin8 has quit [Read error: 113 (No route to host)]
Yurik_ has joined #ocaml
Yurik has quit [Read error: 54 (Connection reset by peer)]
Yurik has joined #ocaml
Yurik_ has quit [Read error: 54 (Connection reset by peer)]
foxster has quit [Read error: 104 (Connection reset by peer)]
foxster has joined #ocaml
Kinners has joined #ocaml
coolduck has joined #ocaml
Kinners has quit [Read error: 110 (Connection timed out)]
mellum has quit [Read error: 110 (Connection timed out)]
usander has quit ["using sirc version 2.211+KSIRC/1.2.1"]
skylan has quit [Read error: 104 (Connection reset by peer)]
skylan has joined #ocaml
mellum has joined #ocaml
<mellum>
does anybody know whether the o'reilly book is also available as hardware?
<emu>
on a chip?
<emu>
does this look like #forth?
<mellum>
On dead trees, actually
<emu>
well that's more floppy
<mellum>
well, on floppyware, then
<emu>
wouldn't they say on their website?
<mellum>
I can't find it there anywhere
<mellum>
Maybe I should print it out, it's only 757 pages, after all :)
<Smerdyakov>
No
<Smerdyakov>
Find an open e-book reading device, then tell me which one you got so I can get it too =)
Smerdyakov has quit []
<mattam>
mellum: it is, at least in french
<mellum>
mattam: well, I guess my French is a bit too rusty... also the French are now part of the Axis of Evil ;)
<mattam>
well, maybe the U.S.A. president's should lookup that word in some dictionary
<mattam>
if it's published in french, it should be published in english too
taw has joined #ocaml
<taw>
hi
<mattam>
hi taw
<taw>
who's this Xavier Leroy guy and does he come here often ?
<Yurik>
taw: hi
<taw>
hi Yurik
Smerdyakov has joined #ocaml
<karryall>
taw: Xavier Leroy is the person who implemented most of Objective Caml (bytecode interpreter, compiler, etc.)
<Yurik>
seems that Xavier never comes here :)
<taw>
oh
<karryall>
indeed
* taw
sending mail to him now
coolduck has quit ["Client Exiting"]
mellum has quit ["Leaving"]
mrvn has joined #ocaml
mrvn_ has quit [Read error: 60 (Operation timed out)]
mattam_ has joined #ocaml
mattam has quit [Read error: 60 (Operation timed out)]
Yurik has quit ["Client exiting"]
TachYon has joined #ocaml
stepcut has joined #ocaml
<stepcut>
Is there a function that does the oposite of String.escaped ?
<stepcut>
I want to be able to do print_endline (unescaped "hi\"there\"") and get out: hi "there"
<Smerdyakov>
Think about what you just typed.
<taw>
hehe
<Smerdyakov>
You probably meant to use print_endline (unescaped "hi \\"there\\"")
<taw>
"hi \\\"there\\\"" !
<Smerdyakov>
Oh, right, heh
<Smerdyakov>
And such a function is trivial to write....
<Smerdyakov>
It's not like the string parser the compiler uses would need to be included with executables already, so it might not be available to you.
<taw>
hmm
<taw>
it's not
<taw>
ocaml doesn't seem to have s/// in string library
systems has joined #ocaml
<stepcut>
i did mean "hi \\\"there\\\""
<stepcut>
I wrote one that almost works, but fails for "hi \\\"there\\"" (aka hi "there\) :p
<stepcut>
and it doesn't deal with \n or \t
<stepcut>
err
<stepcut>
too many \\\\\\\
<taw>
hehe
<stepcut>
it failed on "hi \"there\\\""
<stepcut>
aka: hi "there\"
<taw>
perl doesn't have this kind of problems ;)
* stepcut
just wants a stupid s-expression parser
<Riastradh>
Imagine writing a regexp string that is dealing with a regexp string in another language (you're writing code to write code in another language) -- \\\\\\\\\\\\\\\\n. One because you're escaping something (the 'n'). Double that because it's in a string literal. Double that because it's a regexp. Double that because it's in a string literal in another language. Double that because it's a regexp in another language. That m
<stepcut>
maybe my lexer should just do things different :p
<Riastradh>
You don't need a special lexer to parse s-expressions.
<stepcut>
oh?
<mrvn>
Why not just duplicate the \ when lexing?
<Riastradh>
Have a readToken function -- it ignores whitespace and reads a character. If that character is a paren, it reads a list; if that character is a double-quote, it reads a string; if that character is a valid symbol character, read a symbol; et cetera.
<Riastradh>
readList would simply read tokens until a close-paren.
<Riastradh>
readSymbol would read until a delimiter.
<mrvn>
a simple recursive lexer.
<Riastradh>
Et cetera...
<stepcut>
Riastadh: isn't readToken a lexer?
<Riastradh>
I don't think your code would exceed even 100 lines.
<Riastradh>
stepcut - No, it's just an ordinary function --
<stepcut>
Riastradh: a normal function that does lexing?
<mrvn>
Normaly you would return ( ) as tokens and make a list out of it in the grammar. "..." and comments are most easily done recursive
<Riastradh>
let readToken stream = let char = readChar stream ... (* I don't know the reading functions in OCaml, but I'msure it isn't very different *)
<stepcut>
thats all the .mll file does, it defines a function 'readToken' that returns '(' ')' a string or eof
<taw>
hmm
<taw>
any ocamllex experts here ?
* taw
has to find a way to make it support ^ and $ pattrerns
<stepcut>
taw: i had to fake it and put stuff like that in the parser...
<taw>
but that's very very wrong
<stepcut>
yeah
<taw>
grammar is already waay to complex without it
<stepcut>
i was in a rush :)
mellum has joined #ocaml
<mrvn>
nabend mellum
<taw>
what's that ?
<mrvn>
what?
<taw>
nabend mellum ?
<taw>
hehe
<mrvn>
babelfish
<taw>
bye
taw has quit ["Client Exiting"]
Kinners has joined #ocaml
* mellum
wonders whether babelfish knows about "nabend"
td_ has joined #ocaml
<mrvn>
mellum: Alles was ich muesammst probiere braucht entweder viel viel zu lange oder ist auch nicht besser als einfach wort an wort zu legen bis nichts mehr geht.