<Axioplase>
When parsing a lexed stream, what can cause a Fatal error: exception Parsing.Parse_error ?
<vodka-goo>
a parse error ;)
<vodka-goo>
your input is not part of your grammar
<Axioplase>
hum.. Is it not?
<Axioplase>
you mean, there's a case not in my lexer? or something I forgot to parse in my parser ?
<vodka-goo>
the problem is with your parser
KrispyKringle is now known as KristopherKringl
<Axioplase>
by the way, my teacher found out from my last problem. I should have written "type <BfTree.bfTree> seq" instead of "type <bfTree> seq" ...
smimou has quit ["bli"]
kryptt has quit [Remote closed the connection]
<Axioplase>
vodka-goo: I don't get it.. the code I parse contains only valid tokens. The lexer reads them all and sends the lexems. The parser matches all cases...
kryptt has joined #ocaml
mkhl has joined #ocaml
Smerdyakov has joined #ocaml
<Axioplase>
vodka-goo: would you mind looking at my lexer and parser ?
<Axioplase>
(under 50 lines in total)
<vodka-goo>
j'ai pas tant de temps que ça, il me faudrait compiler le truc et le lancer sur l'exemple qui chie
<vodka-goo>
en fait il faudrait que tu implementes les messages d'erreurs "informatifs"
<vodka-goo>
qd tu pécho une exception tu affiches aussi la position actuelle du lexer, ça aide en générale
<vodka-goo>
je fais pas des parser/lexer tous les jours non plus, comme toi je pompe des exemples a chaque fois ;)
<Axioplase>
ha :)
<Axioplase>
ben, c'est ligne 1, vu que le prog fait une seule ligne.. (et chaque instruction fait 1 caractère)...
<Axioplase>
jvai voir si je peux passer le caractere en cours ou.
<vodka-goo>
tu peux avoir la position
<vodka-goo>
c dans le lexbuf
<Axioplase>
mais la fonction parse_error définie en fin de fichier .mly n'est pas appeée.. ca m'étonne un peu..
<vodka-goo>
ah ? je savais pas qu'il foutait un truc comme ça là
<vodka-goo>
typiquement tu interceptes l'exception dans le fichier d'où tu appelles le parser+lexer, et tu affiches position+exn
<vodka-goo>
Printexc est ton ami
<Axioplase>
ouais..
malc_ has quit ["leaving"]
<Axioplase>
bon, l'erreur se trouve dans le traitement des boucles.. ca avance, ca avance..
<vodka-goo>
bien joué
<vodka-goo>
figure toi que je galère sur la création d'un interpréteur aussi là
<vodka-goo>
le pb c qu'il est au coeur d'un gros systeme, j'ai peur de la propagation des modifs
<vodka-goo>
pis je peux plus tout faire dans le parseur comme avant vu que j'ajoute de l'inférence de type
<vodka-goo>
j'avance à 2 à l'h
pango_ has joined #ocaml
<Axioplase>
je crois meme que j'aipigé l'erreur.. LPAR expr RPAR expr ... le probleme est que toute expression est une paire. et j'ai rien pour finir la paire dans la derniere expression de la boucle (la seule "non paire" que j'ai c'est EOF...)
KristopherKringl is now known as KrispyKringle
<vodka-goo>
faut que EOF soit une expr
pango has quit [Read error: 60 (Operation timed out)]
<Axioplase>
non, le probleme est pas là..
<Axioplase>
chaque instruction est une sequence. donc un paire (instruction, instruction_suivante)
Snark has joined #ocaml
<Axioplase>
et que dans le cas d'une boucle, la derniere instruction n'a pas de suivante. donc ca plante. je reflechis à comment gérer ca... (j'arrive déjà à faire la boucle vide...)
<vodka-goo>
ah, tu peux autoriser la suite vite de tokens comme une instruction.. ms apres faut gérer les conflits
<Axioplase>
hum... ca pourrait le faire, si je trouve comment.
Submarine has quit ["Leaving"]
_JusSx_ has quit ["leaving"]
Snark has quit ["Leaving"]
Smerdyakov has quit ["Leaving"]
Snark has joined #ocaml
Axioplase has quit ["leaving"]
kmag has left #ocaml []
ramkrsna has quit ["Leaving"]
kryptt has left #ocaml []
monochrom has quit ["good morning, sweet dream"]
tristram has quit [Remote closed the connection]
tristram has joined #ocaml
ramkrsna has joined #ocaml
noj has quit [niven.freenode.net irc.freenode.net]
pango_ has quit [niven.freenode.net irc.freenode.net]
Raziel has quit [niven.freenode.net irc.freenode.net]
tristram has quit [niven.freenode.net irc.freenode.net]
ramkrsna has quit [niven.freenode.net irc.freenode.net]
Snark has quit [niven.freenode.net irc.freenode.net]
flux__ has quit [niven.freenode.net irc.freenode.net]
juri has quit [niven.freenode.net irc.freenode.net]
vodka-goo has quit [niven.freenode.net irc.freenode.net]
pattern has quit [niven.freenode.net irc.freenode.net]
det has quit [niven.freenode.net irc.freenode.net]
skylan has quit [niven.freenode.net irc.freenode.net]
simon has quit [niven.freenode.net irc.freenode.net]
lispy has quit [niven.freenode.net irc.freenode.net]
KrispyKringle has quit [niven.freenode.net irc.freenode.net]
TaXules has quit [niven.freenode.net irc.freenode.net]
Hadaka has quit [niven.freenode.net irc.freenode.net]
Oatmeat|umn has quit [niven.freenode.net irc.freenode.net]
ulfdoz has quit [niven.freenode.net irc.freenode.net]
mkhl has quit [niven.freenode.net irc.freenode.net]
mellum has quit [niven.freenode.net irc.freenode.net]
quamaretto has quit [niven.freenode.net irc.freenode.net]
vincenz has quit [niven.freenode.net irc.freenode.net]
Bigb[a]ng has quit [niven.freenode.net irc.freenode.net]
rossberg has quit [niven.freenode.net irc.freenode.net]
shawn_ has quit [niven.freenode.net irc.freenode.net]
Amorphous has quit [niven.freenode.net irc.freenode.net]
revision17_ has quit [niven.freenode.net irc.freenode.net]
cmeme has quit [niven.freenode.net irc.freenode.net]
samx has quit [niven.freenode.net irc.freenode.net]
batdog has quit [niven.freenode.net irc.freenode.net]
tom_p has quit [niven.freenode.net irc.freenode.net]
descender has quit [niven.freenode.net irc.freenode.net]
knobo has quit [niven.freenode.net irc.freenode.net]
mattam has quit [niven.freenode.net irc.freenode.net]
geckosen1tor has quit [niven.freenode.net irc.freenode.net]
dylan has quit [niven.freenode.net irc.freenode.net]
erik has quit [niven.freenode.net irc.freenode.net]
dvekravy has quit [niven.freenode.net irc.freenode.net]
noj has joined #ocaml
clog has joined #ocaml
Bigb[a]ng has joined #ocaml
shawn_ has joined #ocaml
tom_p has joined #ocaml
det has joined #ocaml
mattam has joined #ocaml
CLxyz has joined #ocaml
quamaretto has joined #ocaml
cmeme has joined #ocaml
Revision17 has joined #ocaml
dvekravy has joined #ocaml
simon has joined #ocaml
dylan has joined #ocaml
skylan has joined #ocaml
erik has joined #ocaml
Naked has joined #ocaml
TaXules has joined #ocaml
Naked is now known as Hadaka
knobo has joined #ocaml
KrispyKringle has joined #ocaml
lispy has joined #ocaml
Revision17 has quit ["Leaving"]
Mitar has joined #ocaml
Mitar has left #ocaml []
vodka-goo has quit [niven.freenode.net irc.freenode.net]
pattern has quit [niven.freenode.net irc.freenode.net]
vodka-goo has joined #ocaml
pattern has joined #ocaml
flux__ has quit [niven.freenode.net irc.freenode.net]
juri has quit [niven.freenode.net irc.freenode.net]
flux__ has joined #ocaml
juri has joined #ocaml
ramkrsna has quit [Read error: 60 (Operation timed out)]
ramkrsna has joined #ocaml
_fab has joined #ocaml
pango_ has quit [Remote closed the connection]
pango has joined #ocaml
Submarine has joined #ocaml
Skal has joined #ocaml
ramkrsna_ has joined #ocaml
ramkrsna has quit [Success]
Skal has quit ["Client exiting"]
Submarine has quit [Read error: 104 (Connection reset by peer)]
Revision17 has joined #ocaml
mauke has joined #ocaml
ramkrsna_ is now known as ram|
malc_ has joined #ocaml
ski has joined #ocaml
ram| is now known as ramkrsna
haelix has joined #ocaml
bluestorm has joined #ocaml
haelix has left #ocaml []
Elentar has joined #ocaml
gim has joined #ocaml
bluestorm is now known as bluesleep
bluesleep is now known as blueeat
blueeat is now known as bluesleep
bluesleep is now known as bluedodo
bluedodo is now known as blueaway
blueaway is now known as bluepala
gim has quit ["Bonnes fêtes"]
bluepala is now known as bluestorm
Elentar has quit [Connection timed out]
smimou has joined #ocaml
bluestorm has quit ["Leaving"]
ulfdoz has quit [niven.freenode.net irc.freenode.net]
ulfdoz has joined #ocaml
mikeX has joined #ocaml
tristram has quit [Remote closed the connection]
ramkrsna is now known as rK|away
bluestorm has joined #ocaml
mkhl has joined #ocaml
ThomasV has joined #ocaml
ThomasV has left #ocaml []
vodka-goo has quit ["Connection reset by by pear"]
ski has quit ["NMI"]
ski has joined #ocaml
quamaretto has quit [Nick collision from services.]
HotNoodleOfInqui has joined #ocaml
mikeX has quit ["leaving"]
Bigb[a]ng is now known as Bigbang
Demitar has joined #ocaml
khermans has joined #ocaml
<khermans>
Hi
<khermans>
I am having issue with compileing ocaml
<khermans>
during a .configur on version 3.09.0
Smerdyakov has joined #ocaml
<khermans>
-- > ggc found
<khermans>
--> unable to comple the test program
<khermans>
Configuring for a powerpc64-unknown-linux-gnu ...
<khermans>
is powerpc64 supported for OCAML?
<khermans>
Is anyone alive in here?
<Smerdyakov>
I don't know anything about PowerPC, but I know you can find a list of supported platforms on the OCaml web site.
<khermans>
i didnt see any there
<khermans>
Smerdyakov, do you have a link?
<Smerdyakov>
I know I've seen it in a FAQ. I'll look.