Skip to content

Commit

Permalink
v1.0.6 now compiles
Browse files Browse the repository at this point in the history
  • Loading branch information
alvisespano committed Sep 20, 2018
1 parent c898531 commit 594d7e0
Show file tree
Hide file tree
Showing 4 changed files with 92 additions and 107 deletions.
27 changes: 7 additions & 20 deletions src/.depend
Original file line number Diff line number Diff line change
@@ -1,27 +1,14 @@
prelude.cmo :
prelude.cmx :
err.cmo :
err.cmx :
absyn.cmo : prelude.cmx err.cmx
absyn.cmx : prelude.cmx err.cmx
env.cmo : prelude.cmx absyn.cmx
env.cmx : prelude.cmx absyn.cmx
check.cmo : prelude.cmx err.cmx env.cmx absyn.cmx
check.cmx : prelude.cmx err.cmx env.cmx absyn.cmx
pre.cmo : prelude.cmx env.cmx absyn.cmx
pre.cmx : prelude.cmx env.cmx absyn.cmx
gen.cmo : prelude.cmx err.cmx env.cmx absyn.cmx
gen.cmx : prelude.cmx err.cmx env.cmx absyn.cmx
fake.cmo : absyn.cmx
env.cmx : prelude.cmx absyn.cmx
err.cmx :
fake.cmx : absyn.cmx
parser.cmo : prelude.cmx fake.cmx err.cmx absyn.cmx parser.cmi
parser.cmx : prelude.cmx fake.cmx err.cmx absyn.cmx parser.cmi
lexer.cmo : parser.cmi err.cmx
lexer.cmx : parser.cmx err.cmx
io.cmo : prelude.cmx parser.cmi lexer.cmx fake.cmx err.cmx absyn.cmx
gen.cmx : prelude.cmx err.cmx env.cmx absyn.cmx
io.cmx : prelude.cmx parser.cmx lexer.cmx fake.cmx err.cmx absyn.cmx
main.cmo : prelude.cmx pre.cmx parser.cmi lexer.cmx io.cmx gen.cmx err.cmx \
check.cmx absyn.cmx
lexer.cmx : parser.cmx err.cmx
main.cmx : prelude.cmx pre.cmx parser.cmx lexer.cmx io.cmx gen.cmx err.cmx \
check.cmx absyn.cmx
parser.cmx : prelude.cmx fake.cmx err.cmx absyn.cmx parser.cmi
parser.cmi : absyn.cmx
pre.cmx : prelude.cmx env.cmx absyn.cmx
prelude.cmx :
2 changes: 1 addition & 1 deletion src/check.ml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ module Check =

let of_labels labels = List.fold_left (fun lbs lb -> add (lb, None) lbs) empty labels
let occurs lb lbs = mem (lb, None) lbs
let pretty lbs = "{ " ^ (flatten_strings ", " (map fst (elements lbs))) ^ " }"
let pretty lbs = "{ " ^ (flatten_strings ", " (List.map fst (elements lbs))) ^ " }"
end


Expand Down
34 changes: 17 additions & 17 deletions src/lexer.ml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ open Parser

# 7 "lexer.ml"
let __ocaml_lex_tables = {
Lexing.lex_base =
Lexing.lex_base =
"\000\000\246\255\247\255\093\000\255\255\080\000\249\255\250\255\
\251\255\252\255\253\255\254\255\103\000\248\255\152\000\252\255\
\000\000\253\255\096\000\098\000\255\255\254\255\192\000\220\255\
Expand All @@ -15,7 +15,7 @@ let __ocaml_lex_tables = {
\252\255\001\000\253\255\124\000\255\255\254\255\245\255\107\000\
\246\255\242\255\240\255\198\002\230\255\026\003\110\003\194\003\
\022\004\106\004\190\004";
Lexing.lex_backtrk =
Lexing.lex_backtrk =
"\255\255\255\255\255\255\009\000\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\003\000\255\255\003\000\003\000\255\255\255\255\255\255\255\255\
Expand All @@ -25,7 +25,7 @@ let __ocaml_lex_tables = {
\255\255\035\000\255\255\005\000\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\033\000\255\255\031\000\031\000\031\000\
\031\000\028\000\029\000";
Lexing.lex_default =
Lexing.lex_default =
"\001\000\000\000\000\000\255\255\000\000\255\255\000\000\000\000\
\000\000\000\000\000\000\000\000\255\255\000\000\015\000\000\000\
\255\255\000\000\255\255\255\255\000\000\000\000\023\000\000\000\
Expand All @@ -35,7 +35,7 @@ let __ocaml_lex_tables = {
\000\000\255\255\000\000\255\255\000\000\000\000\000\000\255\255\
\000\000\000\000\000\000\255\255\000\000\255\255\255\255\255\255\
\255\255\255\255\255\255";
Lexing.lex_trans =
Lexing.lex_trans =
"\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\017\000\050\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
Expand Down Expand Up @@ -220,7 +220,7 @@ let __ocaml_lex_tables = {
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000";
Lexing.lex_check =
Lexing.lex_check =
"\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\016\000\049\000\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
Expand Down Expand Up @@ -405,22 +405,22 @@ let __ocaml_lex_tables = {
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255";
Lexing.lex_base_code =
Lexing.lex_base_code =
"";
Lexing.lex_backtrk_code =
Lexing.lex_backtrk_code =
"";
Lexing.lex_default_code =
Lexing.lex_default_code =
"";
Lexing.lex_trans_code =
Lexing.lex_trans_code =
"";
Lexing.lex_check_code =
Lexing.lex_check_code =
"";
Lexing.lex_code =
Lexing.lex_code =
"";
}

let rec quote lexbuf =
__ocaml_lex_quote_rec lexbuf 0
__ocaml_lex_quote_rec lexbuf 0
and __ocaml_lex_quote_rec lexbuf __ocaml_lex_state =
match Lexing.engine __ocaml_lex_tables __ocaml_lex_state lexbuf with
| 0 ->
Expand Down Expand Up @@ -476,11 +476,11 @@ and __ocaml_lex_quote_rec lexbuf __ocaml_lex_state =
( raise (Failure ("illegal character '" ^ (String.escaped (Lexing.lexeme lexbuf)) ^ "' within quote")) )
# 478 "lexer.ml"

| __ocaml_lex_state -> lexbuf.Lexing.refill_buff lexbuf;
| __ocaml_lex_state -> lexbuf.Lexing.refill_buff lexbuf;
__ocaml_lex_quote_rec lexbuf __ocaml_lex_state

and comment lexbuf =
__ocaml_lex_comment_rec lexbuf 14
__ocaml_lex_comment_rec lexbuf 14
and __ocaml_lex_comment_rec lexbuf __ocaml_lex_state =
match Lexing.engine __ocaml_lex_tables __ocaml_lex_state lexbuf with
| 0 ->
Expand All @@ -503,11 +503,11 @@ and __ocaml_lex_comment_rec lexbuf __ocaml_lex_state =
( comment lexbuf )
# 505 "lexer.ml"

| __ocaml_lex_state -> lexbuf.Lexing.refill_buff lexbuf;
| __ocaml_lex_state -> lexbuf.Lexing.refill_buff lexbuf;
__ocaml_lex_comment_rec lexbuf __ocaml_lex_state

and token lexbuf =
__ocaml_lex_token_rec lexbuf 22
__ocaml_lex_token_rec lexbuf 22
and __ocaml_lex_token_rec lexbuf __ocaml_lex_state =
match Lexing.engine __ocaml_lex_tables __ocaml_lex_state lexbuf with
| 0 ->
Expand Down Expand Up @@ -691,7 +691,7 @@ and __ocaml_lex_token_rec lexbuf __ocaml_lex_state =
( raise (Failure ("illegal character '" ^ (String.escaped (Lexing.lexeme lexbuf)) ^ "'")) )
# 693 "lexer.ml"

| __ocaml_lex_state -> lexbuf.Lexing.refill_buff lexbuf;
| __ocaml_lex_state -> lexbuf.Lexing.refill_buff lexbuf;
__ocaml_lex_token_rec lexbuf __ocaml_lex_state

;;
Expand Down
Loading

0 comments on commit 594d7e0

Please sign in to comment.