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.
- checksums.yaml +4 -4
- data/bin/ruco +2 -3
- data/lib/ruco/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4494f4f761644cc7fc1e851c283d2900d68457c4
|
4
|
+
data.tar.gz: 1ff4866a37ade60fa26623c7f95daf996bee14c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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