smimou changed the topic of #ocaml to: Dicussions about the OCaml programming language | http://caml.inria.fr/
fik has joined #ocaml
<fik> #forth
smimou has quit ["bli"]
_fab has quit []
pango_ has joined #ocaml
malc_ has quit ["leaving"]
klapmuet1 has joined #ocaml
pango has quit [Remote closed the connection]
fik has quit ["shut"]
klapmuetz has quit [Read error: 110 (Connection timed out)]
bmiller has quit [" "]
beschmi has joined #ocaml
sponge45 has joined #ocaml
bluestorm has quit ["Konversation terminated!"]
llama32 has joined #ocaml
llama32 has left #ocaml []
ziggurat has quit ["Leaving"]
ZeeGeek has joined #ocaml
batdog|gone is now known as batdog
<ZeeGeek> I got the error that I'm putting too many arguments to the function even though I didn't. what might cause the error?
<beschmi> ZeeGeek: most of the time, it's missing parentheses. eg f 1 + 2 instead of f (1+2)
<ZeeGeek> the function takes three arguments and I'm giving them like f(a, b, c)
batdog is now known as batdog|gone
<ZeeGeek> when I remove the third argument, it reported that I have to provide three arguments instead of two which was correct
<ZeeGeek> but when I add the third one back, it complained about too many arguments again
<beschmi> i can take a look if you paste the code + error message somewhere
<ZeeGeek> okay
dark_light has joined #ocaml
danly has joined #ocaml
sponge45 changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/
ZeeGeek has quit ["leaving"]
danly has quit [Remote closed the connection]
danly has joined #ocaml
danly has quit [Read error: 54 (Connection reset by peer)]
danly has joined #ocaml
danly has quit [Client Quit]
danly has joined #ocaml
sponge45 has quit ["zzzzzzzzzz"]
jordan- has joined #ocaml
<jordan-> can I ask a question about grammars? I am trying to write a parser
<jordan-> (in ocaml)
<Smerdyakov> Never ask to ask. Ask the question, keep it short enough, and someone will let you know if it's inappropriate.
<jordan-> fair enough. i am curious whether you guys think the following grammar will work for an ll(1) parser, for regular expressions: R -> S|R | S, S -> (S) | TS | a | T*, T -> T* | V, V -> c | \Epsilon | R where c stands for any character
<jordan-> i tried hard to make it non redundant and unambiguous, and i plan to implement it next
<jordan-> but i am trying to figure out if it's correct
<Smerdyakov> Ugh. Who wants to work with LL(1) grammars, anyway?
<jordan-> they're easier to implement
<jordan-> (commas separate those productions btw)
<Smerdyakov> You don't like using parser generators?
<jordan-> no it's too complex for this
<jordan-> plus im trying to learn this stuff, i just want to know if i got the grammar right
<Smerdyakov> I find your notation too hard to read.
<Smerdyakov> How nice of you to overload | with semantically significant spacing to distinguish cases. :P
<jordan-> sorry, didn't know any other way to distinguish it
<Smerdyakov> Well, I have no idea how to determine if this grammar is correct. Sorry.
<jordan-> the grammar that i know is correct is just R -> R|R | R* | RR | \Epsilon | c but determining whether the two are the same is hard
<jordan-> thanks for trying though
<Smerdyakov> You should just use ocamlyacc.
<jordan-> it looks hard to use
<Smerdyakov> No, it's trivial.
<jordan-> is it possible for it to disambiguate some grammars?
<Smerdyakov> It makes arbitrary choices in cases of conflicts.
danly has quit ["Ex-Chat"]
Skal has joined #ocaml
jordan- has quit ["Leaving"]
MisterC has joined #ocaml
Smerdyakov has quit ["Leaving"]
Skal has quit [Connection timed out]
ikaros has quit [Read error: 60 (Operation timed out)]
ikaros has joined #ocaml
sponge45 has joined #ocaml
ramkrsna has quit [Remote closed the connection]
ramkrsna has joined #ocaml
sponge45 has quit ["zzzzzzzzzz"]
_velco has joined #ocaml
Ballin_05 has quit []
_velco is now known as velco
love-pingoo has joined #ocaml
velco is now known as _velco
mbishop has joined #ocaml
smimou has joined #ocaml
pango_ has quit [Remote closed the connection]
pango has joined #ocaml
beschmi has quit [Read error: 54 (Connection reset by peer)]
mnemonic has joined #ocaml
<mnemonic> hi
love-pingoo has quit ["Connection reset by pear"]
ikaros has quit [Read error: 60 (Operation timed out)]
ikaros has joined #ocaml
smimou has quit ["bli"]
mnemonic has quit ["leaving"]
velco has joined #ocaml
love-pingoo has joined #ocaml
slipstream-- has joined #ocaml
velco has quit ["Ex-Chat"]
_fab has joined #ocaml
slipstream has quit [Read error: 110 (Connection timed out)]
<flux__> did someone have a freely usable irc-module for ocaml around?
<flux__> apparently not, or not atleast anything caml humps knows
velco has joined #ocaml
batdog|gone is now known as batdog
ikaros has quit [Read error: 104 (Connection reset by peer)]
ikaros has joined #ocaml
batdog is now known as batdog|gone
jajs has joined #ocaml
bluestorm has joined #ocaml
mnemonic has joined #ocaml
<mnemonic> hi
<bluestorm> hi
mikeX has joined #ocaml
telim has joined #ocaml
<telim> hello
<telim> i've got a problem
<telim> when i do a matching pattern in a imperative instructions list, the program stop runing after the match
<telim> does somebody know how to use "match with" in a list of instructions without stop on it ?
<flux__> I don't understand the problem
<flux__> maybe a simplified, annotated source code could explain it better
<telim> sure
<flux__> although I'm just on the verge of leaving, but someone else might find the problem..
<pango> I suppose the problem is that "what's after match" is really part of the last condition... put parens around the whole match
<telim> exact pango
<telim> but when i do like this (match... ->..), i've got "This expression is not a function, it cannot be applied"
Smerdyakov has joined #ocaml
<telim> ah.. sorry, i've miss a ";"
<telim> thanks a lot
<telim> setog3 says he loves you
<setog3> yes thx pango
Leonidas has joined #ocaml
mnemonic has quit ["leaving"]
<pango> hehe
setog3 has quit [Connection timed out]
love-pingoo has quit ["Leaving"]
mikeX has quit ["leaving"]
velco has quit ["Ex-Chat"]
bluestorm has quit ["Konversation terminated!"]
telim has quit [Remote closed the connection]
_velco has quit ["I'm outta here ..."]
smimou has joined #ocaml
danly has joined #ocaml
love-pingoo has joined #ocaml
univac has joined #ocaml
pango has quit ["Leaving"]
pango has joined #ocaml
jajs has quit [Read error: 104 (Connection reset by peer)]
beschmi has joined #ocaml
shawn__ has joined #ocaml
bluestorm has joined #ocaml
shawn__ is now known as shawn
dark_light has quit [Operation timed out]
Leonidas has quit ["An ideal world is left as an exercise to the reader"]
shawn has quit ["Leaving"]
shawn has joined #ocaml
rillig has joined #ocaml
dark_light has joined #ocaml
_fab has quit [Read error: 110 (Connection timed out)]
_fab has joined #ocaml
MisterC has quit [Read error: 54 (Connection reset by peer)]
bluestorm has quit ["Konversation terminated!"]