antlr3 1.2.3 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/antlr4ruby +5 -14
- data/lib/antlr3/version.rb +1 -1
- metadata +2 -2
data/bin/antlr4ruby
CHANGED
@@ -3,20 +3,11 @@
|
|
3
3
|
|
4
4
|
__DIR__ = File.expand_path( File.dirname __FILE__ )
|
5
5
|
project_top = File.dirname __DIR__
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
jar_path = File.join( project_top, 'java', jar_name )
|
10
|
-
|
11
|
-
unless File.exist?( jar_path )
|
12
|
-
$stderr.puts(<<-END.strip!.gsub!(/\s+/, ' '))
|
13
|
-
the ANTLR #{ ANTLR_VERSION_STRING } jar is expected
|
14
|
-
to be located at #{ jar_path }, but it does not
|
15
|
-
appear to exist.
|
16
|
-
END
|
17
|
-
exit( 1 )
|
18
|
-
end
|
6
|
+
lib = File.join( project_top, 'lib' )
|
7
|
+
$:.unshift( lib )
|
8
|
+
require 'antlr3'
|
19
9
|
|
10
|
+
jar = ANTLR3.antlr_jar or fail( "cannot find antlr4ruby's customized ANTLR jar" )
|
20
11
|
escape = proc do | a |
|
21
12
|
if a.empty? then "''"
|
22
13
|
else
|
@@ -25,7 +16,7 @@ escape = proc do | a |
|
|
25
16
|
end
|
26
17
|
end
|
27
18
|
|
28
|
-
command = %w(java -jar) << escape[
|
19
|
+
command = %w(java -jar) << escape[ jar ]
|
29
20
|
for arg in ARGV
|
30
21
|
command << escape[ arg ]
|
31
22
|
end
|
data/lib/antlr3/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: antlr3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kyle Yetter
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-12-
|
12
|
+
date: 2009-12-25 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|