rubylexer 0.7.3 → 0.7.4
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +16 -0
- data/Manifest.txt +3 -1
- data/README.txt +12 -19
- data/Rakefile +2 -2
- data/lib/rubylexer.rb +214 -86
- data/lib/rubylexer/context.rb +17 -6
- data/lib/rubylexer/lextable.rb +202 -0
- data/lib/rubylexer/rulexer.rb +61 -9
- data/lib/rubylexer/test/illegal_oneliners.rb +4 -0
- data/lib/rubylexer/test/stanzas.rb +2 -0
- data/lib/rubylexer/test/testcases.rb +6 -1
- data/lib/rubylexer/token.rb +4 -1
- data/lib/rubylexer/version.rb +1 -1
- data/test/code/regression.rb +1 -1
- data/test/code/rubylexervsruby.rb +23 -6
- data/test/data/1.rb +729 -0
- data/test/data/heart.rb +43 -2
- data/test/data/pleac.rb +6282 -0
- data/testing.txt +1 -1
- metadata +7 -4
data/testing.txt
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Running the tests:
|
2
2
|
The simplest thing to do is run "ruby -Ilib test/code/regression.rb". This
|
3
3
|
tests against a list of known ruby expressions. It will take several minutes
|
4
|
-
to run. Currently, there are
|
4
|
+
to run. Currently, there are 4 (minor) failures.
|
5
5
|
|
6
6
|
If you're ambitious, try this command: "ruby -Ilib test/code/locatetest.rb".
|
7
7
|
This will use locate to find as much ruby code on your system and test
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubylexer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Caleb Clausen
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: ""
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-05-22 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -30,7 +30,7 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.
|
33
|
+
version: 1.12.2
|
34
34
|
version:
|
35
35
|
description: RubyLexer is a lexer library for Ruby, written in Ruby. Rubylexer is meant as a lexer for Ruby that's complete and correct; all legal Ruby code should be lexed correctly by RubyLexer as well. Just enough parsing capability is included to give RubyLexer enough context to tokenize correctly in all cases. (This turned out to be more parsing than I had thought or wanted to take on at first.) RubyLexer handles the hard things like complicated strings, the ambiguous nature of some punctuation characters and keywords in ruby, and distinguishing methods and local variables.
|
36
36
|
email: rubylexer-owner @at@ inforadical .dot. net
|
@@ -62,6 +62,7 @@ files:
|
|
62
62
|
- lib/rubylexer/rulexer.rb
|
63
63
|
- lib/rubylexer/tokenprinter.rb
|
64
64
|
- lib/rubylexer/charset.rb
|
65
|
+
- lib/rubylexer/lextable.rb
|
65
66
|
- lib/rubylexer/symboltable.rb
|
66
67
|
- lib/rubylexer/charhandler.rb
|
67
68
|
- lib/assert.rb
|
@@ -90,11 +91,13 @@ files:
|
|
90
91
|
- test/data/lbrack.rb
|
91
92
|
- test/data/untitled1.rb
|
92
93
|
- test/data/rescue.rb
|
94
|
+
- test/data/pleac.rb
|
93
95
|
- test/data/pleac.rb.broken
|
94
96
|
- test/data/heart.rb
|
95
97
|
- test/data/s.rb
|
96
98
|
- test/data/wsdlDriver.rb
|
97
99
|
- test/data/p-op.rb
|
100
|
+
- test/data/1.rb
|
98
101
|
- test/data/1.rb.broken
|
99
102
|
- test/data/untermed_here.rb.broken
|
100
103
|
- test/data/newsyntax.rb
|
@@ -160,7 +163,7 @@ files:
|
|
160
163
|
- test/data/ws_strdelim.rb
|
161
164
|
- test/test.sh
|
162
165
|
has_rdoc: true
|
163
|
-
homepage: http://
|
166
|
+
homepage: http://github.com/coatl/rubylexer/
|
164
167
|
post_install_message:
|
165
168
|
rdoc_options:
|
166
169
|
- -x lib/rubylexer/test
|