From a395136d15cb50d1e39f82ea99f9597e08f841fb Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Tue, 9 Nov 2021 23:14:42 +0100 Subject: [PATCH] todo --- lib/parser.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/parser.rb b/lib/parser.rb index af75d6e..49b5e90 100644 --- a/lib/parser.rb +++ b/lib/parser.rb @@ -22,6 +22,7 @@ module Rpn # 1. regroup strings and programs regrouped_input = [] splitted_input.each do |elt| + # TODO: handle buried-in-elt « and » (surround by ' ' and re-split) if elt[0] == '«' opened_programs += 1 elt.gsub!( '«', '« ') if elt.length > 1 && elt[1] != ' '