bato 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +2 -2
- data/bin/bato +12 -10
- data/lib/bato/bersiyon.rb +1 -1
- data/lib/bato/core_ext/class.rb +1 -1
- data/mga_halimbawa/{agapan.bato → agapan.bt} +0 -0
- data/mga_halimbawa/{alyas.bato → alyas.bt} +0 -0
- data/mga_halimbawa/{batotris.rb → batotris.bt} +0 -0
- data/mga_halimbawa/{bilang.bato → bilang.bt} +0 -0
- data/mga_halimbawa/{dapat.bato → dapat.bt} +0 -0
- data/mga_halimbawa/{habang.bato → habang.bt} +0 -0
- data/mga_halimbawa/{ihinto.bato → ihinto.bt} +0 -0
- data/mga_halimbawa/{kontrol-sa-pagiikot.bato → kontrol-sa-pagiikot.bt} +0 -0
- data/mga_halimbawa/{kumusta_mundo.bato → kumusta_mundo.bt} +0 -0
- data/mga_halimbawa/{magbibigay.bato → magbibigay.bt} +0 -0
- data/mga_halimbawa/{maliban_na.bato → maliban_na.bt} +0 -0
- data/mga_halimbawa/{modyul.bato → modyul.bt} +0 -0
- data/mga_halimbawa/{nakatukoy.bato → nakatukoy.bt} +0 -0
- data/mga_halimbawa/{ngunit_kapag.bato → ngunit_kapag.bt} +0 -0
- data/mga_halimbawa/{o_ang.bato → o_ang.bt} +0 -0
- data/mga_halimbawa/{pamamaraan-sa-pagkakamali.bato → pamamaraan-sa-pagkakamali.bt} +0 -0
- data/mga_halimbawa/{pangalan.bato → pangalan.bt} +0 -0
- data/mga_halimbawa/{panguri.bato → panguri.bt} +0 -0
- data/mga_halimbawa/{panuntunan.bato → panuntunan.bt} +0 -0
- data/mga_halimbawa/{para_sa.bato → para_sa.bt} +0 -0
- data/mga_halimbawa/{pibonasyi.bato → pibonasyi.bt} +0 -0
- data/mga_halimbawa/{siguraduhin.bato → siguraduhin.bt} +0 -0
- data/mga_halimbawa/{tanggalin.bato → tanggalin.bt} +0 -0
- data/mga_halimbawa/{timebomb.bato → timebomb.bt} +0 -0
- data/spec/bato/tagatala_spec.rb +0 -1
- data/spec/spec_helper.rb +0 -1
- metadata +27 -27
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: fdef7b16053a9a7406ace655f09a5f4f6fa4108d
|
4
|
+
data.tar.gz: 9d8c5613e1af7dc187a71d72ad3cd56802db8243
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a6d76320fef80eded1c8286c291e6b071ca3c6664cda0a7c5f4f1f4dd0249c15e13cce906c5054d03e0c34f2257d21307646d14eea58e3cb2509298a3518f93
|
7
|
+
data.tar.gz: 9a98f1db501b6ce59f4b21fb4f887c3aa84936ddfdd13dc125d9325a04266ea7d59ca643f43ae8dbf79933a2eefc88e093040b84266091f6896a67a36d89d6c6
|
data/README.md
CHANGED
@@ -18,7 +18,7 @@ Ang kadahilanang ginamit ang pangalang 'bato' ay dahil ang Ruby ay isang uri ng
|
|
18
18
|
|
19
19
|
## Ang unang program
|
20
20
|
|
21
|
-
Gumawa ng isang file na kamusta_mundo.
|
21
|
+
Gumawa ng isang file na `kamusta_mundo.bt` na may mga sumusunod na nilalaman
|
22
22
|
|
23
23
|
kapag 1 > 0
|
24
24
|
mag_print "Kumusta mundo!"
|
@@ -28,7 +28,7 @@ Gumawa ng isang file na kamusta_mundo.bato na may mga sumusunod na nilalaman
|
|
28
28
|
|
29
29
|
at pa-andarin ang program sa pamamagitan ng
|
30
30
|
|
31
|
-
bato kamusta_mundo.
|
31
|
+
bato kamusta_mundo.bt
|
32
32
|
|
33
33
|
## Sintaks
|
34
34
|
|
data/bin/bato
CHANGED
@@ -2,18 +2,20 @@
|
|
2
2
|
require 'bato/tagatala'
|
3
3
|
require 'rubygems'
|
4
4
|
|
5
|
-
if
|
6
|
-
tagatala = Bato::Tagatala.new
|
7
|
-
kodigo = File.read pangalan_ng_file, encoding: 'utf-8'
|
8
|
-
ruby_kodigo = tagatala.sa_ruby kodigo
|
9
|
-
raise 'Ang pinakamababang kinakailangan bersiyon ng Ruby ay 2.4' if
|
10
|
-
Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.4')
|
11
|
-
eval ruby_kodigo
|
12
|
-
else
|
5
|
+
if ARGV[0].nil?
|
13
6
|
puts <<-EOS
|
14
7
|
Hindi tinukoy ang file. Ang tamang sintaks ay:
|
15
8
|
|
16
|
-
bato file.
|
9
|
+
bato file.bt
|
17
10
|
EOS
|
18
|
-
|
11
|
+
else
|
12
|
+
ARGV.each do |file|
|
13
|
+
next unless file
|
14
|
+
tagatala = Bato::Tagatala.new
|
15
|
+
kodigo = File.read file, encoding: 'utf-8'
|
16
|
+
ruby_kodigo = tagatala.sa_ruby kodigo
|
17
|
+
raise 'Ang pinakamababang kinakailangan bersiyon ng Ruby ay 2.4' if
|
18
|
+
Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.3')
|
19
|
+
eval ruby_kodigo
|
20
|
+
end
|
19
21
|
end
|
data/lib/bato/bersiyon.rb
CHANGED
data/lib/bato/core_ext/class.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/spec/bato/tagatala_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bato
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joel Bryan Juliano
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby2ruby
|
@@ -98,30 +98,30 @@ files:
|
|
98
98
|
- lib/bato/core_ext/string.rb
|
99
99
|
- lib/bato/ruby_parser_patches.rb
|
100
100
|
- lib/bato/tagatala.rb
|
101
|
-
- mga_halimbawa/agapan.
|
102
|
-
- mga_halimbawa/alyas.
|
103
|
-
- mga_halimbawa/batotris.
|
104
|
-
- mga_halimbawa/bilang.
|
105
|
-
- mga_halimbawa/dapat.
|
106
|
-
- mga_halimbawa/habang.
|
107
|
-
- mga_halimbawa/ihinto.
|
108
|
-
- mga_halimbawa/kontrol-sa-pagiikot.
|
109
|
-
- mga_halimbawa/kumusta_mundo.
|
110
|
-
- mga_halimbawa/magbibigay.
|
111
|
-
- mga_halimbawa/maliban_na.
|
112
|
-
- mga_halimbawa/modyul.
|
113
|
-
- mga_halimbawa/nakatukoy.
|
114
|
-
- mga_halimbawa/ngunit_kapag.
|
115
|
-
- mga_halimbawa/o_ang.
|
116
|
-
- mga_halimbawa/pamamaraan-sa-pagkakamali.
|
117
|
-
- mga_halimbawa/pangalan.
|
118
|
-
- mga_halimbawa/panguri.
|
119
|
-
- mga_halimbawa/panuntunan.
|
120
|
-
- mga_halimbawa/para_sa.
|
121
|
-
- mga_halimbawa/pibonasyi.
|
122
|
-
- mga_halimbawa/siguraduhin.
|
123
|
-
- mga_halimbawa/tanggalin.
|
124
|
-
- mga_halimbawa/timebomb.
|
101
|
+
- mga_halimbawa/agapan.bt
|
102
|
+
- mga_halimbawa/alyas.bt
|
103
|
+
- mga_halimbawa/batotris.bt
|
104
|
+
- mga_halimbawa/bilang.bt
|
105
|
+
- mga_halimbawa/dapat.bt
|
106
|
+
- mga_halimbawa/habang.bt
|
107
|
+
- mga_halimbawa/ihinto.bt
|
108
|
+
- mga_halimbawa/kontrol-sa-pagiikot.bt
|
109
|
+
- mga_halimbawa/kumusta_mundo.bt
|
110
|
+
- mga_halimbawa/magbibigay.bt
|
111
|
+
- mga_halimbawa/maliban_na.bt
|
112
|
+
- mga_halimbawa/modyul.bt
|
113
|
+
- mga_halimbawa/nakatukoy.bt
|
114
|
+
- mga_halimbawa/ngunit_kapag.bt
|
115
|
+
- mga_halimbawa/o_ang.bt
|
116
|
+
- mga_halimbawa/pamamaraan-sa-pagkakamali.bt
|
117
|
+
- mga_halimbawa/pangalan.bt
|
118
|
+
- mga_halimbawa/panguri.bt
|
119
|
+
- mga_halimbawa/panuntunan.bt
|
120
|
+
- mga_halimbawa/para_sa.bt
|
121
|
+
- mga_halimbawa/pibonasyi.bt
|
122
|
+
- mga_halimbawa/siguraduhin.bt
|
123
|
+
- mga_halimbawa/tanggalin.bt
|
124
|
+
- mga_halimbawa/timebomb.bt
|
125
125
|
- spec/bato/tagatala_spec.rb
|
126
126
|
- spec/spec_helper.rb
|
127
127
|
homepage: https://github.com/jjuliano/bato
|
@@ -144,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
144
144
|
version: '0'
|
145
145
|
requirements: []
|
146
146
|
rubyforge_project:
|
147
|
-
rubygems_version: 2.
|
147
|
+
rubygems_version: 2.5.2
|
148
148
|
signing_key:
|
149
149
|
specification_version: 4
|
150
150
|
summary: Ang Bato ay isang programming language sa wikang Filipino
|