lib/qlang/exec.rb in qlang-0.0.27100000 vs lib/qlang/exec.rb in qlang-0.0.27180000
- old
+ new
@@ -35,11 +35,12 @@
end
def parse(file_path)
file = open_file(file_path)
input_string = read_file(file)
+ input_string =~ /I love mathematics\.(.*)Q\.E\.D/m
file.close
- Kconv.tosjis(Qlang.compile(input_string))
+ Kconv.tosjis(Qlang.compile($1))
end
def write!(output_path, string)
open(output_path, 'w') do |f|
f.puts string