ruco-cpp 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/ruco +2 -3
  3. data/lib/ruco/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2cb830b9263fe29580ea5c8cfcaf5f1c5310a37a
4
- data.tar.gz: 1d7a85078b5ac1119bf77835f5f93e9d7afffd81
3
+ metadata.gz: 4494f4f761644cc7fc1e851c283d2900d68457c4
4
+ data.tar.gz: 1ff4866a37ade60fa26623c7f95daf996bee14c0
5
5
  SHA512:
6
- metadata.gz: d1e5b24661e41a46acd17dd28366ac8ce9c37a6033a8abafc4f3984cd4f708052c977bd32852cfcf43670133e50eb56998c0dc732755dd02676d79818780fceb
7
- data.tar.gz: e3fdf3649f14852e781089a0ef3fc2a8a4a24dad69ecd2b718f200f809d30395a3bd75e9f539de4d61a8423e0d4938f0a2eeae67cbfc81bb641bd6d1f7cd03a0
6
+ metadata.gz: 8df637ba1c96dc874878c1fd96af9289e84d2d3c34f54fed71cb3ab682d71df8c54552fb96ed4f4910b5251a5f0acf222400531733aab5c2a13db2bd5cd7ecd7
7
+ data.tar.gz: fd06382812ff16811298065bf94f243b08feebb785318a779963ada4eda4933dfd2f8846a73e10d0a783392bdf0843bf6b677f0b5cec49e6e040c6c4d7c1c757
data/bin/ruco CHANGED
@@ -12,14 +12,13 @@ end
12
12
  file = ARGV[0]
13
13
  grammar_name = File.basename file, ".ruco"
14
14
  grammar_name = ARGV[1] if ARGV[1]
15
- grammar_name = grammar_name.capitalize
16
15
 
17
- rr = Ruco::Ruco.new grammar_name do
16
+ rr = Ruco::Ruco.new grammar_name.capitalize do
18
17
  instance_eval(File.read(file), file)
19
18
  end
20
19
 
21
20
  File.write("#{grammar_name}.atg",rr.generate_atg)
22
- File.write("#{grammar_name}.hpp",rr.generate_header)
21
+ File.write("#{grammar_name.capitalize}.hpp",rr.generate_header)
23
22
  File.write("parse_#{grammar_name}.cpp",rr.generate_libcpp)
24
23
  File.write("parse_#{grammar_name}.hpp",rr.generate_libhpp)
25
24
  File.write("Makefile", rr.generate_makefile) unless File.exists? "Makefile"
data/lib/ruco/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ruco
2
- VERSION = "0.2.5"
2
+ VERSION = "0.2.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruco-cpp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Siaw