nitcc/re2nfa: remove redef value types
authorAlexandre Terrasa <alexandre@moz-code.org>
Thu, 16 Feb 2017 22:57:49 +0000 (17:57 -0500)
committerAlexandre Terrasa <alexandre@moz-code.org>
Thu, 16 Feb 2017 22:57:49 +0000 (17:57 -0500)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

contrib/nitcc/src/re2nfa.nit

index 12cd600..194ad51 100644 (file)
@@ -33,7 +33,7 @@ redef class Node
 end
 
 redef class Nstr
-       redef fun value: String do return text.substring(1, text.length-2).unescape_nit
+       redef fun value do return text.substring(1, text.length-2).unescape_nit
        redef fun make_rfa: Automaton
        do
                var a = new Automaton.epsilon
@@ -46,7 +46,7 @@ redef class Nstr
 end
 
 redef class Nch_dec
-       redef fun value: String do return text.substring_from(1).to_i.code_point.to_s
+       redef fun value do return text.substring_from(1).to_i.code_point.to_s
        redef fun make_rfa: Automaton
        do
                var a = new Automaton.atom(self.value.chars.first.code_point)
@@ -55,7 +55,7 @@ redef class Nch_dec
 end
 
 redef class Nch_hex
-       redef fun value: String do return text.substring_from(2).to_hex.code_point.to_s
+       redef fun value do return text.substring_from(2).to_hex.code_point.to_s
        redef fun make_rfa: Automaton
        do
                var a = new Automaton.atom(self.value.chars.first.code_point)