Website

Check-in [67883e15d4]
Login
Overview
Comment:Update compiler to 0.2.1
Timelines: family | ancestors | trunk
Files: files | file ages | folders
SHA3-256: 67883e15d4ad4bafc411bb592efc026c35c70bb77a206330f1df978c71489b2a
User & Date: robin.hansen on 2021-08-06 15:47:36
Other Links: manifest | tags
Context
2021-08-06
15:47
Update compiler to 0.2.1 Leaf check-in: 67883e15d4 user: robin.hansen tags: trunk
2021-06-18
16:21
Fix typos. Closes [70dd4f93a5]. check-in: 9aae32c838 user: robin.hansen tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Modified src/compiler.js from [8d8d890c5a] to [a443677be9].

more than 10,000 changes

Modified src/index.html from [c900fc8222] to [1fdd0beb9d].

11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
    </head>
    <body>
        <header>
            <div id="header-content">
                <nav>
                    <h1>
                        <span class="big">Stabel</span>
                        <span class="small">v0.2.0-alpha</span>
                    </h1>

                    <ul>
                        <li><a title="Get caught up on the latest news" href="https://fossils.stabel-lang.org/compiler/timeline?udc=1&ss=m&n=10&y=e&advm=0">News</a></li>
                        <li><a title="Join the discussion" href="/community.html">Community</a></li>
                        <li><a title="Access the source code" href="https://fossils.stabel-lang.org">Source</a></li>
                    </ul>







|







11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
    </head>
    <body>
        <header>
            <div id="header-content">
                <nav>
                    <h1>
                        <span class="big">Stabel</span>
                        <span class="small">v0.2.1-alpha</span>
                    </h1>

                    <ul>
                        <li><a title="Get caught up on the latest news" href="https://fossils.stabel-lang.org/compiler/timeline?udc=1&ss=m&n=10&y=e&advm=0">News</a></li>
                        <li><a title="Join the discussion" href="/community.html">Community</a></li>
                        <li><a title="Access the source code" href="https://fossils.stabel-lang.org">Source</a></li>
                    </ul>

Modified src/playground.js from [1b17755969] to [b643e4eb6c].

19
20
21
22
23
24
25
26






27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
            console.log(err);
            return app.ports.compilationResult.send(err);
        });
});

function compileToWat(source) {
    return new Promise((resolve, reject) => {
        const compiler = Compiler.Elm.TestCompiler.init({});







        compiler.ports.compileFinished.subscribe(([ok, output]) => {
            if (ok) {
                resolve(output);
            } else {
                reject(output);
            }
        });

        compiler.ports.compileString.send(['main', source]);
    });
}

async function execute(wat) {
    const wabt = await wabtInit();
    const wasmModule = wabt.parseWat('tmp', wat).toBinary({}).buffer;








|
>
>
>
>
>
>








<
<







19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40


41
42
43
44
45
46
47
            console.log(err);
            return app.ports.compilationResult.send(err);
        });
});

function compileToWat(source) {
    return new Promise((resolve, reject) => {
        const compiler = Compiler.Elm.TestCompiler.init({
            flags: {
                __type: 'CompileString',
                entryPoint: 'main',
                sourceCode: source
            }
        });

        compiler.ports.compileFinished.subscribe(([ok, output]) => {
            if (ok) {
                resolve(output);
            } else {
                reject(output);
            }
        });


    });
}

async function execute(wat) {
    const wabt = await wabtInit();
    const wasmModule = wabt.parseWat('tmp', wat).toBinary({}).buffer;