Skip to content

Commit f8e2edd

Browse files
committed
Make string_src text allow for extraction from original source file
As per discussion on github issue #1767
1 parent e8ca696 commit f8e2edd

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/parse/ReplCommands.sig

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,14 @@ sig
2121
2222
*)
2323

24-
datatype string_src = Direct of string | ViaFile of {proxy_filename : string}
24+
datatype string_src =
25+
Direct of string
26+
| ViaFile of {proxy_filename : string}
27+
| FromSource
28+
(* given the locn and filename (locn can't be unknown or similar;
29+
filename can't be NONE), the desired text is as specified in the
30+
script_text value (see below). *)
31+
2532
type script_text = locn.locn * {filename : string option, text : string_src}
2633

2734
datatype repl_command = Success of string | Failure of string

src/parse/ReplCommands.sml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ structure ReplCommands :> ReplCommands =
22
struct
33

44

5-
datatype string_src = Direct of string | ViaFile of {proxy_filename : string}
5+
datatype string_src =
6+
Direct of string | ViaFile of {proxy_filename : string} | FromSource
67
type script_text = locn.locn * {filename : string option, text : string_src}
78

89
datatype repl_command = Success of string | Failure of string

0 commit comments

Comments
 (0)