-
Notifications
You must be signed in to change notification settings - Fork 0
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
Populating the repo / moving it #1
Comments
Hi Patrick! I totally agree -- a collection of community-authored and maintained grammars has always been part of our vision for Ohm. The question is whether we should keep them all in the same repository, or if these grammars should be in repos that are owned by their authors, and somehow referenced in a list of useful, well-written grammars that's part of the Ohm docs (or something). There are obviously tradeoffs here, but I don't have a strong opinion one way or the other. I think @pdubroy does, so let's see what he says. (Anyway, looking forward to checking out your Smalltalk and Bibtex grammars. Care to share a link?) Cheers, |
Heya, Thanks for bringing this up! I'd love to get a collection of Ohm grammars started. I'm not sure this is the right place anymore — my preference now would be to do something under the ohmlang org. My main concern with a fully community-authored repo is that I don't want a big maintenance burden when we make API or syntax changes in the future. In my experience it's easy to do "community-created" but it's much harder to do "community-maintained". If we have some kind of official-looking repo, I'd like to make sure that everything in it works and is up-to-date. How about we start with a curated list that points to other repos — e.g., in the style of things like awesome-react, etc.? Then we can take the best of those and promote to a separate repo of "official" grammars. |
Hi :) Patrick's suggestion with "community-created" grammars sounds reasonable to me. Maybe the GitHub tag system might also help (I accidentally just created the ohm-grammar tag) and the tag could be promoted somewhere near the list of interesting grammars. Some context maybe on why I am bringing this up again. We regularly use Ohm (JS and S) in teaching and students are often looking for languages to parse with Ohm. :) You can find the Smalltalk grammar at and the BibTex grammar at In general the Ohm/S grammars are at https://github.com/hpi-swa/Ohm-S/tree/master/packages/Ohm-Grammars.package but require some navigating. The plan is to migrate them to the new Squeak git system which can then serialize them into proper .ohm files. |
Sounds great, Patricks :) @codeZeilen: thanks for the links to your grammars, I'm looking forward to checking them out. Unfortunately, the link to the Smalltalk grammar didn't work for me. Thanks, |
hm... something removed the dash in the URL for the Smalltalk grammar. Here is the correct link: |
Hi everyone,
as Ohm continues to be used I guess several fine grammars are created and maintained by people (for example I currently have a grammar for Smalltalk, BibTex, and (almost finished) N-Tuples). It would be really nice to share these through a common repository. Consequently I wanted to ask whether this repository should still be considered the right place for sharing ohm grammars?
Regarding the organization of the repo, my first approach would be to generally have an .ohm file per grammar and in exceptional cases (Python?) a folder for additional code.
Bests
Patrick
The text was updated successfully, but these errors were encountered: