Package Usage: rubygems: ruby_parser
ruby_parser (RP) is a ruby parser written in pure ruby (utilizing
racc--which does by default use a C extension). It outputs
s-expressions which can be manipulated and converted back to ruby via
the ruby2ruby gem.
As an example:
def conditional1 arg1
return 1 if arg1 == 0
return 0
end
becomes:
s(:defn, :conditional1, s(:args, :arg1),
s(:if,
s(:call, s(:lvar, :arg1), :==, s(:lit, 0)),
s(:return, s(:lit, 1)),
nil),
s(:return, s(:lit, 0)))
Tested against 801,039 files from the latest of all rubygems (as of 2013-05):
* 1.8 parser is at 99.9739% accuracy, 3.651 sigma
* 1.9 parser is at 99.9940% accuracy, 4.013 sigma
* 2.0 parser is at 99.9939% accuracy, 4.008 sigma
* 2.6 parser is at 99.9972% accuracy, 4.191 sigma
* 3.0 parser has a 100% parse rate.
* Tested against 2,672,412 unique ruby files across 167k gems.
* As do all the others now, basically.
79 versions
Latest release: over 1 year ago
186 dependent packages
119,304,286 downloads total
View more package details: https://packages.ecosystem.code.gouv.fr/registries/rubygems.org/packages/ruby_parser
Dependent Repos 14
betagouv/boussole
Accède au conseil qualifié d'un·e professionnel·le, près de chez toi, pour t'aider dans tes projets de formation, de logement, d'activité et de santéSize: 2.17 MB - Last synced: 7 days ago - Pushed: almost 8 years ago

betagouv/dashboard_apientreprise 📦
Le tableau de bord d'apientreprise.frSize: 125 KB - Last synced: 7 days ago - Pushed: over 7 years ago

etalab/retos-civicos Fork of CodeandoMexico/retos-civicos
Size: 15.6 MB - Last synced: 7 days ago - Pushed: over 8 years ago

betagouv/chatwoot Fork of chatwoot/chatwoot
Open-source customer engagement suite, an alternative to Intercom, Zendesk, Salesforce Service Cloud etc. 🔥💬Size: 129 MB - Last synced: 7 days ago - Pushed: over 1 year ago

betagouv/chatwoot-old-fork Fork of chatwoot/chatwoot
Open-source customer engagement suite, an alternative to Intercom, Zendesk, Salesforce Service Cloud etc. 🔥💬Size: 50.6 MB - Last synced: 7 days ago - Pushed: over 3 years ago

betagouv/loomio Fork of loomio/loomio
Loomio helps people make decisions togetherSize: 112 MB - Last synced: 7 days ago - Pushed: about 5 years ago

sipf/tps Fork of govpf/mes-demarches
Dématérialiser et simplifier les démarches administrativesSize: 24.5 MB - Last synced: 7 days ago - Pushed: over 6 years ago



betagouv/collectif-objets
Recenser notre patrimoine pour le protégerSize: 28.7 MB - Last synced: 7 days ago - Pushed: 12 days ago

SocialGouv/tps Fork of demarches-simplifiees/demarches-simplifiees.fr
demarches-simplifiees.frSize: 19.8 MB - Last synced: 7 days ago - Pushed: about 1 year ago

StartupsPoleEmploi/clara 📦
Délivre un premier niveau d'information sur de possibles éligibilités aux aides et mesures liées au retour à l'emploiSize: 13.7 MB - Last synced: 7 days ago - Pushed: over 2 years ago
