Comments (3)
Exactly. I am not aware of any existing infrastructure that would let you do that. You can technically do
<PackageReference .... PrivateAssets="All" />
and then package the dll (and FSharp.Core too!) from the build directory into a single nuget, but I do not see what exactly does it achieve.
from fslexyacc.
Note that you need to manually add PrivateAssets="All"
to FsLexYacc compilers package always, because otherwise it will be listed as a dependency in the generated NuGet. There is a bug tracking that: NuGet/Home#4125 -- looks like it is marked as fixed, but I have no idea whether it was rolled out. So at the very least, check that the stanza is there.
As for the .Runtime package, I do not really understand what would copying the DLLs achieve, really. Depending on it is a pretty normative practice (it will pull the FSharp.Core transitively, too, and let NuGet unify references in the project using your package. Otherwise, if you package the runtime and Core into your project, you'll likely end with (1) a clash of DLLs copied to its bin directory and (b) no autogenerated binding redirects. So I would advise against that pretty strongly.
Did it answer your question? Can we close this? Or please explain what do you have in mind exactly.
from fslexyacc.
I'm fine to close this. I posted this because I think this information is useful.
In my opinion, using FsLex.exe and FsYacc.exe as a command line utility, not as library, is more understandable.
The workflow with custom MSBuild XML file is easy to use but not understandable. When it doesn't work as expected, it is difficult to debug, since I have zero knowledge about MSBuild XML.
Also, the FsLexYacc.Runtime is pretty small and embedding it to generated source file will be useful.
But anyway I can manually do it by following above steps. In my projects with this workflow, lexer/parser table .fs source files (generated) and lexer/parser runtime .fs source files (copied from this repository) are only regular F# source files and doesn't create dependency to particular FSharp.Core version. This workflow only requires knowledge about F#.
from fslexyacc.
Related Issues (20)
- Emit tables for better diagnostics
- Reductions table being recreated on each parser invocation
- Variables in supplied ".target" file seems undefined leading to compilation error HOT 6
- Activating case insensitive option crash the lexer generator HOT 12
- Building a project which uses FsLex/FsYacc fails when building with Visual Studio 2019 HOT 2
- Publish the ASTs and parsers for the ASTs for the FsLex and FsYacc tools to enable more robust editor tooling HOT 13
- Not an issue more like an optimization HOT 2
- Can't find the FSharp.Text.Lexing and FSharp.Text.Parsing lib? HOT 1
- Invite you to try a new series of Lex/Yacc tools HOT 9
- a syntax highlighter for fslex, fsyacc, F#
- Question: Can we get FSLex to embed a comment with the date-time that the outputs were generated? HOT 1
- Invite you to try FslexFsyacc HOT 7
- How to turn on runtime debug output
- How to get a position of a token from ParseErrorContext HOT 1
- API Documentation issues
- %% Trailer seems not supported
- LexBuffer<char>.LexemeSpan
- removing the need for explicit numbering of enums in F#, possible fixing problem with struct decorated DU's without fields.
- Online grammar editor/tester
- "unrecognized input" after upgrade HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fslexyacc.