ParseTree 3.0.1-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.autotest +16 -0
- data/History.txt +400 -0
- data/Manifest.txt +21 -0
- data/README.txt +115 -0
- data/Rakefile +35 -0
- data/bin/parse_tree_abc +89 -0
- data/bin/parse_tree_audit +28 -0
- data/bin/parse_tree_deps +62 -0
- data/bin/parse_tree_show +60 -0
- data/demo/printer.rb +20 -0
- data/lib/inline/Inline_RawParseTree_fa12.so +0 -0
- data/lib/parse_tree.rb +1153 -0
- data/lib/parse_tree_extensions.rb +69 -0
- data/lib/unified_ruby.rb +315 -0
- data/lib/unique.rb +15 -0
- data/test/pt_testcase.rb +4312 -0
- data/test/something.rb +53 -0
- data/test/test_all.rb +13 -0
- data/test/test_parse_tree.rb +259 -0
- data/test/test_parse_tree_extensions.rb +39 -0
- data/test/test_unified_ruby.rb +315 -0
- data/validate.sh +31 -0
- metadata +111 -0
data/validate.sh
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
#!/bin/bash
|
2
|
+
|
3
|
+
# set -xv
|
4
|
+
|
5
|
+
trap "exit 1" 1 2 3 15
|
6
|
+
|
7
|
+
DIRS="-I../../metaruby/dev/tests/builtin -I../../metaruby/dev/tests -Ilib"
|
8
|
+
for d in $(ls -d ../../*/dev); do
|
9
|
+
DIRS="-I$d $DIRS"
|
10
|
+
done
|
11
|
+
|
12
|
+
if [ -f rb.bad.txt ]; then
|
13
|
+
mv rb.bad.txt rb.files.txt
|
14
|
+
else
|
15
|
+
find ../../*/dev /usr/local/lib/ruby/1.8/ -name \*.rb > rb.files.txt
|
16
|
+
fi
|
17
|
+
|
18
|
+
total_count=$(wc -l rb.files.txt | awk '{print $1}')
|
19
|
+
curr_count=0
|
20
|
+
for f in $(cat rb.files.txt); do
|
21
|
+
curr_count=$(($curr_count + 1))
|
22
|
+
if GEM_SKIP=ParseTree ruby $DIRS ./bin/parse_tree_show -q $f > /dev/null 2> rb.err.txt < /dev/null; then
|
23
|
+
echo $f >> rb.good.txt
|
24
|
+
status=pass
|
25
|
+
else
|
26
|
+
echo $f >> rb.bad.txt
|
27
|
+
status=fail
|
28
|
+
fi
|
29
|
+
fname=`basename $f`
|
30
|
+
printf "%4d/%4d: %s %s\n" $curr_count $total_count $status $fname
|
31
|
+
done
|
metadata
ADDED
@@ -0,0 +1,111 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ParseTree
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 3.0.1
|
5
|
+
platform: x86-mingw32
|
6
|
+
authors:
|
7
|
+
- Ryan Davis
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2008-10-24 00:00:00 -03:00
|
13
|
+
default_executable:
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: RubyInline
|
17
|
+
type: :runtime
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 3.7.0
|
24
|
+
version:
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: sexp_processor
|
27
|
+
type: :runtime
|
28
|
+
version_requirement:
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 3.0.0
|
34
|
+
version:
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: hoe
|
37
|
+
type: :development
|
38
|
+
version_requirement:
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 1.8.2
|
44
|
+
version:
|
45
|
+
description: "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. As an example: def conditional1(arg1) if arg1 == 0 then return 1 end return 0 end becomes: [:defn, :conditional1, [:scope, [:block, [:args, :arg1], [:if, [:call, [:lvar, :arg1], :==, [:array, [:lit, 0]]], [:return, [:lit, 1]], nil], [:return, [:lit, 0]]]]]"
|
46
|
+
email:
|
47
|
+
- ryand-ruby@zenspider.com
|
48
|
+
executables:
|
49
|
+
- parse_tree_abc
|
50
|
+
- parse_tree_audit
|
51
|
+
- parse_tree_deps
|
52
|
+
- parse_tree_show
|
53
|
+
extensions: []
|
54
|
+
|
55
|
+
extra_rdoc_files:
|
56
|
+
- History.txt
|
57
|
+
- Manifest.txt
|
58
|
+
- README.txt
|
59
|
+
files:
|
60
|
+
- .autotest
|
61
|
+
- History.txt
|
62
|
+
- Manifest.txt
|
63
|
+
- README.txt
|
64
|
+
- Rakefile
|
65
|
+
- bin/parse_tree_abc
|
66
|
+
- bin/parse_tree_audit
|
67
|
+
- bin/parse_tree_deps
|
68
|
+
- bin/parse_tree_show
|
69
|
+
- demo/printer.rb
|
70
|
+
- lib/parse_tree.rb
|
71
|
+
- lib/parse_tree_extensions.rb
|
72
|
+
- lib/unified_ruby.rb
|
73
|
+
- lib/unique.rb
|
74
|
+
- test/pt_testcase.rb
|
75
|
+
- test/something.rb
|
76
|
+
- test/test_all.rb
|
77
|
+
- test/test_parse_tree.rb
|
78
|
+
- test/test_parse_tree_extensions.rb
|
79
|
+
- test/test_unified_ruby.rb
|
80
|
+
- validate.sh
|
81
|
+
- lib/inline/Inline_RawParseTree_fa12.so
|
82
|
+
has_rdoc: true
|
83
|
+
homepage: http://rubyforge.org/projects/parsetree/
|
84
|
+
post_install_message:
|
85
|
+
rdoc_options:
|
86
|
+
- --main
|
87
|
+
- README.txt
|
88
|
+
require_paths:
|
89
|
+
- lib
|
90
|
+
- test
|
91
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - ">="
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: "0"
|
96
|
+
version:
|
97
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
98
|
+
requirements:
|
99
|
+
- - ">="
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: "0"
|
102
|
+
version:
|
103
|
+
requirements: []
|
104
|
+
|
105
|
+
rubyforge_project: parsetree
|
106
|
+
rubygems_version: 1.3.0
|
107
|
+
signing_key:
|
108
|
+
specification_version: 2
|
109
|
+
summary: 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
|
110
|
+
test_files:
|
111
|
+
- test/test_all.rb
|