https://github.com/seattlerb/sexp_processor
https://github.com/seattlerb/sexp_processor
Last synced: about 22 hours ago
JSON representation
Repository metadata
- Host: GitHub
- URL: https://github.com/seattlerb/sexp_processor
- Owner: seattlerb
- Created: 2010-01-18T02:59:22.000Z (about 16 years ago)
- Default Branch: master
- Last Pushed: 2025-12-24T21:17:17.000Z (2 months ago)
- Last Synced: 2026-02-22T19:49:04.711Z (9 days ago)
- Language: Ruby
- Size: 400 KB
- Stars: 86
- Watchers: 6
- Forks: 21
- Open Issues: 1
- Releases: 0
-
Metadata Files:
- Readme: README.rdoc
- Changelog: History.rdoc
README.rdoc
= SexpProcessor
home :: https://github.com/seattlerb/sexp_processor
rdoc :: http://docs.seattlerb.org/sexp_processor
== DESCRIPTION:
sexp_processor branches from ParseTree bringing all the generic sexp
processing tools with it. Sexp, SexpProcessor, Environment, etc... all
for your language processing pleasure.
== FEATURES/PROBLEMS:
* Includes SexpProcessor and CompositeSexpProcessor.
* Allows you to write very clean filters.
* Includes MethodBasedSexpProcessor
* Makes writing language processors even easier!
* Sexp provides a simple and clean interface to creating and manipulating ASTs.
* Includes new pattern matching system.
== SYNOPSIS:
You can use SexpProcessor to do all kinds of language processing. Here
is a simple example of a simple documentation printer:
class ArrrDoc < MethodBasedSexpProcessor
def process_class exp
super do
puts "#{self.klass_name}: #{exp.comments}"
end
end
def process_defn exp
super do
args, *_body = exp
puts "#{self.method_name}(#{process_args args}): #{exp.comments}"
end
end
end
Sexp provides a lot of power with the new pattern matching system.
Here is an example that parses all the test files using RubyParser and
then quickly finds all the test methods and prints their names:
>> require "ruby_parser";
>> rp = RubyParser.new;
>> matcher = Sexp::Matcher.parse "(defn [m /^test_/] ___)"
=> q(:defn, m(/^test_/), ___)
>> paths = Dir["test/**/*.rb"];
>> sexps = s(:block, *paths.map { |path| rp.process File.read(path), path });
>> (sexps / matcher).size
=> 189
?> (sexps / matcher).map { |(_, name, *_rest)| name }.sort
=> [:test_all, :test_amp, :test_and_satisfy_eh, :test_any_search, ...]
== REQUIREMENTS:
* rubygems
== INSTALL:
* sudo gem install sexp_processor
== LICENSE:
(The MIT License)
Copyright (c) Ryan Davis, seattle.rb
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Owner metadata
- Name: Seattle Ruby Brigade
- Login: seattlerb
- Email:
- Kind: organization
- Description:
- Website: https://seattlerb.org/
- Location: We will light you on fire.
- Twitter: seattlerb
- Company:
- Icon url: https://avatars.githubusercontent.com/u/55277?v=4
- Repositories: 129
- Last ynced at: 2023-04-09T04:55:29.516Z
- Profile URL: https://github.com/seattlerb
GitHub Events
Total
- Watch event: 2
- Push event: 2
- Create event: 1
- Commit comment event: 1
Last Year
- Watch event: 2
- Push event: 1
- Commit comment event: 1
Committers metadata
Last synced: 1 day ago
Total Commits: 225
Total Committers: 1
Avg Commits per committer: 225.0
Development Distribution Score (DDS): 0.0
Commits in past year: 4
Committers in past year: 1
Avg Commits per committer in past year: 4.0
Development Distribution Score (DDS) in past year: 0.0
| Name | Commits | |
|---|---|---|
| Ryan Davis | r****d@z****m | 225 |
Committer domains:
Issue and Pull Request metadata
Last synced: about 2 months ago
Total issues: 12
Total pull requests: 19
Average time to close issues: 5 months
Average time to close pull requests: about 1 month
Total issue authors: 12
Total pull request authors: 10
Average comments per issue: 5.33
Average comments per pull request: 2.84
Merged pull request: 0
Bot issues: 0
Bot pull requests: 0
Past year issues: 0
Past year pull requests: 0
Past year average time to close issues: N/A
Past year average time to close pull requests: N/A
Past year issue authors: 0
Past year pull request authors: 0
Past year average comments per issue: 0
Past year average comments per pull request: 0
Past year merged pull request: 0
Past year bot issues: 0
Past year bot pull requests: 0
Top Issue Authors
- UncleGene (1)
- fdejaeger (1)
- moiristo (1)
- robyoder (1)
- Ichimonji10 (1)
- Daniel-ltw (1)
- nhoffmann (1)
- presidentbeef (1)
- mockdeep (1)
- slashd0t (1)
- 5minpause (1)
- ned-pcs (1)
Top Pull Request Authors
- presidentbeef (8)
- brynary (2)
- dmitri-d (2)
- voxik (1)
- ridiculous (1)
- meh (1)
- nard-tech (1)
- lastobelus (1)
- Bocete (1)
- jaredbeck (1)
Top Issue Labels
Top Pull Request Labels
Package metadata
- Total packages: 13
-
Total downloads:
- rubygems: 286,669,494 total
- Total docker downloads: 901,006,772
- Total dependent packages: 79 (may contain duplicates)
- Total dependent repositories: 35,368 (may contain duplicates)
- Total versions: 127
- Total maintainers: 1
gem.coop: sexp_processor
sexp_processor branches from ParseTree bringing all the generic sexp processing tools with it. Sexp, SexpProcessor, Environment, etc... all for your language processing pleasure.
- Homepage: https://github.com/seattlerb/sexp_processor
- Documentation: http://www.rubydoc.info/gems/sexp_processor/
- Licenses: MIT
- Latest release: 4.17.5 (published 2 months ago)
- Last Synced: 2026-03-02T19:31:48.869Z (about 23 hours ago)
- Versions: 58
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 143,365,110 Total
- Docker Downloads: 450,503,386
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 0.104%
- Downloads: 0.169%
- Docker downloads count: 0.246%
- Maintainers (1)
debian-13: ruby-sexp-processor
- Homepage: https://github.com/seattlerb/sexp_processor
- Documentation: https://packages.debian.org/trixie/ruby-sexp-processor
- Licenses:
- Latest release: 4.17.0-2 (published 19 days ago)
- Last Synced: 2026-02-13T13:19:36.182Z (18 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 0.745%
- Forks count: 1.365%
- Stargazers count: 1.617%
rubygems.org: sexp_processor
sexp_processor branches from ParseTree bringing all the generic sexp processing tools with it. Sexp, SexpProcessor, Environment, etc... all for your language processing pleasure.
- Homepage: https://github.com/seattlerb/sexp_processor
- Documentation: http://www.rubydoc.info/gems/sexp_processor/
- Licenses: MIT
- Latest release: 4.17.5 (published 2 months ago)
- Last Synced: 2026-02-28T20:00:37.038Z (3 days ago)
- Versions: 58
- Dependent Packages: 79
- Dependent Repositories: 35,368
- Downloads: 143,304,384 Total
- Docker Downloads: 450,503,386
-
Rankings:
- Downloads: 0.152%
- Dependent repos count: 0.174%
- Docker downloads count: 0.318%
- Dependent packages count: 0.377%
- Average: 2.158%
- Forks count: 5.898%
- Stargazers count: 6.027%
- Maintainers (1)
ubuntu-22.04: ruby-sexp-processor
- Homepage: https://github.com/seattlerb/sexp_processor
- Licenses:
- Latest release: 4.15.2-1 (published 18 days ago)
- Last Synced: 2026-02-13T13:25:57.452Z (18 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
debian-11: ruby-sexp-processor
- Homepage: https://github.com/seattlerb/sexp_processor
- Documentation: https://packages.debian.org/bullseye/ruby-sexp-processor
- Licenses:
- Latest release: 4.15.2-1 (published 21 days ago)
- Last Synced: 2026-02-13T08:24:45.281Z (18 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
debian-10: ruby-sexp-processor
- Homepage: https://github.com/seattlerb/sexp_processor
- Documentation: https://packages.debian.org/buster/ruby-sexp-processor
- Licenses:
- Latest release: 4.11.0-1 (published 20 days ago)
- Last Synced: 2026-02-13T04:26:07.573Z (19 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
ubuntu-20.04: ruby-sexp-processor
- Homepage: https://github.com/seattlerb/sexp_processor
- Licenses:
- Latest release: 4.11.0-1 (published 18 days ago)
- Last Synced: 2026-02-13T07:22:55.053Z (18 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
ubuntu-23.10: ruby-sexp-processor
- Homepage: https://github.com/seattlerb/sexp_processor
- Licenses:
- Latest release: 4.17.0-2 (published 18 days ago)
- Last Synced: 2026-02-13T18:32:52.362Z (18 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
ubuntu-23.04: ruby-sexp-processor
- Homepage: https://github.com/seattlerb/sexp_processor
- Licenses:
- Latest release: 4.15.2-1 (published 20 days ago)
- Last Synced: 2026-02-11T06:49:56.754Z (20 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
guix: ruby-sexp-processor
ParseTree fork which includes generic S-exp processing tools
- Homepage: https://github.com/seattlerb/sexp_processor
- Documentation: https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/ruby-xyz.scm#n6537
- Licenses: expat
- Latest release: 4.17.0 (published about 24 hours ago)
- Last Synced: 2026-03-02T18:52:14.247Z (about 24 hours ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
debian-12: ruby-sexp-processor
- Homepage: https://github.com/seattlerb/sexp_processor
- Documentation: https://packages.debian.org/bookworm/ruby-sexp-processor
- Licenses:
- Latest release: 4.15.2-1 (published 19 days ago)
- Last Synced: 2026-02-12T23:41:43.342Z (19 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
Score: 25.36120311020872