todo
This commit is contained in:
parent
0f56ebadbf
commit
a395136d15
1 changed files with 1 additions and 0 deletions
|
@ -22,6 +22,7 @@ module Rpn
|
||||||
# 1. regroup strings and programs
|
# 1. regroup strings and programs
|
||||||
regrouped_input = []
|
regrouped_input = []
|
||||||
splitted_input.each do |elt|
|
splitted_input.each do |elt|
|
||||||
|
# TODO: handle buried-in-elt « and » (surround by ' ' and re-split)
|
||||||
if elt[0] == '«'
|
if elt[0] == '«'
|
||||||
opened_programs += 1
|
opened_programs += 1
|
||||||
elt.gsub!( '«', '« ') if elt.length > 1 && elt[1] != ' '
|
elt.gsub!( '«', '« ') if elt.length > 1 && elt[1] != ' '
|
||||||
|
|
Loading…
Reference in a new issue