Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ospencer committed Jul 11, 2020
0 parents commit 9cd7e04
Show file tree
Hide file tree
Showing 50 changed files with 33,426 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
1 change: 1 addition & 0 deletions another.gr
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export let anotherHello = "Hello from another file!"
4 changes: 4 additions & 0 deletions hello.gr
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import {anotherHello} from './another'

print('Hello, world!')
print(anotherHello)
10 changes: 10 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<html>
<head>
<script src="js/grain-runtime-browser.js"></script>
<script>
let locator = Grain.defaultURLLocator([window.location.href, window.location.href + 'stdlib']);
let GrainRunner = Grain.buildGrainRunner(locator);
GrainRunner.runURL('hello.wasm');
</script>
</head>
</html>
Loading

0 comments on commit 9cd7e04

Please sign in to comment.