Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 65 lines (48 sloc) 2.235 kB
2749468 @zenspider Removed ruby_parser.rb from manifest and worked into package rule ins…
zenspider authored
1 ruby_parser
2 by Ryan Davis
3 http://parsetree.rubyforge.org/
afc6228 @zenspider MOSTLY DONE... importing now so I can track.
zenspider authored
4
5 == DESCRIPTION:
2749468 @zenspider Removed ruby_parser.rb from manifest and worked into package rule ins…
zenspider authored
6
7 ruby_parser (RP) is a ruby parser written in pure ruby (utilizing
8 racc--which does by default use a C extension). RP's output is
9 the same as ParseTree's output: s-expressions using ruby's arrays and
10 base types.
afc6228 @zenspider MOSTLY DONE... importing now so I can track.
zenspider authored
11
12 == FEATURES/PROBLEMS:
2749468 @zenspider Removed ruby_parser.rb from manifest and worked into package rule ins…
zenspider authored
13
14 * Pure ruby, no compiles.
15 * Incredibly simple interface.
16 * Output is 100% equivalent to ParseTree.
17 * Can utilize PT's SexpProcessor and UnifiedRuby for language processing.
18 * Known Issue: Speed sucks currently. 5500 tests currently run in 21 min.
19 * Known Issue: Code is waaay ugly. Port of a port. Not my fault. Will fix RSN.
20 * Known Issue: I don't currently support newline nodes.
21 * Known Issue: Totally awesome.
22 * Known Issue: dasgn_curr decls can be out of order from ParseTree's.
23 * TODO: Add comment nodes.
afc6228 @zenspider MOSTLY DONE... importing now so I can track.
zenspider authored
24
25 == SYNOPSIS:
26
2749468 @zenspider Removed ruby_parser.rb from manifest and worked into package rule ins…
zenspider authored
27 RubyParser.new.parse "1+1"
28 # => s(:call, s(:lit, 1), :+, s(:array, s(:lit, 1)))
afc6228 @zenspider MOSTLY DONE... importing now so I can track.
zenspider authored
29
30 == REQUIREMENTS:
31
2749468 @zenspider Removed ruby_parser.rb from manifest and worked into package rule ins…
zenspider authored
32 * ruby. woot.
33 * ParseTree is needed for Sexp class... crap. I might break that out.
34 * ParseTree for testing.
35 * racc full package for parser development.
afc6228 @zenspider MOSTLY DONE... importing now so I can track.
zenspider authored
36
37 == INSTALL:
38
2749468 @zenspider Removed ruby_parser.rb from manifest and worked into package rule ins…
zenspider authored
39 * sudo gem install ruby_parser
afc6228 @zenspider MOSTLY DONE... importing now so I can track.
zenspider authored
40
41 == LICENSE:
42
43 (The MIT License)
44
2749468 @zenspider Removed ruby_parser.rb from manifest and worked into package rule ins…
zenspider authored
45 Copyright (c) 2007 Ryan Davis
afc6228 @zenspider MOSTLY DONE... importing now so I can track.
zenspider authored
46
47 Permission is hereby granted, free of charge, to any person obtaining
48 a copy of this software and associated documentation files (the
49 'Software'), to deal in the Software without restriction, including
50 without limitation the rights to use, copy, modify, merge, publish,
51 distribute, sublicense, and/or sell copies of the Software, and to
52 permit persons to whom the Software is furnished to do so, subject to
53 the following conditions:
54
55 The above copyright notice and this permission notice shall be
56 included in all copies or substantial portions of the Software.
57
58 THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
59 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
60 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
61 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
62 CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
63 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
64 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Something went wrong with that request. Please try again.