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: presque 2 ans 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 Mo - Last synced: 1 jour ago - Pushed: plus de 8 ans ago
betagouv/dashboard_apientreprise 📦
Le tableau de bord d'apientreprise.frSize: 125 ko - Last synced: 1 jour ago - Pushed: environ 8 ans ago
etalab/retos-civicos Fork of CodeandoMexico/retos-civicos
Size: 15,6 Mo - Last synced: 1 jour ago - Pushed: environ 9 ans ago
betagouv/chatwoot Fork of chatwoot/chatwoot
Open-source customer engagement suite, an alternative to Intercom, Zendesk, Salesforce Service Cloud etc. 🔥💬Size: 147 Mo - Last synced: 1 jour ago - Pushed: 5 mois 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 Mo - Last synced: 1 jour ago - Pushed: presque 4 ans ago
betagouv/loomio Fork of loomio/loomio
Loomio helps people make decisions togetherSize: 112 Mo - Last synced: 1 jour ago - Pushed: plus de 5 ans ago
sipf/tps Fork of govpf/mes-demarches
Dématérialiser et simplifier les démarches administrativesSize: 24,5 Mo - Last synced: 1 jour ago - Pushed: plus de 6 ans ago
betagouv/collectif-objets
Recenser notre patrimoine pour le protégerSize: 28,8 Mo - Last synced: 1 jour ago - Pushed: 15 jours ago
SocialGouv/tps Fork of demarches-simplifiees/demarches-simplifiees.fr
demarches-simplifiees.frSize: 19,8 Mo - Last synced: 1 jour ago - Pushed: plus d'un an 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 Mo - Last synced: 1 jour ago - Pushed: presque 3 ans ago