<div dir="ltr">Hi Dov and all,<br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 28, 2017 at 3:12 PM, Dov Grobgeld <span dir="ltr"><<a href="mailto:dov.grobgeld@gmail.com" target="_blank">dov.grobgeld@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-family:arial,helvetica,sans-serif">Another issue is that if you today need to write a parser in lex/yacc, then you probably made a bad decision along the way. There are today lots of well supported meta formats with excellent and well tested parsers, e.g. json, xml, yaml, config/ini, and your ROI is better spent integrating one of these than reinventing the wheel.<br><br></div></div></blockquote><div><br></div><div>I agree that using meta formats is a good idea, but they are not too suitable for Turing-complete programming languages, and some nonstandard formats. There is still a case for using tokenisers and parser generators - whether lex and yacc or more modern (and possibly better) ones such as the ones I link to here - <a href="http://www.shlomifish.org/open-source/resources/text-processing-tools/">http://www.shlomifish.org/open-source/resources/text-processing-tools/</a> . A cautionary tale is that of <a href="https://en.wikipedia.org/wiki/Apache_Ant">https://en.wikipedia.org/wiki/Apache_Ant</a> which eventually became a Turing-complete XML based language whereas using something like Ruby would have been better.</div><div><br></div><div>Regarding JSON parsers, see <a href="http://seriot.ch/parsing_json.php">http://seriot.ch/parsing_json.php</a> .</div><div><br></div><div>Regards,</div><div><br></div><div>-- Shlomi<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-family:arial,helvetica,sans-serif"></div><div style="font-family:arial,helvetica,sans-serif">(That said from someone who invented a meta format (and used lex/yacc) which I used for a number of years until I switched to using json. See: <a href="http://xnm.sourceforge.net/" target="_blank">http://xnm.sourceforge.net/</a> .)<br><br></div><div style="font-family:arial,helvetica,sans-serif">Regards,<br></div><div style="font-family:arial,helvetica,sans-serif">Dov<br></div></div><div class="gmail-HOEnZb"><div class="gmail-h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 28, 2017 at 1:16 PM, Eli Marmor <span dir="ltr"><<a href="mailto:eli@netmask.it" target="_blank">eli@netmask.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I see that the thread is still alive, so just wanted to say that it's a de-ja-vu for me.<div>I've used to be a LEX/YACC master somewhere in the previous century (i.e. the previous millennium...).</div><div>I not only used it for writing compilers, interpreters and parsers, but also built a cool library based on LEX, as well as my own LEX version to support 8 bit (it supported only 7 bits in the beginning...).</div><div><br></div><div>I guess that it will not help anybody today, because many years have passed, and I probably don't remember enough...</div><div>But it's nostalgic to remember these years...</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="gmail-m_-5243985171679139835h5">On Thu, Aug 10, 2017 at 10:42 PM, Aviram Jenik <span dir="ltr"><<a href="mailto:aviram@jenik.com" target="_blank">aviram@jenik.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="gmail-m_-5243985171679139835h5"><div dir="ltr"><div>Hi,</div><div><br></div><div>We're looking for a consultant that can help us with a short gig to figure out why </div><div>a piece of BISON/Flex code (used to render code into an interpreter) compiles under Debian 7 but not under Debian 9.</div><div><br></div><div>T<span style="color:rgb(0,0,0);font-size:12.8px">he error is pretty vague so I rather not paste it here as it doesn't actually helps anyone who hasn't seen the full code.</span><br></div><div><span style="color:rgb(0,0,0);font-size:12.8px"><br></span></div><div><span style="color:rgb(0,0,0);font-size:12.8px">Any referrals would be appreciated; we're in Ra'anana industrial area.</span></div><span class="gmail-m_-5243985171679139835m_3947670148129251983HOEnZb"><font color="#888888"><div><span style="color:rgb(0,0,0);font-size:12.8px"><br></span></div><div><span style="color:rgb(0,0,0);font-size:12.8px">- Aviram</span></div><div><span style="color:rgb(0,0,0);font-size:12.8px"><br></span></div><div><div class="gmail-m_-5243985171679139835m_3947670148129251983m_1089426721917010149gmail-yj6qo gmail-m_-5243985171679139835m_3947670148129251983m_1089426721917010149gmail-ajU" style="margin:2px 0px 0px;color:rgb(0,0,0);font-size:12.8px"></div></div></font></span></div>
<br></div></div><span>______________________________<wbr>_________________<br>
Linux-il mailing list<br>
<a href="mailto:Linux-il@cs.huji.ac.il" target="_blank">Linux-il@cs.huji.ac.il</a><br>
<a href="http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il" rel="noreferrer" target="_blank">http://mailman.cs.huji.ac.il/m<wbr>ailman/listinfo/linux-il</a><br>
<br></span></blockquote></div><br></div>
<br>______________________________<wbr>_________________<br>
Linux-il mailing list<br>
<a href="mailto:Linux-il@cs.huji.ac.il" target="_blank">Linux-il@cs.huji.ac.il</a><br>
<a href="http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il" rel="noreferrer" target="_blank">http://mailman.cs.huji.ac.il/m<wbr>ailman/listinfo/linux-il</a><br>
<br></blockquote></div><br></div>
</div></div><br>______________________________<wbr>_________________<br>
Linux-il mailing list<br>
<a href="mailto:Linux-il@cs.huji.ac.il">Linux-il@cs.huji.ac.il</a><br>
<a href="http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il" rel="noreferrer" target="_blank">http://mailman.cs.huji.ac.il/<wbr>mailman/listinfo/linux-il</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr">Shlomi Fish <a href="http://www.shlomifish.org/" target="_blank">http://www.shlomifish.org/</a><br><br>You can never truly appreciate The Gilmore Girls until you've watched it in the original Klingon.<br><br>Please reply to list if it's a mailing list post - <a href="http://shlom.in/reply" target="_blank">http://shlom.in/reply</a> .<br></div></div></div></div>
</div></div>