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
Right recursion with ocamlyacc
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-02-16 (03:58)
From: Markus Mottl <markus.mottl@g...>
Subject: Re: [Caml-list] Right recursion with ocamlyacc
On Wed, 16 Feb 2005, Jon Harrop wrote:
> I've just been converting a new Computer Language Shootout submission from 
> OCaml to C++ and found that bison falls over very easily with right recursion 
> (failing to load a 10^4-element list) but ocamlyacc had no problems (even on 
> a 10^5-element list).

Why use right recursive productions in the grammar?  Left recursion runs
in constant stack space so this would be the way to go...


Markus Mottl