Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adjust docs to reflect automatically added msbuild targets #174

Merged
merged 1 commit into from
Nov 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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