Skip to content

Commit

Permalink
changed
Browse files Browse the repository at this point in the history
  • Loading branch information
hsk committed Feb 11, 2015
1 parent e2a3677 commit 7de4f1d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,10 @@ $ make do_test
3. [parser.ml](src2/parser.ml) パーサ
4. [to_if.ml](src/to_if.ml) match if 変換
5. [alpha.ml](src3/alpha.ml) α変換
6. [javascript.ml](src3/javascript.ml) javascript変換
7. [emit.ml](src3/emit.ml) JavaScript出力
8. [main.ml](src2/main.ml) メイン
6. [inline.ml](src3/inline.ml) インライン展開
8. [javascript.ml](src3/javascript.ml) javascript変換
9. [emit.ml](src3/emit.ml) JavaScript出力
10. [main.ml](src2/main.ml) メイン

## TODO

Expand Down
2 changes: 1 addition & 1 deletion src3/inline.ml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ let inline env (zs,e) (ys:e list) =

Alpha.g zs e

let rec g (env:(string * (string list * e)) list ) = function
let rec g env = function
| Match (_, _) | Tuple _| Array (_, _)| CApp (_, _) -> assert false
| Int(i) -> Int(i)
| Float(i) -> Float(i)
Expand Down
2 changes: 1 addition & 1 deletion test/ref.ml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ print_newline();
let rec f a1 =
a := 1000;
a1
in print_int(f !a);
in print_int(-f !a);
print_newline()

0 comments on commit 7de4f1d

Please sign in to comment.