Skip to content

Commit

Permalink
feat(compiler): Convert runtime/dataStructures.gr to primitives (#1145
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ospencer committed Mar 6, 2022
1 parent 49650ac commit 2d43b28
Show file tree
Hide file tree
Showing 38 changed files with 1,370 additions and 641 deletions.
1 change: 1 addition & 0 deletions compiler/grainformat/debug.re
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ let debug_expression = (expr: Parsetree.expression) => {
print_loc("PExpRecordSet", expr.pexp_loc)
| PExpMatch(expression, match_branches) =>
print_loc("PExpMatch", expr.pexp_loc)
| PExpPrim0(prim0) => print_loc("PExpPrim0", expr.pexp_loc)
| PExpPrim1(prim1, expression) => print_loc("PExpPrim1", expr.pexp_loc)
| PExpPrim2(prim2, expression, expression1) =>
print_loc("PExpPrim2", expr.pexp_loc)
Expand Down
3 changes: 3 additions & 0 deletions compiler/grainformat/format.re
Original file line number Diff line number Diff line change
Expand Up @@ -2565,6 +2565,9 @@ and print_expression =
]),
);

| PExpPrim0(prim0) =>
let original_code = get_original_code(expr.pexp_loc, original_source);
Doc.text(original_code);
| PExpPrim1(prim1, expression) =>
let original_code = get_original_code(expr.pexp_loc, original_source);
Doc.text(original_code);
Expand Down
Loading

0 comments on commit 2d43b28

Please sign in to comment.