<div dir="ltr">Hi,<div><br></div><div>What is the best strategy to handle spaces with X3?</div><div>The files I want to parse have sometimes spaces or tabs for separators, but I also need to scan number that have an attached suffix (so x3::double_ >> *x3::char_).<br clear="all"><div>If now I want to parse groups of strings, starting with a rule like </div><div><span style="font-family:"Fira Code";font-size:11px;background-color:rgb(0,0,0);color:rgb(222,56,165)">const</span><span style="color:rgb(255,255,255);font-family:"Fira Code";font-size:11px;background-color:rgb(0,0,0)"> </span><span style="font-family:"Fira Code";font-size:11px;background-color:rgb(0,0,0);color:rgb(222,56,165)">auto</span><span style="color:rgb(255,255,255);font-family:"Fira Code";font-size:11px;background-color:rgb(0,0,0)"> pin = </span><span style="font-family:"Fira Code";font-size:11px;background-color:rgb(0,0,0);color:rgb(8,250,149)">x3</span><span style="color:rgb(255,255,255);font-family:"Fira Code";font-size:11px;background-color:rgb(0,0,0)">::</span><span style="font-family:"Fira Code";font-size:11px;background-color:rgb(0,0,0);color:rgb(0,177,255)">rule</span><span style="color:rgb(255,255,255);font-family:"Fira Code";font-size:11px;background-color:rgb(0,0,0)"><</span><span style="font-family:"Fira Code";font-size:11px;background-color:rgb(0,0,0);color:rgb(222,56,165)">class</span><span style="color:rgb(255,255,255);font-family:"Fira Code";font-size:11px;background-color:rgb(0,0,0)"> </span><span style="font-family:"Fira Code";font-size:11px;background-color:rgb(0,0,0);color:rgb(8,250,149)">pin</span><span style="color:rgb(255,255,255);font-family:"Fira Code";font-size:11px;background-color:rgb(0,0,0)">, </span><span style="font-family:"Fira Code";font-size:11px;background-color:rgb(0,0,0);color:rgb(0,177,255)">std</span><span style="color:rgb(255,255,255);font-family:"Fira Code";font-size:11px;background-color:rgb(0,0,0)">::</span><span style="font-family:"Fira Code";font-size:11px;background-color:rgb(0,0,0);color:rgb(0,177,255)">string</span><span style="color:rgb(255,255,255);font-family:"Fira Code";font-size:11px;background-color:rgb(0,0,0)">>()</span></div> <p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:"Fira Code";color:rgb(255,255,255);background-color:rgb(0,0,0)"> = <span style="color:rgb(8,250,149)">x3</span>::<span style="color:rgb(0,177,255)">alpha</span> >> *<span style="color:rgb(8,250,149)">x3</span>::<span style="color:rgb(0,177,255)">char_</span>;</p><div>what is the best to create a vector of these? *pin or pin % ' ' and will the latter also handle tabs by default?</div><div><br></div><div>Cheers,</div><div><br></div><div>Matthieu</div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Quantitative analyst, Ph.D.<br>Blog: <a href="http://blog.audio-tk.com/" target="_blank">http://blog.audio-tk.com/</a><br>LinkedIn: <a href="http://www.linkedin.com/in/matthieubrucher" target="_blank">http://www.linkedin.com/in/matthieubrucher</a></div></div></div></div></div></div></div>