Skip to content
This repository
Newer
Older
100644 41 lines (36 sloc) 1.302 kb
0fb60dfa » JOHAN GUSTAFSSON
2010-02-23 Started to generate the ast.ghci
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2 "http://www.w3.org/TR/html4/strict.dtd">
3 <html>
4 <head>
5 <meta http-equiv="Content-type" content="text/html;charset=UTF-8">
6 <title>Haskelltolk i Javascript</title>
7 <script src="lib/jsparse.js" type="text/javascript"></script>
8 <script src="haskell.js" type="text/javascript"></script>
3f1db97d » Mikael Bung
2010-03-11 Extracted the new ast from the interpreter and renamed ast file
9 <script src="haskell.ast.js" type="text/javascript"></script>
0fb60dfa » JOHAN GUSTAFSSON
2010-02-23 Started to generate the ast.ghci
10 <script src="haskell.parser.js" type="text/javascript"></script>
11 <script src="haskell.interpreter.js" type="text/javascript"></script>
d1ea2ec6 »
2010-03-02 Better exp chaining.
12 <script src="http://code.jquery.com/jquery-latest.js" type="text/javascript"></script>
0fb60dfa » JOHAN GUSTAFSSON
2010-02-23 Started to generate the ast.ghci
13 <script type="text/javascript">
d1ea2ec6 »
2010-03-02 Better exp chaining.
14 $(document).ready(function() {
0fb60dfa » JOHAN GUSTAFSSON
2010-02-23 Started to generate the ast.ghci
15 var test1 = "module Test (asd,ysd) where { import Test }";
16 var test2 = "import Test";
17 var test3 = <><![CDATA[
18 module Test where {
0933f998 » Johan Gustafsson
2010-03-13 Test suite
19 cons x y = \f -> f x y;
20 car f = f (\x y -> x);
21 cdr f = f (\x y -> y);
22
23 main = alert (car (cons 1 2))
0fb60dfa » JOHAN GUSTAFSSON
2010-02-23 Started to generate the ast.ghci
24 }
25 ]]></>.toString()
26
93d681e9 » Mikael Bung
2010-03-11 Merge of master
27
d1ea2ec6 »
2010-03-02 Better exp chaining.
28 var test4 = "1 * 3 + 2 * (4 + 1)";
453715df » Mikael Bung
2010-03-03 Beta primitive functions
29
0933f998 » Johan Gustafsson
2010-03-13 Test suite
30 var res = haskell.parser.parse(test3).ast;
31 var res2 = haskell.interpreter.execute(res);
93d681e9 » Mikael Bung
2010-03-11 Merge of master
32
0933f998 » Johan Gustafsson
2010-03-13 Test suite
33 console.log("%o", res2);
34 $("#output").text(res2);
2ab9b1b4 » Mikael Bung
2010-03-03 WIP
35 });
0fb60dfa » JOHAN GUSTAFSSON
2010-02-23 Started to generate the ast.ghci
36 </script>
37 </head>
38 <body>
d1ea2ec6 »
2010-03-02 Better exp chaining.
39 <div id="output">This is a test page</div>
0fb60dfa » JOHAN GUSTAFSSON
2010-02-23 Started to generate the ast.ghci
40 </body>
41 </html>
42
Something went wrong with that request. Please try again.