jseden / IsitAsi toby.dcs.warwick.ac.uk include("models/parsing/..."); func substr { ${{ var src = arguments[0]; var firstix = arguments[1]; var lastix = arguments[2]; console.log(firstix); console.log(lastix); return src.substr(firstix-1, lastix-firstix+1); }}$; } Modifications 1) replaced !=[] by #>0 2) used getlscomp 3) introduces substr() 4) emile is flawed as far as undefined length is concerned - causes bad probs as far as the order of definitions is concerned 5) emile/test.html works but emile-dev/test.html doesn't (so hui/test.html doesn't work) ${{ var g = new Graph(); g.addEdge('strawberry', 'cherry'); g.addEdge('strawberry', 'apple'); g.addEdge('strawberry', 'tomato'); g.addEdge('tomato', 'apple'); g.addEdge('tomato', 'kiwi'); g.addEdge('cherry', 'apple'); g.addEdge('cherry', 'kiwi'); var layouter = new Graph.Layout.Spring(g); layouter.layout(); var renderer = new Graph.Renderer.Raphael('eden-content', g, 400, 300); renderer.draw(); }}$; func Graph{ ${{ var h = arguments[0]; }}$