• R/O
  • SSH

kink: Commit

Kink runtime


Commit MetaInfo

Revision6cba034a0fc3a06bbea25a8d71f1b0d3f474f04b (tree)
Time2020-02-11 12:15:13
Authormiyakawataku
Commitermiyakawataku

Log Message

rename INPUT.input? to INPUT.is?

Change Summary

Incremental Difference

diff -r d42f32c87eaa -r 6cba034a0fc3 src/main/resources/kink-mods/kink/io/INPUT.kn
--- a/src/main/resources/kink-mods/kink/io/INPUT.kn Tue Feb 11 12:10:43 2020 +0900
+++ b/src/main/resources/kink-mods/kink/io/INPUT.kn Tue Feb 11 12:15:13 2020 +0900
@@ -259,10 +259,10 @@
259259 'close'
260260 ]
261261
262-## INPUT.input?(Val)
262+## INPUT.is?(Val)
263263 #
264-# INPUT.input? returns whether the Val is an input.
265-:input? <- {(:Val)
264+# INPUT.is? returns whether the Val is an input.
265+:is? <- {(:Val)
266266 Val.var_syms.have_all?(Input_syms)
267267 }
268268
diff -r d42f32c87eaa -r 6cba034a0fc3 src/main/resources/kink-mods/kink/io/SCANNER.kn
--- a/src/main/resources/kink-mods/kink/io/SCANNER.kn Tue Feb 11 12:10:43 2020 +0900
+++ b/src/main/resources/kink-mods/kink/io/SCANNER.kn Tue Feb 11 12:15:13 2020 +0900
@@ -312,7 +312,7 @@
312312 # stdout.print_line(S.scan_line.repr) # => ["oo\n"]
313313 :wrap <- {(:Input :Encoding_name)
314314 :Desc = 'SCANNER.wrap(Input Encoding_name)'
315- INPUT.input?(Input) || raise(
315+ INPUT.is?(Input) || raise(
316316 '{}: required input for Input, but got {}'.format(Desc Input.repr))
317317 STR.is?(Encoding_name) && STR.valid_encoding?(Encoding_name) || raise(
318318 '{}: required str of valid encoding name for Encoding_name, but got {}'
diff -r d42f32c87eaa -r 6cba034a0fc3 src/test/kink/host_lang/java/JAVA_IO_test.kn
--- a/src/test/kink/host_lang/java/JAVA_IO_test.kn Tue Feb 11 12:10:43 2020 +0900
+++ b/src/test/kink/host_lang/java/JAVA_IO_test.kn Tue Feb 11 12:15:13 2020 +0900
@@ -26,7 +26,7 @@
2626 :Stream = ByteArrayInputStream_class.new([Bytes])
2727 :In = JAVA_IO.input_of_input_stream(Stream)
2828
29- INPUT.input?(In) || raise('got false')
29+ INPUT.is?(In) || raise('got false')
3030
3131 In.close
3232 }
diff -r d42f32c87eaa -r 6cba034a0fc3 src/test/kink/io/BIN_INPUT_test.kn
--- a/src/test/kink/io/BIN_INPUT_test.kn Tue Feb 11 12:10:43 2020 +0900
+++ b/src/test/kink/io/BIN_INPUT_test.kn Tue Feb 11 12:15:13 2020 +0900
@@ -190,7 +190,7 @@
190190 TEST.test('is an input'){
191191 :Org_bin = BIN.of(1 2 3 4 5 6 7 8 9 10)
192192 :In = BIN_INPUT.new(Org_bin)
193- INPUT.input?(In) || raise('got false')
193+ INPUT.is?(In) || raise('got false')
194194 }
195195 }
196196
diff -r d42f32c87eaa -r 6cba034a0fc3 src/test/kink/io/INPUT_test.kn
--- a/src/test/kink/io/INPUT_test.kn Tue Feb 11 12:10:43 2020 +0900
+++ b/src/test/kink/io/INPUT_test.kn Tue Feb 11 12:15:13 2020 +0900
@@ -6,13 +6,13 @@
66
77 :TEST.require_from('kink/test/')
88
9-TEST.test('INPUT.input?(Input) is true'){
9+TEST.test('INPUT.is?(Input) is true'){
1010 :Input = BIN_INPUT.new(BIN.of())
11- INPUT.input?(Input) || raise('got false')
11+ INPUT.is?(Input) || raise('got false')
1212 }
1313
14-TEST.test('INPUT.input?(nada) is false'){
15- ! INPUT.input?(nada) || raise('got true')
14+TEST.test('INPUT.is?(nada) is false'){
15+ ! INPUT.is?(nada) || raise('got true')
1616 }
1717
1818 # vim: et sw=2 sts=2 fdm=marker
Show on old repository browser