-
Notifications
You must be signed in to change notification settings - Fork 0
Welcome to aGrUM Discussions! #1
Replies: 1 comment · 8 replies
-
I noticed that this project uses CocoR parser generator and I did several improvements/fixes to it here https://github.com/mingodad/CocoR-CPP , https://github.com/mingodad/CocoR-CSharp , https://github.com/mingodad/CocoR-Java and also recently a port to Typescript/Javascript here https://github.com/mingodad/CocoR-Typescript with an online playground here https://mingodad.github.io/CocoR-Typescript/playground . I think that they can be useful to this project and I'm sharing it here. |
Beta Was this translation helpful? Give feedback.
All reactions
-
Just out of curiosity I translated this project grammars to the EBNF understood by https://www.bottlecaps.de/rr/ui to generate navigable railroad diagrams (https://en.wikipedia.org/wiki/Syntax_diagram) and it seems that some of then seem overkill to use a parser generator. Copy and paste any of the
|
Beta Was this translation helpful? Give feedback.
All reactions
-
Hi again, and thanks for your time. 1- did you see the first comment about 2- Using BIF parser, and parsing for instance the files https://gitlab.com/agrumery/pgmrepository/-/tree/master/bif/Mildew.bif (2M), https://gitlab.com/agrumery/pgmrepository/-/tree/master/bif/Diabetes.bif (3M), The computations themselves are comparable in time (and results) for the two platforms. So this really is a problem during the parsing 3- You're right about the simplicity of some grammars. :-) In this project, we are not dealing especially with grammars but with probabilistic graphical models, probabilistic inference and statistical machine learning : It is convenient for us to have the same description for all the languages we have to deal with (especially since the simpler can/will evolve) ... furthermore, we already have specific parsers for CSV (specific code) and for XML (using tinyXML). |
Beta Was this translation helpful? Give feedback.
All reactions
-
I just compiled and executed a
On Linux with WINE:
On Windows10 running on VirtualBox:
|
Beta Was this translation helpful? Give feedback.
All reactions
-
The templates/frames are there to allow any customization a user my need. |
Beta Was this translation helpful? Give feedback.
All reactions
-
Thanks for that ! There is a lot of memory allocation in the codes associated with the parsing, but there is also a lot in general in our codes and the difference in execution time between windows and linux is never (and by far) as important as for reading files. So I would say it would be worthwhile to adapt our code to your new version ... However, re-doing the separation of template codes to common.h and common.cpp (which seems to me to be something any user might want) is not on the agenda :-) we lack resources for that. I hope to find the time to do that at some point. Thanks for maintaining cocoR, the information and testing! |
Beta Was this translation helpful? Give feedback.
-
👋 Welcome!
We’re using Discussions as a place to connect with other members of our community. We hope that you:
build together 💪.
To get started, comment below with an introduction of yourself and tell us about what you do with this community.
Beta Was this translation helpful? Give feedback.
All reactions