You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ ArgInfo ("-o", ArgType.String (fun s -> out := Some s),"Name the output file.");
50
-
ArgInfo ("--codepage", ArgType.Int (fun i -> inputCodePage := Some i),"Assume input lexer specification file is encoded with the given codepage.");
51
-
ArgInfo ("--light", ArgType.Unit (fun()-> light := Some true),"(ignored)");
52
-
ArgInfo ("--light-off", ArgType.Unit (fun()-> light := Some false),"Add #light \"off\" to the top of the generated file");
53
-
ArgInfo ("--lexlib", ArgType.String (fun s -> lexlib <- s),"Specify the namespace for the implementation of the lexer table interpreter (default Microsoft.FSharp.Text.Lexing)");
54
-
ArgInfo ("--unicode", ArgType.Set unicode,"Produce a lexer for use with 16-bit unicode characters.");
49
+
[ ArgInfo ("-o", ArgType.String (fun s -> out := Some s),"Name the output file.")
50
+
ArgInfo ("--codepage", ArgType.Int (fun i -> inputCodePage := Some i),"Assume input lexer specification file is encoded with the given codepage.")
51
+
ArgInfo ("--light", ArgType.Unit (fun()-> light := Some true),"(ignored)")
52
+
ArgInfo ("--light-off", ArgType.Unit (fun()-> light := Some false),"Add #light \"off\" to the top of the generated file")
53
+
ArgInfo ("--lexlib", ArgType.String (fun s -> lexlib <- s),"Specify the namespace for the implementation of the lexer table interpreter (default FSharp.Text.Lexing)")
54
+
ArgInfo ("--unicode", ArgType.Set unicode,"Produce a lexer for use with 16-bit unicode characters.")
55
55
]
56
56
57
57
let_= ArgParser.Parse(usage,(fun x ->match!input with Some _-> failwith "more than one input given"| None -> input := Some x),"fslex <filename>")
// This code is duplicated from FSharp.Compiler.UnicodeLexing
15
+
// This code is duplicated from Microsoft.FSharp.Compiler.UnicodeLexing
16
16
17
17
typeLexbuf= LexBuffer<char>
18
18
@@ -47,8 +47,8 @@ let compat = ref false
47
47
letlog= ref false
48
48
letlight= ref None
49
49
letinputCodePage= ref None
50
-
let mutablelexlib="Microsoft.FSharp.Text.Lexing"
51
-
let mutableparslib="Microsoft.FSharp.Text.Parsing"
50
+
let mutablelexlib="FSharp.Text.Lexing"
51
+
let mutableparslib="FSharp.Text.Parsing"
52
52
53
53
letusage=
54
54
[ ArgInfo("-o", ArgType.String (fun s -> out := Some s),"Name the output file.");
@@ -60,8 +60,8 @@ let usage =
60
60
ArgInfo("--light-off", ArgType.Unit (fun()-> light := Some false),"Add #light \"off\" to the top of the generated file");
61
61
ArgInfo("--ml-compatibility", ArgType.Set compat,"Support the use of the global state from the 'Parsing' module in FSharp.PowerPack.dll.");
62
62
ArgInfo("--tokens", ArgType.Set tokenize,"Simply tokenize the specification file itself.");
63
-
ArgInfo("--lexlib", ArgType.String (fun s -> lexlib <- s),"Specify the namespace for the implementation of the lexer (default: Microsoft.FSharp.Text.Lexing)");
64
-
ArgInfo("--parslib", ArgType.String (fun s -> parslib <- s),"Specify the namespace for the implementation of the parser table interpreter (default: Microsoft.FSharp.Text.Parsing)");
63
+
ArgInfo("--lexlib", ArgType.String (fun s -> lexlib <- s),"Specify the namespace for the implementation of the lexer (default: FSharp.Text.Lexing)");
64
+
ArgInfo("--parslib", ArgType.String (fun s -> parslib <- s),"Specify the namespace for the implementation of the parser table interpreter (default: FSharp.Text.Parsing)");
65
65
ArgInfo("--codepage", ArgType.Int (fun i -> inputCodePage := Some i),"Assume input lexer specification file is encoded with the given codepage.");]
66
66
67
67
let_= ArgParser.Parse(usage,(fun x ->match!input with Some _-> failwith "more than one input given"| None -> input := Some x),"fsyacc <filename>")
@@ -523,11 +523,9 @@ let main() =
523
523
524
524
logf (fun oso -> oso.Close())
525
525
526
-
[<EntryPoint>]
527
-
letresult(args:string[])=
528
-
try
529
-
main()
530
-
0
526
+
letresult=
527
+
try main()
531
528
with e ->
532
-
eprintf "FSYACC: error FSY000: %s"(match e with Failure s -> s | e -> e.Message);
533
-
1
529
+
eprintf "FSYACC: error FSY000: %s"(match e with Failure s -> s | e -> e.Message);
0 commit comments