This repository was archived by the owner on Jun 15, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 9 files changed +30
-257
lines changed Expand file tree Collapse file tree 9 files changed +30
-257
lines changed Original file line number Diff line number Diff line change @@ -70,9 +70,6 @@ src/res_scanner.cmx : src/res_token.cmx src/res_diagnostics.cmx \
70
70
src/res_comment.cmx src/res_scanner.cmi
71
71
src/res_scanner.cmi : src/res_token.cmx src/res_diagnostics.cmi
72
72
src/res_token.cmx : src/res_comment.cmx
73
- tests/napkin_test.cmx : src/res_token.cmx src/res_parser.cmx \
74
- src/res_outcome_printer.cmx src/res_multi_printer.cmx src/res_io.cmx \
75
- src/res_driver.cmx tests/res_diff.cmx
76
73
tests/res_diff.cmx : tests/res_diff.cmi
77
74
tests/res_diff.cmi :
78
75
tests/res_test.cmx : src/res_token.cmx src/res_parser.cmx \
Original file line number Diff line number Diff line change 1
1
.DS_STORE
2
- _build
3
2
node_modules
4
3
* .cm *
5
4
* .o
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
(* The purpose of this module is to convert a parsetree coming from the reason
2
- * or ocaml parser, into something consumable by the napkinscript printer. *)
2
+ * or ocaml parser, into something consumable by the rescript printer. *)
3
3
4
4
(* Ocaml/Reason parser interprets string literals: i.e. escape sequences and unicode.
5
5
* For printing purposes you want to preserve the original string.
@@ -19,6 +19,6 @@ val normalizeReasonAritySignature:
19
19
forPrinter :bool -> Parsetree .signature -> Parsetree .signature
20
20
21
21
(* transform parts of the parsetree into a suitable parsetree suitable
22
- * for printing. Example: convert reason ternaries into napkin ternaries *)
22
+ * for printing. Example: convert reason ternaries into rescript ternaries *)
23
23
val structure : Parsetree .structure -> Parsetree .structure
24
24
val signature : Parsetree .signature -> Parsetree .signature
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ val parse_implementation:
42
42
[@@ live]
43
43
[@@ raises Location .Error ]
44
44
45
- (* Napkin interface parsing compatible with ocaml pparse driver. Used by the compiler *)
45
+ (* ReScript interface parsing compatible with ocaml pparse driver. Used by the compiler *)
46
46
val parse_interface :
47
47
string -> Parsetree .signature
48
48
[@@ live]
Original file line number Diff line number Diff line change @@ -1034,7 +1034,7 @@ let printPolyVarIdent txt =
1034
1034
Doc. rparen;
1035
1035
]
1036
1036
)
1037
- (* Not supported by NapkinScript *)
1037
+ (* Not supported by ReScript *)
1038
1038
| Oval_variant _ -> Doc. nil
1039
1039
1040
1040
let printOutExceptionDoc exc outValue =
@@ -1141,7 +1141,7 @@ let printPolyVarIdent txt =
1141
1141
1142
1142
1143
1143
1144
- (* Not supported in Napkin *)
1144
+ (* Not supported in ReScript *)
1145
1145
(* Oprint.out_class_type *)
1146
1146
let setup = lazy begin
1147
1147
Oprint. out_value := printOutValue;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -184,7 +184,7 @@ module ParserApiTest = struct
184
184
assert (parser.scanner.lineOffset == 0 );
185
185
assert (parser.scanner.offset == 6 );
186
186
assert (parser.token = Res_token. Let );
187
- print_endline " ✅ Parser make: initializes parser defaulting to line 1 "
187
+ print_endline " ✅ Parser make: initializes parser and checking offsets "
188
188
189
189
let run () =
190
190
makeDefault() ;
You can’t perform that action at this time.
0 commit comments