Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Commit fe57287

Browse files
committed
Remove all old mentions of napkin
This was rescript's old name. No longer needed. Didn't touch the test files/cases mentioning it though.
1 parent ba2f6d9 commit fe57287

File tree

9 files changed

+30
-257
lines changed

9 files changed

+30
-257
lines changed

.depend

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,6 @@ src/res_scanner.cmx : src/res_token.cmx src/res_diagnostics.cmx \
7070
src/res_comment.cmx src/res_scanner.cmi
7171
src/res_scanner.cmi : src/res_token.cmx src/res_diagnostics.cmi
7272
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
7673
tests/res_diff.cmx : tests/res_diff.cmi
7774
tests/res_diff.cmi :
7875
tests/res_test.cmx : src/res_token.cmx src/res_parser.cmx \

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
.DS_STORE
2-
_build
32
node_modules
43
*.cm*
54
*.o

bsconfig.json

Lines changed: 0 additions & 16 deletions
This file was deleted.

src/res_ast_conversion.mli

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
(* 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. *)
33

44
(* Ocaml/Reason parser interprets string literals: i.e. escape sequences and unicode.
55
* For printing purposes you want to preserve the original string.
@@ -19,6 +19,6 @@ val normalizeReasonAritySignature:
1919
forPrinter:bool -> Parsetree.signature -> Parsetree.signature
2020

2121
(* 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 *)
2323
val structure: Parsetree.structure -> Parsetree.structure
2424
val signature: Parsetree.signature -> Parsetree.signature

src/res_driver.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ val parse_implementation:
4242
[@@live]
4343
[@@raises Location.Error]
4444

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 *)
4646
val parse_interface:
4747
string -> Parsetree.signature
4848
[@@live]

src/res_outcome_printer.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,7 +1034,7 @@ let printPolyVarIdent txt =
10341034
Doc.rparen;
10351035
]
10361036
)
1037-
(* Not supported by NapkinScript *)
1037+
(* Not supported by ReScript *)
10381038
| Oval_variant _ -> Doc.nil
10391039

10401040
let printOutExceptionDoc exc outValue =
@@ -1141,7 +1141,7 @@ let printPolyVarIdent txt =
11411141

11421142

11431143

1144-
(* Not supported in Napkin *)
1144+
(* Not supported in ReScript *)
11451145
(* Oprint.out_class_type *)
11461146
let setup = lazy begin
11471147
Oprint.out_value := printOutValue;

tests/napkin_test.ml

Lines changed: 0 additions & 207 deletions
This file was deleted.

tests/res_test.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ module ParserApiTest = struct
184184
assert (parser.scanner.lineOffset == 0);
185185
assert (parser.scanner.offset == 6);
186186
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"
188188

189189
let run () =
190190
makeDefault();

0 commit comments

Comments
 (0)