Initial import of ruby-sexp_processor.

This is the sexp_processor module for parsetree.

ParseTree is a C extension (using RubyInline) that extracts the parse tree for
an entire class or a specific method and returns it as a s-expression (aka sexp)
using ruby's arrays, strings, symbols, and integers.

Okay bernd@.
This commit is contained in:
pirofti 2008-10-28 17:54:08 +00:00
parent 3e88a42347
commit 8b92ebfab8
4 changed files with 200 additions and 0 deletions

View File

@ -0,0 +1,31 @@
# $OpenBSD: Makefile,v 1.1.1.1 2008/10/28 17:54:08 pirofti Exp $
COMMENT = sexp helper library for parsetree
DISTNAME = sexp_processor-3.0.0
PKGNAME = ruby-${DISTNAME}
CATEGORIES = devel
# MIT
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
MASTER_SITES = ${MASTER_SITE_RUBYFORGE:=parsetree/}
MODULES = lang/ruby
CONFIGURE_STYLE = ruby gem
GEM_SKIPDEPENDS = hoe
REGRESS_DEPENDS = ::devel/ruby-rake \
::devel/ruby-hoe
do-regress:
@cd ${WRKBUILD} && ${LOCALBASE}/bin/rake test
PKG_ARCH = *
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (sexp_processor-3.0.0.gem) = mVLrI5oXBCs7KoXkScRDLA==
RMD160 (sexp_processor-3.0.0.gem) = hAOMfO950RwEeLu7zgNMkJbZYXo=
SHA1 (sexp_processor-3.0.0.gem) = GpT7kKoF9VczGs8yx6f0TdPLUpc=
SHA256 (sexp_processor-3.0.0.gem) = /5q/DZBLpXuWVDUrOWqijPatUxWvmdi79mT1/279Ol0=
SIZE (sexp_processor-3.0.0.gem) = 13824

View File

@ -0,0 +1,5 @@
This is the sexp_processor module for parsetree.
ParseTree is a C extension (using RubyInline) that extracts the parse tree for
an entire class or a specific method and returns it as a s-expression (aka sexp)
using ruby's arrays, strings, symbols, and integers.

View File

@ -0,0 +1,159 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2008/10/28 17:54:08 pirofti Exp $
lib/ruby/gems/${MODRUBY_REV}/cache/${DISTNAME}.gem
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/CompositeSexpProcessor.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/CompositeSexpProcessor.src/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/CompositeSexpProcessor.src/M000002.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/CompositeSexpProcessor.src/M000003.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/CompositeSexpProcessor.src/M000004.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/NotEmptyError.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/Object.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/Object.src/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/Object.src/M000022.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/Sexp.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/Sexp.src/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/Sexp.src/M000023.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/Sexp.src/M000024.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/Sexp.src/M000025.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/Sexp.src/M000026.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/Sexp.src/M000027.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/Sexp.src/M000028.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/Sexp.src/M000029.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/Sexp.src/M000030.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/Sexp.src/M000031.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/Sexp.src/M000032.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/Sexp.src/M000033.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/Sexp.src/M000034.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/Sexp.src/M000035.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/Sexp.src/M000036.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/Sexp.src/M000037.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/SexpAny.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/SexpAny.src/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/SexpAny.src/M000005.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/SexpAny.src/M000006.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/SexpAny.src/M000007.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/SexpMatchSpecial.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/SexpMatchSpecials.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/SexpMatchSpecials.src/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/SexpMatchSpecials.src/M000038.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/SexpProcessor/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/SexpProcessor.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/SexpProcessor.src/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/SexpProcessor.src/M000008.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/SexpProcessor.src/M000009.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/SexpProcessor.src/M000010.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/SexpProcessor.src/M000011.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/SexpProcessor.src/M000012.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/SexpProcessor.src/M000013.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/SexpProcessor.src/M000014.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/SexpProcessor.src/M000015.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/SexpProcessor/Environment.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/SexpProcessor/Environment.src/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/SexpProcessor/Environment.src/M000016.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/SexpProcessor/Environment.src/M000017.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/SexpProcessor/Environment.src/M000018.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/SexpProcessor/Environment.src/M000019.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/SexpProcessor/Environment.src/M000020.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/SexpProcessor/Environment.src/M000021.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/SexpProcessorError.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/SexpTypeError.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/UnknownNodeError.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/UnsupportedNodeError.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/created.rid
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/files/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/files/History_txt.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/files/Manifest_txt.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/files/README_txt.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/files/lib/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/files/lib/composite_sexp_processor_rb.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/files/lib/sexp_processor_rb.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/files/lib/sexp_rb.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/files/lib/sexp_rb.src/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/files/lib/sexp_rb.src/M000001.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/fr_class_index.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/fr_file_index.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/fr_method_index.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/index.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/rdoc-style.css
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/CompositeSexpProcessor/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/CompositeSexpProcessor/%3c%3c-i.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/CompositeSexpProcessor/cdesc-CompositeSexpProcessor.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/CompositeSexpProcessor/on_error_in-i.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/CompositeSexpProcessor/process-i.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/NotEmptyError/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/NotEmptyError/cdesc-NotEmptyError.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Object/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Object/cdesc-Object.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Object/deep_clone-i.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Sexp/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Sexp/%3d%3d%3d-i.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Sexp/%3d%7e-i.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Sexp/array_type%3f-i.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Sexp/cdesc-Sexp.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Sexp/each_of_type-i.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Sexp/find_and_replace_all-i.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Sexp/find_node-i.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Sexp/find_nodes-i.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Sexp/from_array-c.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Sexp/gsub-i.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Sexp/method_missing-i.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Sexp/new-c.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Sexp/sexp_body-i.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Sexp/shift-i.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Sexp/structure-i.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Sexp/sub-i.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/SexpAny/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/SexpAny/%3d%3d%3d-i.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/SexpAny/%3d%3d-i.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/SexpAny/cdesc-SexpAny.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/SexpAny/inspect-i.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/SexpMatchSpecial/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/SexpMatchSpecial/cdesc-SexpMatchSpecial.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/SexpMatchSpecials/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/SexpMatchSpecials/ANY-i.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/SexpMatchSpecials/cdesc-SexpMatchSpecials.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/SexpProcessor/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/SexpProcessor/Environment/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/SexpProcessor/Environment/%5b%5d%3d-i.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/SexpProcessor/Environment/%5b%5d-i.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/SexpProcessor/Environment/all-i.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/SexpProcessor/Environment/cdesc-Environment.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/SexpProcessor/Environment/depth-i.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/SexpProcessor/Environment/new-c.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/SexpProcessor/Environment/scope-i.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/SexpProcessor/assert_empty-i.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/SexpProcessor/assert_type-i.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/SexpProcessor/cdesc-SexpProcessor.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/SexpProcessor/new-c.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/SexpProcessor/on_error_in-i.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/SexpProcessor/process-i.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/SexpProcessor/process_dummy-i.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/SexpProcessor/rewrite-i.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/SexpProcessor/scope-i.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/SexpProcessorError/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/SexpProcessorError/cdesc-SexpProcessorError.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/SexpTypeError/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/SexpTypeError/cdesc-SexpTypeError.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/UnknownNodeError/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/UnknownNodeError/cdesc-UnknownNodeError.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/UnsupportedNodeError/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/UnsupportedNodeError/cdesc-UnsupportedNodeError.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/created.rid
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/History.txt
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/Manifest.txt
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/README.txt
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/Rakefile
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/lib/
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/lib/composite_sexp_processor.rb
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/lib/sexp.rb
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/lib/sexp_processor.rb
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/test/
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/test/test_composite_sexp_processor.rb
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/test/test_environment.rb
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/test/test_sexp.rb
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/test/test_sexp_processor.rb
lib/ruby/gems/${MODRUBY_REV}/specifications/${DISTNAME}.gemspec