From f36b7f3c070f7e3552ac728579ae64feb7b617ab Mon Sep 17 00:00:00 2001 From: Abel Braaksma Date: Tue, 11 Aug 2020 12:41:44 +0200 Subject: [PATCH 1/4] Fix showing pars.fs, lex.fs, pppars.fs and pplex.fs in sln --- .../FSharp.Compiler.Private.fsproj | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/fsharp/FSharp.Compiler.Private/FSharp.Compiler.Private.fsproj b/src/fsharp/FSharp.Compiler.Private/FSharp.Compiler.Private.fsproj index 492c6f0f2d2..ce8b93d9bb3 100644 --- a/src/fsharp/FSharp.Compiler.Private/FSharp.Compiler.Private.fsproj +++ b/src/fsharp/FSharp.Compiler.Private/FSharp.Compiler.Private.fsproj @@ -351,10 +351,10 @@ ParserAndUntypedAST\ParseHelpers.fs - $(FsYaccOutputFolder)ParserAndUntypedAST\pppars.fs + ParserAndUntypedAST\pppars.fs - $(FsYaccOutputFolder)ParserAndUntypedAST\pars.fs + ParserAndUntypedAST\pars.fs ParserAndUntypedAST\lexhelp.fsi @@ -363,10 +363,10 @@ ParserAndUntypedAST\lexhelp.fs - $(FsYaccOutputFolder)ParserAndUntypedAST\pplex.fs + ParserAndUntypedAST\pplex.fs - - $(FsYaccOutputFolder)ParserAndUntypedAST\lex.fs + + ParserAndUntypedAST\lex.fs ParserAndUntypedAST\LexFilter.fs From dd6f42c29e3a9fcf882654848fc65a9ae0dee55a Mon Sep 17 00:00:00 2001 From: Abel Braaksma Date: Tue, 11 Aug 2020 12:51:41 +0200 Subject: [PATCH 2/4] Also fix showing ilpars.fs and illex.fs --- .../FSharp.Compiler.Private/FSharp.Compiler.Private.fsproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fsharp/FSharp.Compiler.Private/FSharp.Compiler.Private.fsproj b/src/fsharp/FSharp.Compiler.Private/FSharp.Compiler.Private.fsproj index ce8b93d9bb3..5a2ee0b0af0 100644 --- a/src/fsharp/FSharp.Compiler.Private/FSharp.Compiler.Private.fsproj +++ b/src/fsharp/FSharp.Compiler.Private/FSharp.Compiler.Private.fsproj @@ -242,10 +242,10 @@ AbsIL\ilsupp.fs - $(FsYaccOutputFolder)AbsIL\ilpars.fs + AbsIL\ilpars.fs - $(FsLexOutputFolder)AbsIL\illex.fs + AbsIL\illex.fs AbsIL\ilbinary.fsi From cd0e9b3a70f881effc13157e7ee75df617682a29 Mon Sep 17 00:00:00 2001 From: Abel Braaksma Date: Tue, 11 Aug 2020 14:09:54 +0200 Subject: [PATCH 3/4] Fix automatic run of fslex/fsyacc when file is dirty --- .../FSharp.Compiler.Private.fsproj | 26 ++++++++++++++++--- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/src/fsharp/FSharp.Compiler.Private/FSharp.Compiler.Private.fsproj b/src/fsharp/FSharp.Compiler.Private/FSharp.Compiler.Private.fsproj index 5a2ee0b0af0..ede38e0f762 100644 --- a/src/fsharp/FSharp.Compiler.Private/FSharp.Compiler.Private.fsproj +++ b/src/fsharp/FSharp.Compiler.Private/FSharp.Compiler.Private.fsproj @@ -192,10 +192,16 @@ --unicode --lexlib Internal.Utilities.Text.Lexing AbsIL\illex.fsl + + AbsIL\FsLex\illex.fsl + --module FSharp.Compiler.AbstractIL.Internal.AsciiParser --open FSharp.Compiler.AbstractIL --internal --lexlib Internal.Utilities.Text.Lexing --parslib Internal.Utilities.Text.Parsing AbsIL\ilpars.fsy + + AbsIL\FsYacc\ilpars.fsy + AbsIL\il.fsi @@ -326,6 +332,18 @@ --module FSharp.Compiler.Parser --open FSharp.Compiler --internal --lexlib Internal.Utilities.Text.Lexing --parslib Internal.Utilities.Text.Parsing ParserAndUntypedAST\pars.fsy + + ParserAndUntypedAST\FsLex\pplex.fsl + + + ParserAndUntypedAST\FsLex\lex.fsl + + + ParserAndUntypedAST\FsYacc\pppars.fsy + + + ParserAndUntypedAST\FsYacc\pars.fsy + ParserAndUntypedAST\UnicodeLexing.fsi @@ -351,10 +369,10 @@ ParserAndUntypedAST\ParseHelpers.fs - ParserAndUntypedAST\pppars.fs + ParserAndUntypedAST\FsYaccOut\pppars.fs - ParserAndUntypedAST\pars.fs + ParserAndUntypedAST\FsYaccOut\pars.fs ParserAndUntypedAST\lexhelp.fsi @@ -363,10 +381,10 @@ ParserAndUntypedAST\lexhelp.fs - ParserAndUntypedAST\pplex.fs + ParserAndUntypedAST\FsLexOut\pplex.fs - ParserAndUntypedAST\lex.fs + ParserAndUntypedAST\FsLexOut\lex.fs ParserAndUntypedAST\LexFilter.fs From c7ad1ddda310fcd47c4771d4062b023258cbe70b Mon Sep 17 00:00:00 2001 From: Abel Braaksma Date: Tue, 11 Aug 2020 15:58:09 +0200 Subject: [PATCH 4/4] Same for AbsIL lex/yacc output, fix order in sln expl --- .../FSharp.Compiler.Private.fsproj | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/fsharp/FSharp.Compiler.Private/FSharp.Compiler.Private.fsproj b/src/fsharp/FSharp.Compiler.Private/FSharp.Compiler.Private.fsproj index ede38e0f762..579915eb046 100644 --- a/src/fsharp/FSharp.Compiler.Private/FSharp.Compiler.Private.fsproj +++ b/src/fsharp/FSharp.Compiler.Private/FSharp.Compiler.Private.fsproj @@ -220,6 +220,12 @@ AbsIL\ilascii.fs + + AbsIL\FsYaccOut\ilpars.fs + + + AbsIL\FsLexOut\illex.fs + AbsIL\ilprint.fsi @@ -247,12 +253,6 @@ AbsIL\ilsupp.fs - - AbsIL\ilpars.fs - - - AbsIL\illex.fs - AbsIL\ilbinary.fsi @@ -369,10 +369,10 @@ ParserAndUntypedAST\ParseHelpers.fs - ParserAndUntypedAST\FsYaccOut\pppars.fs + ParserAndUntypedAST\FsYaccOutput\pppars.fs - ParserAndUntypedAST\FsYaccOut\pars.fs + ParserAndUntypedAST\FsYaccOutput\pars.fs ParserAndUntypedAST\lexhelp.fsi @@ -381,10 +381,10 @@ ParserAndUntypedAST\lexhelp.fs - ParserAndUntypedAST\FsLexOut\pplex.fs + ParserAndUntypedAST\FsLexOutput\pplex.fs - ParserAndUntypedAST\FsLexOut\lex.fs + ParserAndUntypedAST\FsLexOutput\lex.fs ParserAndUntypedAST\LexFilter.fs