-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathruby_parsers.txt
23 lines (20 loc) · 926 Bytes
/
ruby_parsers.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Ruby Parsers:
- https://github.com/whitequark/parser
Pros: - Parses 1.8, 1.9, 2.0, 2.1, 2.2, 2.3, 2.4, 2.5 syntax
- Well maintained: frequent commits + sponsored by https://evilmartians.com/
- All needed info present after parsing (location, comments)
Cons: - In ruby => a bit of friction for java integration
- Need rubygems (parser, ast)
- JRuby
Pros: - Easy to integrate (simply add jruby dependency to pom)
- In java, so easy to get AST directly
- Well maintained and up-to-date
Cons: - No precise location information on nodes (only start line)
- No comment information
- JRubyParser
Pros: - Based on JRuby
- Provides location information
- Provides comment information
Cons: - Not well maintained anymore
- Last release on maven repo is from 2014
- Based on old version of JRuby (currently only support up to 2.3)