I played with the toplevel a bit, but was frustrated by the limitation of one-liner input. Even in an interactive toplevel it is nice, I think, to be able to write multiline programs. The simple solution is to make ";;" mandatory, which clearly delimits the end of user input (instead of considering all 'enter' as end of input). The tryocaml toplevel is however very lenient regarding use of ";;", and I suppose this is a deliberate design choice. I have implemented an heuristic to allow multiline input, based on a past discussion with Nicolas Pouillard about, if I remember correctly, Scala's toplevel behavior. The idea is to accumulate lines of input until the parser either succeeds, or there is a syntax error; when it just consumes all the line without producing a result, we wait for more input. Patch attached. On Fri, Dec 23, 2011 at 7:49 PM, Çagdas Bozman wrote: >> The only "real" thing that it's missing is a way to reset the toplevel >> without reloading the page. It's the same problem as with the real >> toplevel now that I think about it, but I didn't think of reloading the >> page directly! >> > > You can clear the editor view by using the command "clear()". > > -- > Çagdas Bozman