Re: [dev] [sbase] expr

From: Dimitris Papastamos <sin_AT_2f30.org>
Date: Fri, 7 Nov 2014 10:35:08 +0000

On Thu, Nov 06, 2014 at 09:00:32PM -0800, Evan Gates wrote:
> I saw in sbase's TODO that expr had been imported from OpenBSD and
> needed "replacing or cleaning up." I decided to give it a try with
> yacc. It turned out very different from what I expected due to the
> need to convert between strings and numbers. It's about 3.5x smaller
> than the existing implementation. I'd like feedback, particularly on
> whether or not the use of yacc is suckless here. If you like the
> implementation I'd be happy to finish cleaning it up and change it to
> sbase style.
>
> I've attached it to the email and provided a link[0].

I am personally not opposed to using yacc. Yeah I like hand-rolled
recursive descent parsers are cool but yacc is a standard tool that
most people are familiar with.

Roberto, what do you think?
Received on Fri Nov 07 2014 - 11:35:08 CET

This archive was generated by hypermail 2.3.0 : Fri Nov 07 2014 - 11:36:13 CET