Skip to content

Commit

Permalink
begin bytecode generator
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrsh committed Apr 7, 2019
1 parent 254411b commit cde0298
Show file tree
Hide file tree
Showing 11 changed files with 436 additions and 532 deletions.
462 changes: 207 additions & 255 deletions packages/moon/dist/moon.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/moon/dist/moon.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/moon/src/compiler/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import { parse } from "./parser/parser";
import { generate } from "./generator/generator";

export function compile(input) {
return parse(lex(input));
return generate(parse(lex(input)));
}
3 changes: 3 additions & 0 deletions packages/moon/src/compiler/executor.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export function execute() {

}
Loading

0 comments on commit cde0298

Please sign in to comment.