aaronp-frex 1.0.0 → 1.0.1
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/Manifest.txt +1 -0
- data/frex.gemspec +31 -0
- data/lib/frex/generator.rb +3 -3
- data/lib/frex/info.rb +1 -1
- metadata +2 -1
data/Manifest.txt
CHANGED
data/frex.gemspec
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
Gem::Specification.new do |s|
|
2
|
+
s.name = %q{frex}
|
3
|
+
s.version = "1.0.1"
|
4
|
+
|
5
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
6
|
+
s.authors = ["Aaron Patterson"]
|
7
|
+
s.date = %q{2008-07-23}
|
8
|
+
s.default_executable = %q{frex}
|
9
|
+
s.description = %q{Frex is a fork of Rex. Rex is a lexical scanner generator. It is written in Ruby itself, and generates Ruby program. It is designed for use with Racc.}
|
10
|
+
s.email = ["aaronp@rubyforge.org"]
|
11
|
+
s.executables = ["frex"]
|
12
|
+
s.extra_rdoc_files = ["Manifest.txt"]
|
13
|
+
s.files = ["CHANGELOG.rdoc", "DOCUMENTATION.en.rdoc", "DOCUMENTATION.ja.rdoc", "Manifest.txt", "README.ja", "README.rdoc", "Rakefile", "bin/frex", "frex.gemspec", "lib/frex.rb", "lib/frex/generator.rb", "lib/frex/info.rb", "lib/frex/rexcmd.rb", "sample/a.cmd", "sample/b.cmd", "sample/c.cmd", "sample/calc3.racc", "sample/calc3.rex", "sample/calc3.rex.rb", "sample/calc3.tab.rb", "sample/error1.rex", "sample/error2.rex", "sample/sample.html", "sample/sample.rex", "sample/sample.rex.rb", "sample/sample.xhtml", "sample/sample1.c", "sample/sample1.rex", "sample/sample2.bas", "sample/sample2.rex", "sample/simple.html", "sample/simple.xhtml", "sample/xhtmlparser.racc", "sample/xhtmlparser.rex", "test/rex-20060125.rb", "test/rex-20060511.rb", "vendor/hoe.rb"]
|
14
|
+
s.has_rdoc = true
|
15
|
+
s.homepage = %q{http://github.com/aaronp/frex/tree/master}
|
16
|
+
s.rdoc_options = ["--main", "README.rdoc"]
|
17
|
+
s.require_paths = ["lib"]
|
18
|
+
s.rubyforge_project = %q{frex}
|
19
|
+
s.rubygems_version = %q{1.2.0}
|
20
|
+
s.summary = %q{Frex is a fork of Rex}
|
21
|
+
|
22
|
+
if s.respond_to? :specification_version then
|
23
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
24
|
+
s.specification_version = 2
|
25
|
+
|
26
|
+
if current_version >= 3 then
|
27
|
+
else
|
28
|
+
end
|
29
|
+
else
|
30
|
+
end
|
31
|
+
end
|
data/lib/frex/generator.rb
CHANGED
@@ -13,7 +13,7 @@ module Frex
|
|
13
13
|
|
14
14
|
## ---------------------------------------------------------------------
|
15
15
|
class ParseError < StandardError ; end
|
16
|
-
class
|
16
|
+
class FrexError < StandardError ; end
|
17
17
|
|
18
18
|
## ---------------------------------------------------------------------
|
19
19
|
class Generator
|
@@ -128,7 +128,7 @@ module Frex
|
|
128
128
|
## ---------------------------------------------------------------------
|
129
129
|
def read_grammar
|
130
130
|
if !File.exist?(grammar_file)
|
131
|
-
raise
|
131
|
+
raise Frex::FrexError, "can not file open: " + grammar_file
|
132
132
|
end
|
133
133
|
f = File.open(grammar_file, 'r')
|
134
134
|
@grammar_lines = StringScanner.new(f.read)
|
@@ -391,7 +391,7 @@ REX_EOT
|
|
391
391
|
flag = ""
|
392
392
|
flag += "i" if @opt['--ignorecase']
|
393
393
|
## header
|
394
|
-
f.printf REX_HEADER,
|
394
|
+
f.printf REX_HEADER, Frex::VERSION, grammar_file
|
395
395
|
|
396
396
|
unless @opt['--independent']
|
397
397
|
f.printf "require 'racc/parser'\n"
|
data/lib/frex/info.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aaronp-frex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Patterson
|
@@ -31,6 +31,7 @@ files:
|
|
31
31
|
- README.rdoc
|
32
32
|
- Rakefile
|
33
33
|
- bin/frex
|
34
|
+
- frex.gemspec
|
34
35
|
- lib/frex.rb
|
35
36
|
- lib/frex/generator.rb
|
36
37
|
- lib/frex/info.rb
|