Fix parsing
This commit is contained in:
@@ -9,18 +9,17 @@
|
||||
<div id="elm-container">
|
||||
</div>
|
||||
<script>
|
||||
var program = `
|
||||
move(0, 0);
|
||||
var program = `move(0, 0);
|
||||
define line(x1, y1, x2, y2) {
|
||||
pen up;
|
||||
move(x1, y1);
|
||||
pen down;
|
||||
move(x2, y2);
|
||||
};
|
||||
}
|
||||
define nix(x, y, width, height) {
|
||||
call line (x, y, x + width, y + height);
|
||||
call line (x + width, y, x, y + height);
|
||||
};
|
||||
}
|
||||
call nix(0, 0, 20, 20);
|
||||
`
|
||||
var container = document.getElementById("elm-container");
|
||||
|
||||
Reference in New Issue
Block a user