Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Ocamllex/Ocamlyacc feature request
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Lukasz Lew <ll189417@z...>
Subject: [Caml-list] Syntax error

I am using Genlex and ocaml streams and parsers. And when I catch 
exception Stream.Error "", I can not generate other message than "syntax error".

How can I obtain informations about line number or character number, 
where the error ocurred ?

In ocaml examples at, function 
pos_in is used, but it returns always number of last character in stream.

Do you have any ideas?
And how ocamlyacc deals with this problem?

Lukasz Lew

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: