GuntherRademacher / rr

RR - Railroad Diagram Generator
Apache License 2.0
467 stars 51 forks source link

grammar Converter for offline use #27

Closed amryounis closed 7 months ago

amryounis commented 7 months ago

may I ask you to avail the grammar converter for download for offline work. thank you in advance

GuntherRademacher commented 7 months ago

Please find it here.

mingodad commented 7 months ago

Can we also get the source code ?

GuntherRademacher commented 7 months ago

Can we also get the source code ?

Yes, when I am ready to provide it. Not at this time, sorry.

mingodad commented 7 months ago

Thank you for reply ! I'm also interested in the REX parser ! Cheers !

GuntherRademacher commented 7 months ago

REx is not open source at this time, and there is no published documentation available either. Sorry.

amryounis commented 7 months ago

many thanks indeed

alerque commented 6 months ago

I landed here also looking for the converter. I've occasionally come round to use the online version, which was okay. Now the site is offline-for-me. Yes I know it is on IPv6, but my ISP isn't routing IPv6 at all and effectively it is offline for me. So I was looking for an offline version, but the tarball you linked is hosted also on the IPv6 only space, so I can't reach that either.

mingodad commented 6 months ago

Here https://github.com/GuntherRademacher/rr/releases/tag/v2.1 you can get it .

alerque commented 6 months ago

@mingodad That is unfortunately only the rr part, not the convert part.

mingodad commented 6 months ago

Can you mention what kind of grammar (yacc,antlr,...) are you trying to convert ?

alerque commented 6 months ago

In my case I have ABNF (RPC 5234 + RPC 7405) and I want other things such as what rr can render or that I can export to other tooling that doesn't handle ABNF (and perhaps does handle some flavor of EBNF or others).

mingodad commented 6 months ago

Maybe @GuntherRademacher can make it available through github too ? Let's see when he reply here !

alerque commented 6 months ago

I was able to get onto the https://www.bottlecaps.de site via Tor (which seems to be a great bridge to get around being stuck on an IPv4 only ISPs). I also have access to a server in Europe with proper IPv6 support and have tried command line downloads from there. Lastly I tried checking archive.org and their Internet Archive.

In all cases I struck out on getting the zip file with the convert binary linked above. I tried using the www. subdomain instead of the apex domain as well, but the file does not seem to be there at that link.

@GuntherRademacher It would be lovely if you could release that zip here on GitHub or indeed anywhere current. Of course as others have requested the source would be nice to see too, but even just the existing offline binary would be nice to be able to do local validation/conversion. I realize we're just out here asking for free stuff. I can only point to my FOSS contributions in many other areas including software you've surely used when I say: pretty please?

GuntherRademacher commented 6 months ago

@alerque Please note that only the latest version is avaible for downloading, that the link includes the version number, which has changed due to my domain name problem. The current link is https://www.bottlecaps.de/convert/download/convert-0.66-java11.zip.

I will publish the source code on GitHub, I am just asking a little more time. Thanks for using my code.

alerque commented 6 months ago

Thank you, that's fantastic! I can now run it locally instead of trying to fire off requests through Tor!

I see now the current running version is in the footer, but since the file isn't linked anywhere I didn't make that connection before.

Can I make a suggestion towards open sourcing this? I would give it a slightly more unique name so that it can be more easily packaged and integrated in other systems? For example perhaps ebnf-convert or convert-to-ebnf might work. The convert name is pretty definitively tied up by ImageMagick (also a bad choice of name and thankfully dropped in favor of magick convert, but lots of legacy code out there means it won't go away soon).

alerque commented 6 months ago

In fact if you have any naming ideas now even before you do a source release I'd like to put together an AUR recipe (-bin flavor) to make this easier to spin up in CI. I could do this now with a small shell wrapper script (which it needs to run java -jar convert.war anyway) but it would be nice to name it something you approved of and might make official later...

GuntherRademacher commented 6 months ago

There you go, ebnf-convert has just been published on GitHub.

alerque commented 6 months ago

Wow, that's fantastic. I've successfully built it from source on Arch Linux and setup an AUR package so others can run it easily too.

I'm now looking at packaging rr too, see #29.