ruby_parser 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of ruby_parser might be problematic. Click here for more details.
- data/.autotest +21 -0
- data/History.txt +5 -0
- data/Manifest.txt +9 -0
- data/README.txt +64 -0
- data/Rakefile +56 -0
- data/lib/ruby_lexer.rb +2751 -0
- data/lib/ruby_parser.rb +5987 -0
- data/lib/ruby_parser.y +1648 -0
- data/test/test_ruby_lexer.rb +398 -0
- data/test/test_ruby_parser.rb +326 -0
- metadata +83 -0
metadata
ADDED
@@ -0,0 +1,83 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ruby_parser
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Ryan Davis
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2007-12-22 00:00:00 -08:00
|
13
|
+
default_executable:
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: ParseTree
|
17
|
+
version_requirement:
|
18
|
+
version_requirements: !ruby/object:Gem::Requirement
|
19
|
+
requirements:
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: "0"
|
23
|
+
version:
|
24
|
+
- !ruby/object:Gem::Dependency
|
25
|
+
name: hoe
|
26
|
+
version_requirement:
|
27
|
+
version_requirements: !ruby/object:Gem::Requirement
|
28
|
+
requirements:
|
29
|
+
- - ">="
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
version: 1.4.0
|
32
|
+
version:
|
33
|
+
description: "ruby_parser (RP) is a ruby parser written in pure ruby (utilizing racc--which does by default use a C extension). RP's output is the same as ParseTree's output: s-expressions using ruby's arrays and base types. == FEATURES/PROBLEMS: * Pure ruby, no compiles. * Incredibly simple interface. * Output is 100% equivalent to ParseTree. * Can utilize PT's SexpProcessor and UnifiedRuby for language processing. * Known Issue: Speed sucks currently. 5500 tests currently run in 21 min. * Known Issue: Code is waaay ugly. Port of a port. Not my fault. Will fix RSN. * Known Issue: I don't currently support newline nodes. * Known Issue: Totally awesome. * Known Issue: dasgn_curr decls can be out of order from ParseTree's. * TODO: Add comment nodes. == SYNOPSIS: RubyParser.new.parse \"1+1\" # => s(:call, s(:lit, 1), :+, s(:array, s(:lit, 1)))"
|
34
|
+
email: ryand-ruby@zenspider.com
|
35
|
+
executables: []
|
36
|
+
|
37
|
+
extensions: []
|
38
|
+
|
39
|
+
extra_rdoc_files:
|
40
|
+
- History.txt
|
41
|
+
- Manifest.txt
|
42
|
+
- README.txt
|
43
|
+
files:
|
44
|
+
- .autotest
|
45
|
+
- History.txt
|
46
|
+
- Manifest.txt
|
47
|
+
- README.txt
|
48
|
+
- Rakefile
|
49
|
+
- lib/ruby_lexer.rb
|
50
|
+
- lib/ruby_parser.y
|
51
|
+
- test/test_ruby_lexer.rb
|
52
|
+
- test/test_ruby_parser.rb
|
53
|
+
- lib/ruby_parser.rb
|
54
|
+
has_rdoc: true
|
55
|
+
homepage: " http://parsetree.rubyforge.org/"
|
56
|
+
post_install_message:
|
57
|
+
rdoc_options:
|
58
|
+
- --main
|
59
|
+
- README.txt
|
60
|
+
require_paths:
|
61
|
+
- lib
|
62
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
63
|
+
requirements:
|
64
|
+
- - ">="
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: "0"
|
67
|
+
version:
|
68
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
69
|
+
requirements:
|
70
|
+
- - ">="
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: "0"
|
73
|
+
version:
|
74
|
+
requirements: []
|
75
|
+
|
76
|
+
rubyforge_project: parsetree
|
77
|
+
rubygems_version: 1.0.1
|
78
|
+
signing_key:
|
79
|
+
specification_version: 2
|
80
|
+
summary: "ruby_parser (RP) is a ruby parser written in pure ruby (utilizing racc--which does by default use a C extension). RP's output is the same as ParseTree's output: s-expressions using ruby's arrays and base types."
|
81
|
+
test_files:
|
82
|
+
- test/test_ruby_lexer.rb
|
83
|
+
- test/test_ruby_parser.rb
|