Skip to content

Commit

Permalink
Merge pull request #174 from dawedawe/update_docs
Browse files Browse the repository at this point in the history
adjust docs to reflect automatically added msbuild targets
  • Loading branch information
nojaf committed Nov 8, 2023
2 parents 70abefd + b9b1014 commit f40a367
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions docs/content/fsyacc.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,8 @@ The above generates a datatype for tokens and a function for each `start` produc
MSBuild support
---------------

The nuget package includes MSBuild support for `FsLex` and `FsYacc`. You must add a `FsLexYacc.targets` reference
to your project file manually like this (adjust the nuget package number if needed):

<Import Project="..\packages\FsLexYacc.6.0.3\bin\FsLexYacc.targets" />

You must also add `FsLex` andd `FsYacc` entries like this:
The nuget package includes MSBuild support for `FsLex` and `FsYacc`. New MSBuild targets are added automatically by the nuget package.
But you must manually add `FsLex` andd `FsYacc` entries inside of an `ItemGroup` to your `.fsproj` file like this:

<FsYacc Include="..\LexAndYaccMiniProject\Parser.fsy">
<OtherFlags>--module Parser</OtherFlags>
Expand All @@ -97,7 +93,7 @@ You must also add `FsLex` andd `FsYacc` entries like this:
<OtherFlags>--unicode</OtherFlags>
</FsLex>

If you want to see `verbose` output from `FsYacc` you need to add `-v` in `OtherFlags` section like this:
If you want to see `verbose` output from `FsYacc` you need to add `-v` in the `OtherFlags` section like this:

<FsYacc Include="..\LexAndYaccMiniProject\Parser.fsy">
<OtherFlags>--module Parser -v</OtherFlags>
Expand Down

0 comments on commit f40a367

Please sign in to comment.