rubylexer 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- data/COPYING +0 -0
- data/History.txt +16 -1
- data/Manifest.txt +0 -0
- data/README.txt +0 -0
- data/Rakefile +1 -1
- data/howtouse.txt +0 -0
- data/lib/assert.rb +0 -0
- data/lib/rubylexer.rb +156 -45
- data/lib/rubylexer/0.6.2.rb +0 -0
- data/lib/rubylexer/0.6.rb +0 -0
- data/lib/rubylexer/0.7.0.rb +0 -0
- data/lib/rubylexer/0.7.1.rb +0 -0
- data/lib/rubylexer/charhandler.rb +0 -0
- data/lib/rubylexer/charset.rb +0 -0
- data/lib/rubylexer/context.rb +6 -0
- data/lib/rubylexer/rubycode.rb +0 -0
- data/lib/rubylexer/rulexer.rb +3 -2
- data/lib/rubylexer/symboltable.rb +0 -0
- data/lib/rubylexer/token.rb +3 -3
- data/lib/rubylexer/tokenprinter.rb +0 -0
- data/lib/rubylexer/version.rb +1 -1
- data/rubylexer.vpj +39 -29
- data/test/code/all_the_gems.rb +0 -0
- data/test/code/all_the_raas.rb +0 -0
- data/test/code/all_the_rubies.rb +0 -0
- data/test/code/deletewarns.rb +0 -0
- data/test/code/dumptokens.rb +6 -2
- data/test/code/errscan +0 -0
- data/test/code/isolate_error.rb +0 -0
- data/test/code/lexloop +0 -0
- data/test/code/locatetest +0 -0
- data/test/code/locatetest.rb +0 -0
- data/test/code/regression.rb +0 -2
- data/test/code/rubylexervsruby.rb +0 -0
- data/test/code/strgen.rb +0 -0
- data/test/code/tarball.rb +0 -0
- data/test/code/testcases.rb +0 -0
- data/test/code/tokentest.rb +0 -0
- data/test/code/torment +0 -0
- data/test/data/1.rb.broken +0 -0
- data/test/data/23.rb +0 -0
- data/test/data/__end__.rb +0 -0
- data/test/data/__end__2.rb +0 -0
- data/test/data/__eof2.rb +0 -0
- data/test/data/__eof5.rb +0 -0
- data/test/data/__eof6.rb +0 -0
- data/test/data/and.rb +0 -0
- data/test/data/blockassigntest.rb +0 -0
- data/test/data/chunky.plain.rb +0 -0
- data/test/data/chunky_bacon.rb +0 -0
- data/test/data/chunky_bacon2.rb +0 -0
- data/test/data/chunky_bacon3.rb +0 -0
- data/test/data/chunky_bacon4.rb +0 -0
- data/test/data/cvtesc.rb +0 -0
- data/test/data/for.rb +0 -0
- data/test/data/format.rb +0 -0
- data/test/data/g.rb +0 -0
- data/test/data/hd0.rb +0 -0
- data/test/data/hdateof.rb +0 -0
- data/test/data/hdempty.rb +0 -0
- data/test/data/hdr.rb +0 -0
- data/test/data/hdr_dos.rb +0 -0
- data/test/data/hdr_dos2.rb +0 -0
- data/test/data/heart.rb +0 -0
- data/test/data/here_escnl.rb +0 -0
- data/test/data/here_escnl_dos.rb +0 -0
- data/test/data/here_squote.rb +0 -0
- data/test/data/heremonsters.rb +0 -0
- data/test/data/heremonsters.rb.broken +0 -0
- data/test/data/heremonsters.rb.broken.save +0 -0
- data/test/data/heremonsters_dos.rb +0 -0
- data/test/data/heremonsters_dos.rb.broken +0 -0
- data/test/data/if.rb +0 -0
- data/test/data/jarh.rb +0 -0
- data/test/data/lbrace.rb +0 -0
- data/test/data/lbrack.rb +0 -0
- data/test/data/make_ws_strdelim.rb +0 -0
- data/test/data/maven2_builer_test.rb +0 -0
- data/test/data/migration.rb +0 -0
- data/test/data/modl.rb +0 -0
- data/test/data/modl_dos.rb +0 -0
- data/test/data/modl_fails.rb +0 -0
- data/test/data/multilinestring.rb +0 -0
- data/test/data/newsyntax.rb +0 -0
- data/test/data/noeolatend.rb +0 -0
- data/test/data/oneliners.rb +1 -1
- data/test/data/p-op.rb +0 -0
- data/test/data/p.rb +0 -0
- data/test/data/pleac.rb.broken +0 -0
- data/test/data/pre.rb +0 -0
- data/test/data/pre.unix.rb +0 -0
- data/test/data/regtest.rb +0 -0
- data/test/data/rescue.rb +0 -0
- data/test/data/s.rb +0 -0
- data/test/data/simple.rb +0 -0
- data/test/data/simple_dos.rb +0 -0
- data/test/data/stanzas.rb +0 -0
- data/test/data/strdelim_crlf.rb +0 -0
- data/test/data/strinc.rb +0 -0
- data/test/data/stuff.rb +0 -0
- data/test/data/stuff2.rb +0 -0
- data/test/data/stuff3.rb +0 -0
- data/test/data/tkweird.rb +0 -0
- data/test/data/tokentest.assert.rb.can +0 -0
- data/test/data/unending_stuff.rb +0 -0
- data/test/data/untermed_here.rb.broken +0 -0
- data/test/data/untermed_string.rb.broken +0 -0
- data/test/data/untitled1.rb +0 -0
- data/test/data/w.rb +0 -0
- data/test/data/whatnot.rb +0 -0
- data/test/data/ws_strdelim.rb +0 -0
- data/test/data/wsdlDriver.rb +0 -0
- data/test/test.sh +0 -0
- data/testing.txt +0 -0
- metadata +64 -149
data/lib/rubylexer/0.6.2.rb
CHANGED
File without changes
|
data/lib/rubylexer/0.6.rb
CHANGED
File without changes
|
data/lib/rubylexer/0.7.0.rb
CHANGED
File without changes
|
data/lib/rubylexer/0.7.1.rb
CHANGED
File without changes
|
File without changes
|
data/lib/rubylexer/charset.rb
CHANGED
File without changes
|
data/lib/rubylexer/context.rb
CHANGED
@@ -272,6 +272,12 @@ module NestedContexts
|
|
272
272
|
class ExpectDoOrNlContext < NestedContext
|
273
273
|
end
|
274
274
|
|
275
|
+
class ExpectThenOrNlContext < NestedContext
|
276
|
+
def initialize starter, linenum
|
277
|
+
super starter, "then", linenum
|
278
|
+
end
|
279
|
+
end
|
280
|
+
|
275
281
|
class TernaryContext < NestedContext
|
276
282
|
def initialize(linenum)
|
277
283
|
dflt_initialize('?',':',linenum)
|
data/lib/rubylexer/rubycode.rb
CHANGED
File without changes
|
data/lib/rubylexer/rulexer.rb
CHANGED
@@ -255,7 +255,7 @@ if FASTER_STRING_ESCAPES
|
|
255
255
|
special=/\\./m
|
256
256
|
else
|
257
257
|
crunch=/#(?=[^{$@])/
|
258
|
-
escaped=/\\([^xcCM0-7]|(c|[CM].)([^\\]|(?=\\))|x.[0-9a-fA-F]
|
258
|
+
escaped=/\\(?>[^xcCM0-7]|(?>c|[CM].)(?>[^\\]|(?=\\))|(?>x.[0-9a-fA-F]?)|(?>[0-7]{1,3}))/m
|
259
259
|
special=
|
260
260
|
case delimiter
|
261
261
|
when '\\': crunch
|
@@ -265,7 +265,7 @@ if FASTER_STRING_ESCAPES
|
|
265
265
|
special_char<< maybe_crunch="#"
|
266
266
|
end
|
267
267
|
normal="[^#{Regexp.quote '\\'+special_char}]"
|
268
|
-
interior=INTERIOR_REX_CACHE[special_char]
|
268
|
+
interior=INTERIOR_REX_CACHE[special_char]||=/(?>#{normal}*)(?>((?>#{special}+)(?>#{normal}*))*)/
|
269
269
|
|
270
270
|
#backslash is just scanned thru, not interpreted
|
271
271
|
#... that will change token format
|
@@ -651,6 +651,7 @@ end
|
|
651
651
|
klass= RubyLexer===self ? self.class : RubyLexer
|
652
652
|
rl=klass.new(@filename,@file,@linenum,offset_adjust())
|
653
653
|
rl.extend RecursiveRubyLexer
|
654
|
+
rl.enable_macros! if @enable_macro
|
654
655
|
# rl.offset_adjust_set! offset_adjust()
|
655
656
|
assert offset_adjust()==rl.offset_adjust()
|
656
657
|
|
File without changes
|
data/lib/rubylexer/token.rb
CHANGED
@@ -73,7 +73,6 @@ class KeywordToken < WToken #also some operators
|
|
73
73
|
|
74
74
|
#-----------------------------------
|
75
75
|
def has_end!
|
76
|
-
assert self===RubyLexer::BEGINWORDS
|
77
76
|
@has_end=true
|
78
77
|
end
|
79
78
|
|
@@ -82,7 +81,7 @@ class KeywordToken < WToken #also some operators
|
|
82
81
|
self===RubyLexer::BEGINWORDS and @has_end||=nil
|
83
82
|
end
|
84
83
|
|
85
|
-
attr_accessor :comma_type
|
84
|
+
attr_accessor :comma_type, :ternary
|
86
85
|
|
87
86
|
def has_no_block!
|
88
87
|
@has_no_block=true
|
@@ -537,9 +536,10 @@ class KwParamListEndToken < ZwToken
|
|
537
536
|
end
|
538
537
|
|
539
538
|
#-------------------------
|
540
|
-
class
|
539
|
+
class EndHeaderToken < ZwToken
|
541
540
|
def as; ";" end
|
542
541
|
end
|
542
|
+
EndDefHeaderToken=EndHeaderToken
|
543
543
|
|
544
544
|
#-------------------------
|
545
545
|
class EscNlToken < IgnoreToken
|
File without changes
|
data/lib/rubylexer/version.rb
CHANGED
data/rubylexer.vpj
CHANGED
@@ -48,37 +48,10 @@
|
|
48
48
|
</Target>
|
49
49
|
</Menu>
|
50
50
|
</Config>
|
51
|
-
<
|
51
|
+
<CustomFolders>
|
52
52
|
<Folder
|
53
53
|
Name="Source Files"
|
54
54
|
Filters="*.c;*.C;*.cc;*.cpp;*.cp;*.cxx;*.prg;*.pas;*.dpr;*.asm;*.s;*.bas;*.java;*.cs;*.sc;*.e;*.cob;*.html;*.rc;*.tcl;*.py;*.pl;*.rb">
|
55
|
-
<F N="lib/rubylexer/0.6.2.rb"/>
|
56
|
-
<F N="lib/rubylexer/0.6.rb"/>
|
57
|
-
<F N="lib/rubylexer/0.7.0.rb"/>
|
58
|
-
<F N="lib/rubylexer/0.7.1.rb"/>
|
59
|
-
<F N="test/code/all_the_gems.rb"/>
|
60
|
-
<F N="test/code/all_the_raas.rb"/>
|
61
|
-
<F N="test/code/all_the_rubies.rb"/>
|
62
|
-
<F N="lib/assert.rb"/>
|
63
|
-
<F N="lib/rubylexer/charhandler.rb"/>
|
64
|
-
<F N="lib/rubylexer/charset.rb"/>
|
65
|
-
<F N="lib/rubylexer/context.rb"/>
|
66
|
-
<F N="test/code/deletewarns.rb"/>
|
67
|
-
<F N="test/code/dumptokens.rb"/>
|
68
|
-
<F N="test/code/isolate_error.rb"/>
|
69
|
-
<F N="test/code/locatetest.rb"/>
|
70
|
-
<F N="test/code/regression.rb"/>
|
71
|
-
<F N="lib/rubylexer/rubycode.rb"/>
|
72
|
-
<F N="lib/rubylexer.rb"/>
|
73
|
-
<F N="test/code/rubylexervsruby.rb"/>
|
74
|
-
<F N="lib/rubylexer/rulexer.rb"/>
|
75
|
-
<F N="lib/rubylexer/symboltable.rb"/>
|
76
|
-
<F N="test/code/tarball.rb"/>
|
77
|
-
<F N="test/code/testcases.rb"/>
|
78
|
-
<F N="lib/rubylexer/token.rb"/>
|
79
|
-
<F N="lib/rubylexer/tokenprinter.rb"/>
|
80
|
-
<F N="test/code/tokentest.rb"/>
|
81
|
-
<F N="lib/rubylexer/version.rb"/>
|
82
55
|
</Folder>
|
83
56
|
<Folder
|
84
57
|
Name="Header Files"
|
@@ -92,7 +65,44 @@
|
|
92
65
|
<Folder
|
93
66
|
Name="Other Files"
|
94
67
|
Filters="">
|
95
|
-
<F N="testing.txt"/>
|
96
68
|
</Folder>
|
69
|
+
</CustomFolders>
|
70
|
+
<Files AutoFolders="DirectoryView">
|
71
|
+
<Folder Name="lib">
|
72
|
+
<Folder Name="rubylexer">
|
73
|
+
<F N="lib/rubylexer/0.6.2.rb"/>
|
74
|
+
<F N="lib/rubylexer/0.6.rb"/>
|
75
|
+
<F N="lib/rubylexer/0.7.0.rb"/>
|
76
|
+
<F N="lib/rubylexer/0.7.1.rb"/>
|
77
|
+
<F N="lib/rubylexer/charhandler.rb"/>
|
78
|
+
<F N="lib/rubylexer/charset.rb"/>
|
79
|
+
<F N="lib/rubylexer/context.rb"/>
|
80
|
+
<F N="lib/rubylexer/rubycode.rb"/>
|
81
|
+
<F N="lib/rubylexer/rulexer.rb"/>
|
82
|
+
<F N="lib/rubylexer/symboltable.rb"/>
|
83
|
+
<F N="lib/rubylexer/token.rb"/>
|
84
|
+
<F N="lib/rubylexer/tokenprinter.rb"/>
|
85
|
+
<F N="lib/rubylexer/version.rb"/>
|
86
|
+
</Folder>
|
87
|
+
<F N="lib/assert.rb"/>
|
88
|
+
<F N="lib/rubylexer.rb"/>
|
89
|
+
</Folder>
|
90
|
+
<Folder Name="test">
|
91
|
+
<Folder Name="code">
|
92
|
+
<F N="test/code/all_the_gems.rb"/>
|
93
|
+
<F N="test/code/all_the_raas.rb"/>
|
94
|
+
<F N="test/code/all_the_rubies.rb"/>
|
95
|
+
<F N="test/code/deletewarns.rb"/>
|
96
|
+
<F N="test/code/dumptokens.rb"/>
|
97
|
+
<F N="test/code/isolate_error.rb"/>
|
98
|
+
<F N="test/code/locatetest.rb"/>
|
99
|
+
<F N="test/code/regression.rb"/>
|
100
|
+
<F N="test/code/rubylexervsruby.rb"/>
|
101
|
+
<F N="test/code/tarball.rb"/>
|
102
|
+
<F N="test/code/testcases.rb"/>
|
103
|
+
<F N="test/code/tokentest.rb"/>
|
104
|
+
</Folder>
|
105
|
+
</Folder>
|
106
|
+
<F N="testing.txt"/>
|
97
107
|
</Files>
|
98
108
|
</Project>
|
data/test/code/all_the_gems.rb
CHANGED
File without changes
|
data/test/code/all_the_raas.rb
CHANGED
File without changes
|
data/test/code/all_the_rubies.rb
CHANGED
File without changes
|
data/test/code/deletewarns.rb
CHANGED
File without changes
|
data/test/code/dumptokens.rb
CHANGED
@@ -35,12 +35,13 @@ class Token
|
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
38
|
-
silent=file=nil
|
38
|
+
macros=silent=file=nil
|
39
39
|
|
40
40
|
#allow -e
|
41
41
|
opts=GetoptLong.new(
|
42
42
|
["--eval", "-e", GetoptLong::REQUIRED_ARGUMENT],
|
43
|
-
["--silent", "-s", GetoptLong::NO_ARGUMENT]
|
43
|
+
["--silent", "-s", GetoptLong::NO_ARGUMENT],
|
44
|
+
["--macro", "-m", GetoptLong::NO_ARGUMENT]
|
44
45
|
)
|
45
46
|
opts.each{|opt,arg|
|
46
47
|
case opt
|
@@ -49,6 +50,8 @@ opts.each{|opt,arg|
|
|
49
50
|
name='-e'
|
50
51
|
when '--silent'
|
51
52
|
silent=true
|
53
|
+
when '--macro'
|
54
|
+
macros=true
|
52
55
|
end
|
53
56
|
}
|
54
57
|
|
@@ -61,6 +64,7 @@ file||=if name=ARGV.first
|
|
61
64
|
end
|
62
65
|
|
63
66
|
lexer=RubyLexer.new(name, file)
|
67
|
+
lexer.enable_macros! if macros
|
64
68
|
if silent
|
65
69
|
until RubyLexer::EoiToken===(tok=lexer.get1token)
|
66
70
|
end
|
data/test/code/errscan
CHANGED
File without changes
|
data/test/code/isolate_error.rb
CHANGED
File without changes
|
data/test/code/lexloop
CHANGED
File without changes
|
data/test/code/locatetest
CHANGED
File without changes
|
data/test/code/locatetest.rb
CHANGED
File without changes
|
data/test/code/regression.rb
CHANGED
@@ -52,7 +52,6 @@ class<<RubyLexerVsRuby
|
|
52
52
|
=end
|
53
53
|
end
|
54
54
|
|
55
|
-
if __FILE__==$0
|
56
55
|
require 'test/unit'
|
57
56
|
|
58
57
|
class LexerTests<Test::Unit::TestCase
|
@@ -106,4 +105,3 @@ if __FILE__==$0
|
|
106
105
|
# puts test_code+illegal_test_code
|
107
106
|
eval test_code+illegal_test_code
|
108
107
|
end
|
109
|
-
end
|
File without changes
|
data/test/code/strgen.rb
CHANGED
File without changes
|
data/test/code/tarball.rb
CHANGED
File without changes
|
data/test/code/testcases.rb
CHANGED
File without changes
|
data/test/code/tokentest.rb
CHANGED
File without changes
|
data/test/code/torment
CHANGED
File without changes
|
data/test/data/1.rb.broken
CHANGED
File without changes
|
data/test/data/23.rb
CHANGED
File without changes
|
data/test/data/__end__.rb
CHANGED
File without changes
|
data/test/data/__end__2.rb
CHANGED
File without changes
|
data/test/data/__eof2.rb
CHANGED
File without changes
|
data/test/data/__eof5.rb
CHANGED
File without changes
|
data/test/data/__eof6.rb
CHANGED
File without changes
|
data/test/data/and.rb
CHANGED
File without changes
|
File without changes
|
data/test/data/chunky.plain.rb
CHANGED
File without changes
|
data/test/data/chunky_bacon.rb
CHANGED
File without changes
|
data/test/data/chunky_bacon2.rb
CHANGED
File without changes
|
data/test/data/chunky_bacon3.rb
CHANGED
File without changes
|
data/test/data/chunky_bacon4.rb
CHANGED
File without changes
|
data/test/data/cvtesc.rb
CHANGED
File without changes
|
data/test/data/for.rb
CHANGED
File without changes
|
data/test/data/format.rb
CHANGED
File without changes
|
data/test/data/g.rb
CHANGED
File without changes
|
data/test/data/hd0.rb
CHANGED
File without changes
|
data/test/data/hdateof.rb
CHANGED
File without changes
|
data/test/data/hdempty.rb
CHANGED
File without changes
|
data/test/data/hdr.rb
CHANGED
File without changes
|
data/test/data/hdr_dos.rb
CHANGED
File without changes
|
data/test/data/hdr_dos2.rb
CHANGED
File without changes
|
data/test/data/heart.rb
CHANGED
File without changes
|
data/test/data/here_escnl.rb
CHANGED
File without changes
|
data/test/data/here_escnl_dos.rb
CHANGED
File without changes
|
data/test/data/here_squote.rb
CHANGED
File without changes
|
data/test/data/heremonsters.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/test/data/if.rb
CHANGED
File without changes
|
data/test/data/jarh.rb
CHANGED
File without changes
|
data/test/data/lbrace.rb
CHANGED
File without changes
|
data/test/data/lbrack.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
data/test/data/migration.rb
CHANGED
File without changes
|
data/test/data/modl.rb
CHANGED
File without changes
|
data/test/data/modl_dos.rb
CHANGED
File without changes
|
data/test/data/modl_fails.rb
CHANGED
File without changes
|
File without changes
|
data/test/data/newsyntax.rb
CHANGED
File without changes
|
data/test/data/noeolatend.rb
CHANGED
File without changes
|
data/test/data/oneliners.rb
CHANGED
data/test/data/p-op.rb
CHANGED
File without changes
|
data/test/data/p.rb
CHANGED
File without changes
|
data/test/data/pleac.rb.broken
CHANGED
File without changes
|
data/test/data/pre.rb
CHANGED
File without changes
|
data/test/data/pre.unix.rb
CHANGED
File without changes
|
data/test/data/regtest.rb
CHANGED
File without changes
|
data/test/data/rescue.rb
CHANGED
File without changes
|
data/test/data/s.rb
CHANGED
File without changes
|
data/test/data/simple.rb
CHANGED
File without changes
|
data/test/data/simple_dos.rb
CHANGED
File without changes
|
data/test/data/stanzas.rb
CHANGED
File without changes
|
data/test/data/strdelim_crlf.rb
CHANGED
File without changes
|
data/test/data/strinc.rb
CHANGED
File without changes
|
data/test/data/stuff.rb
CHANGED
File without changes
|
data/test/data/stuff2.rb
CHANGED
File without changes
|
data/test/data/stuff3.rb
CHANGED
File without changes
|
data/test/data/tkweird.rb
CHANGED
File without changes
|
File without changes
|
data/test/data/unending_stuff.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
data/test/data/untitled1.rb
CHANGED
File without changes
|
data/test/data/w.rb
CHANGED
File without changes
|
data/test/data/whatnot.rb
CHANGED
File without changes
|
data/test/data/ws_strdelim.rb
CHANGED
File without changes
|
data/test/data/wsdlDriver.rb
CHANGED
File without changes
|
data/test/test.sh
CHANGED
File without changes
|
data/testing.txt
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,33 +1,49 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.9.4
|
3
|
-
specification_version: 1
|
4
2
|
name: rubylexer
|
5
3
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.7.
|
7
|
-
date: 2008-09-05 00:00:00 +01:00
|
8
|
-
summary: RubyLexer is a lexer library for Ruby, written in Ruby.
|
9
|
-
require_paths:
|
10
|
-
- lib
|
11
|
-
email: rubylexer-owner @at@ inforadical .dot. net
|
12
|
-
homepage: http://rubylexer.rubyforge.org/
|
13
|
-
rubyforge_project: rubylexer
|
14
|
-
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.
|
15
|
-
autorequire:
|
16
|
-
default_executable:
|
17
|
-
bindir: ""
|
18
|
-
has_rdoc: true
|
19
|
-
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
|
-
requirements:
|
21
|
-
- - ">"
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version: 0.0.0
|
24
|
-
version:
|
4
|
+
version: 0.7.2
|
25
5
|
platform: ruby
|
26
|
-
signing_key:
|
27
|
-
cert_chain:
|
28
|
-
post_install_message:
|
29
6
|
authors:
|
30
7
|
- Caleb Clausen
|
8
|
+
autorequire:
|
9
|
+
bindir: ""
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2008-10-13 00:00:00 +01:00
|
13
|
+
default_executable:
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: sequence
|
17
|
+
type: :runtime
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 0.2.0
|
24
|
+
version:
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: hoe
|
27
|
+
type: :development
|
28
|
+
version_requirement:
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 1.8.0
|
34
|
+
version:
|
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
|
+
email: rubylexer-owner @at@ inforadical .dot. net
|
37
|
+
executables: []
|
38
|
+
|
39
|
+
extensions: []
|
40
|
+
|
41
|
+
extra_rdoc_files:
|
42
|
+
- README.txt
|
43
|
+
- Manifest.txt
|
44
|
+
- howtouse.txt
|
45
|
+
- History.txt
|
46
|
+
- testing.txt
|
31
47
|
files:
|
32
48
|
- COPYING
|
33
49
|
- README.txt
|
@@ -146,133 +162,32 @@ files:
|
|
146
162
|
- test/data/whatnot.rb
|
147
163
|
- test/data/ws_strdelim.rb
|
148
164
|
- test/test.sh
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
- test/code/tarball.rb
|
153
|
-
- test/code/testcases.rb
|
154
|
-
- test/code/locatetest.rb
|
155
|
-
- test/code/CVS
|
156
|
-
- test/code/all_the_rubies.rb
|
157
|
-
- test/code/rubylexervsruby.rb
|
158
|
-
- test/code/strgen.rb
|
159
|
-
- test/code/lexloop
|
160
|
-
- test/code/tokentest.rb
|
161
|
-
- test/code/errscan
|
162
|
-
- test/code/dumptokens.rb
|
163
|
-
- test/code/all_the_raas.rb
|
164
|
-
- test/code/torment
|
165
|
-
- test/code/locatetest
|
166
|
-
- test/code/deletewarns.rb
|
167
|
-
- test/code/all_the_gems.rb
|
168
|
-
- test/data/here_escnl.rb
|
169
|
-
- test/data/migration.rb
|
170
|
-
- test/data/tkweird.rb
|
171
|
-
- test/data/heremonsters.rb
|
172
|
-
- test/data/make_ws_strdelim.rb
|
173
|
-
- test/data/heremonsters_dos.rb.broken
|
174
|
-
- test/data/blockassigntest.rb
|
175
|
-
- test/data/for.rb
|
176
|
-
- test/data/__eof6.rb
|
177
|
-
- test/data/multilinestring.rb
|
178
|
-
- test/data/chunky_bacon.rb
|
179
|
-
- test/data/and.rb
|
180
|
-
- test/data/oneliners.rb
|
181
|
-
- test/data/here_squote.rb
|
182
|
-
- test/data/pre.unix.rb
|
183
|
-
- test/data/hd0.rb
|
184
|
-
- test/data/modl.rb
|
185
|
-
- test/data/untermed_string.rb.broken
|
186
|
-
- test/data/__end__2.rb
|
187
|
-
- test/data/w.rb
|
188
|
-
- test/data/stuff3.rb
|
189
|
-
- test/data/if.rb
|
190
|
-
- test/data/heremonsters_dos.rb
|
191
|
-
- test/data/whatnot.rb
|
192
|
-
- test/data/pre.rb
|
193
|
-
- test/data/jarh.rb
|
194
|
-
- test/data/regtest.rb
|
195
|
-
- test/data/hdr.rb
|
196
|
-
- test/data/chunky_bacon4.rb
|
197
|
-
- test/data/__end__.rb
|
198
|
-
- test/data/stanzas.rb
|
199
|
-
- test/data/modl_fails.rb
|
200
|
-
- test/data/stuff4.rb
|
201
|
-
- test/data/strinc.rb
|
202
|
-
- test/data/lbrace.rb
|
203
|
-
- test/data/stuff.rb
|
204
|
-
- test/data/p.rb
|
205
|
-
- test/data/chunky.plain.rb
|
206
|
-
- test/data/noeolatend.rb
|
207
|
-
- test/data/__eof5.rb
|
208
|
-
- test/data/g.rb
|
209
|
-
- test/data/23.rb
|
210
|
-
- test/data/illegal_stanzas.rb
|
211
|
-
- test/data/here_escnl_dos.rb
|
212
|
-
- test/data/lbrack.rb
|
213
|
-
- test/data/ws_strdelim.rb
|
214
|
-
- test/data/untitled1.rb
|
215
|
-
- test/data/rescue.rb
|
216
|
-
- test/data/unending_stuff.rb
|
217
|
-
- test/data/tokentest.assert.rb.can
|
218
|
-
- test/data/maven2_builer_test.rb
|
219
|
-
- test/data/simple.rb
|
220
|
-
- test/data/heremonsters.rb.broken.save
|
221
|
-
- test/data/modl_dos.rb
|
222
|
-
- test/data/pleac.rb.broken
|
223
|
-
- test/data/heart.rb
|
224
|
-
- test/data/s.rb
|
225
|
-
- test/data/__eof2.rb
|
226
|
-
- test/data/hdr_dos2.rb
|
227
|
-
- test/data/wsdlDriver.rb
|
228
|
-
- test/data/cvtesc.rb
|
229
|
-
- test/data/heremonsters.rb.broken
|
230
|
-
- test/data/p-op.rb
|
231
|
-
- test/data/illegal_oneliners.rb
|
232
|
-
- test/data/hdempty.rb
|
233
|
-
- test/data/hdr_dos.rb
|
234
|
-
- test/data/1.rb.broken
|
235
|
-
- test/data/untermed_here.rb.broken
|
236
|
-
- test/data/newsyntax.rb
|
237
|
-
- test/data/stuff2.rb
|
238
|
-
- test/data/chunky_bacon3.rb
|
239
|
-
- test/data/chunky_bacon2.rb
|
240
|
-
- test/data/strdelim_crlf.rb
|
241
|
-
- test/data/simple_dos.rb
|
242
|
-
- test/data/hdateof.rb
|
243
|
-
- test/data/format.rb
|
244
|
-
- test/results/
|
165
|
+
has_rdoc: true
|
166
|
+
homepage: http://rubylexer.rubyforge.org/
|
167
|
+
post_install_message:
|
245
168
|
rdoc_options:
|
246
169
|
- --main
|
247
170
|
- README.txt
|
248
|
-
|
249
|
-
-
|
250
|
-
|
251
|
-
|
252
|
-
-
|
253
|
-
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
171
|
+
require_paths:
|
172
|
+
- lib
|
173
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
174
|
+
requirements:
|
175
|
+
- - ">="
|
176
|
+
- !ruby/object:Gem::Version
|
177
|
+
version: "0"
|
178
|
+
version:
|
179
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
180
|
+
requirements:
|
181
|
+
- - ">="
|
182
|
+
- !ruby/object:Gem::Version
|
183
|
+
version: "0"
|
184
|
+
version:
|
258
185
|
requirements: []
|
259
186
|
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
- !ruby/object:Gem::Version
|
268
|
-
version: 0.2.0
|
269
|
-
version:
|
270
|
-
- !ruby/object:Gem::Dependency
|
271
|
-
name: hoe
|
272
|
-
version_requirement:
|
273
|
-
version_requirements: !ruby/object:Gem::Version::Requirement
|
274
|
-
requirements:
|
275
|
-
- - ">="
|
276
|
-
- !ruby/object:Gem::Version
|
277
|
-
version: 1.5.1
|
278
|
-
version:
|
187
|
+
rubyforge_project: rubylexer
|
188
|
+
rubygems_version: 1.3.0
|
189
|
+
signing_key:
|
190
|
+
specification_version: 2
|
191
|
+
summary: RubyLexer is a lexer library for Ruby, written in Ruby.
|
192
|
+
test_files:
|
193
|
+
- test/code/regression.rb
|