Skip to content

Commit

Permalink
Use signature files for *.fsy files. (#2879)
Browse files Browse the repository at this point in the history
  • Loading branch information
nojaf authored May 13, 2023
1 parent 6f3dbd6 commit 680ec8b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 10 deletions.
17 changes: 13 additions & 4 deletions src/Fantomas.FCS/Fantomas.FCS.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
<Link>AbstractIL\illex.fsl</Link>
</None>
<FsYacc Include="..\..\.deps\$(FCSCommitHash)\src\Compiler\AbstractIL\ilpars.fsy">
<OtherFlags>--module FSharp.Compiler.AbstractIL.AsciiParser --open FSharp.Compiler.AbstractIL --internal --lexlib Internal.Utilities.Text.Lexing --parslib Internal.Utilities.Text.Parsing</OtherFlags>
<OtherFlags>--module FSharp.Compiler.AbstractIL.AsciiParser --open FSharp.Compiler.AbstractIL --open FSharp.Compiler.AbstractIL.AsciiConstants --open FSharp.Compiler.AbstractIL.IL --internal --lexlib Internal.Utilities.Text.Lexing --parslib Internal.Utilities.Text.Parsing --buffer-type-argument char</OtherFlags>
<Link>AbstractIL\ilpars.fsy</Link>
</FsYacc>
<None Include="..\..\.deps\$(FCSCommitHash)\src\Compiler\AbstractIL\ilpars.fsy">
Expand All @@ -205,6 +205,9 @@
<Compile Include="..\..\.deps\$(FCSCommitHash)\src\Compiler\AbstractIL\ilascii.fs">
<Link>AbstractIL\ilascii.fs</Link>
</Compile>
<Compile Include="$(FsYaccOutputFolder)ilpars.fsi">
<Link>AbstractIL\FsYaccOut\ilpars.fsi</Link>
</Compile>
<Compile Include="$(FsYaccOutputFolder)ilpars.fs">
<Link>AbstractIL\FsYaccOut\ilpars.fs</Link>
</Compile>
Expand All @@ -222,15 +225,15 @@
<Link>SyntaxTree\pplex.fsl</Link>
</FsLex>
<FsYacc Include="..\..\.deps\$(FCSCommitHash)\src\Compiler\pppars.fsy">
<OtherFlags>--module FSharp.Compiler.PPParser --open FSharp.Compiler --open FSharp.Compiler.Syntax --internal --lexlib Internal.Utilities.Text.Lexing --parslib Internal.Utilities.Text.Parsing</OtherFlags>
<OtherFlags>--module FSharp.Compiler.PPParser --open FSharp.Compiler --open FSharp.Compiler.Syntax --open FSharp.Compiler.ParseHelpers --internal --lexlib Internal.Utilities.Text.Lexing --parslib Internal.Utilities.Text.Parsing --buffer-type-argument char</OtherFlags>
<Link>SyntaxTree\pppars.fsy</Link>
</FsYacc>
<FsLex Include="..\..\.deps\$(FCSCommitHash)\src\Compiler\lex.fsl">
<OtherFlags>--unicode --lexlib Internal.Utilities.Text.Lexing</OtherFlags>
<Link>SyntaxTree\lex.fsl</Link>
</FsLex>
<FsYacc Include="..\..\.deps\$(FCSCommitHash)\src\Compiler\pars.fsy">
<OtherFlags>-v --module FSharp.Compiler.Parser --open FSharp.Compiler --open FSharp.Compiler.Syntax --internal --lexlib Internal.Utilities.Text.Lexing --parslib Internal.Utilities.Text.Parsing</OtherFlags>
<OtherFlags>-v --module FSharp.Compiler.Parser --open FSharp.Compiler --open FSharp.Compiler.Syntax --open FSharp.Compiler.Text --internal --lexlib Internal.Utilities.Text.Lexing --parslib Internal.Utilities.Text.Parsing --buffer-type-argument char</OtherFlags>
<Link>SyntaxTree\pars.fsy</Link>
</FsYacc>
<None Include="..\..\.deps\$(FCSCommitHash)\src\Compiler\pplex.fsl">
Expand Down Expand Up @@ -281,9 +284,15 @@
<Compile Include="..\..\.deps\$(FCSCommitHash)\src\Compiler\SyntaxTree\ParseHelpers.fs">
<Link>SyntaxTree\ParseHelpers.fs</Link>
</Compile>
<Compile Include="$(FsYaccOutputFolder)pppars.fsi">
<Link>SyntaxTree\FsYaccOutput\pppars.fsi</Link>
</Compile>
<Compile Include="$(FsYaccOutputFolder)pppars.fs">
<Link>SyntaxTree\FsYaccOutput\pppars.fs</Link>
</Compile>
<Compile Include="$(FsYaccOutputFolder)pars.fsi">
<Link>SyntaxTree\FsYaccOutput\pars.fsi</Link>
</Compile>
<Compile Include="$(FsYaccOutputFolder)pars.fs">
<Link>SyntaxTree\FsYaccOutput\pars.fs</Link>
</Compile>
Expand Down Expand Up @@ -313,7 +322,7 @@
<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="7.0.0" />
<PackageReference Include="System.Memory" Version="4.5.5" />
<PackageReference Include="System.Runtime" Version="4.3.1" />
<PackageReference Include="FsLexYacc" Version="11.0.1" PrivateAssets="all" />
<PackageReference Include="FsLexYacc" Version="11.1.0" PrivateAssets="all" />
</ItemGroup>

<Target Name="AcquireCompilerFiles" Condition="!Exists('../../.deps/$(FCSCommitHash)')" BeforeTargets="CollectPackageReferences">
Expand Down
12 changes: 6 additions & 6 deletions src/Fantomas.FCS/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
},
"FsLexYacc": {
"type": "Direct",
"requested": "[11.0.1, )",
"resolved": "11.0.1",
"contentHash": "2ra352oQaLFe67FisXkTeVTdlX96pOfI5zz1MvJeBwdgqGDSmVT46nM1ugUxWXts5u3dx7FGKTdZDoRfnwFAgw==",
"requested": "[11.1.0, )",
"resolved": "11.1.0",
"contentHash": "JoGbIVZVuJs4CsCED0Wi7Winhf6isw0qrblm4hNAdpaZX3Sp5EmPZa07Nhv6SVmoDNPP/HfjCBVtFbaxyzOD2w==",
"dependencies": {
"FSharp.Core": "4.6.2",
"FsLexYacc.Runtime": "11.0.1"
"FsLexYacc.Runtime": "11.1.0"
}
},
"Ionide.KeepAChangelog.Tasks": {
Expand Down Expand Up @@ -78,8 +78,8 @@
},
"FsLexYacc.Runtime": {
"type": "Transitive",
"resolved": "11.0.1",
"contentHash": "6fZlgcVHPJBAB3MGJpGpJIhHFM87LDulG0hQA0pZicr3fKUrq6TPd2UNdRO02U7PEAvAMHE2qmyPiEll7mgILg==",
"resolved": "11.1.0",
"contentHash": "NtCnm45VhoJKyz2Ie8OzSSUgrUYQ0TKp2LbgEBeEOr7j6+/0om3lf7NmmoDZDjuNx/KRXb95ZMDjGZRZD92ZfA==",
"dependencies": {
"FSharp.Core": "4.6.2"
}
Expand Down

0 comments on commit 680ec8b

Please sign in to comment.