[dev] Re: miniyacc

From: Daniel Cegiełka <daniel.cegielka_AT_gmail.com>
Date: Wed, 8 May 2019 09:12:23 +0200

A small addition:
* miniyacc was written by Quentin Carbonneaux, who is very well known
in the suckless community (qbe, https://c9x.me).
* I did a small comparison yacc parsers and for bc.y OpenBSD's yacc
produces 50.5k binary vs 38.5k Plan 9's yacc (9base).
* miniyacc is optimized for low memory usage and here I was very
curious about the results (the generated test code is very clean vs
* I wonder if miniyacc could be a replacement for heavier parsers
(bison, OpenBSD's & Plan 9's yacc).



> Hi,
> I'm going to use Quentin's miniyacc with (for example) bc.y from Plan 9:
> https://github.com/9fans/plan9port/blob/master/src/cmd/bc.y
> Of course, I had to modify the code (a bit), but unfortunately I still
> get an error when using miniyacc - works correctly with yacc from
> OpenBSD and Plan 9.
> I'm getting a message from this place ("production rule too long"):
> https://c9x.me/git/miniyacc.git/tree/yacc.c#n1110
> I tried to increase the value of IdntSz and MaxRhs, but it didn't help
> in any way.
> Is this a problem with miniyacc? Does anyone have any experience with miniyacc?
> Best regards,
> Daniel
Received on Wed May 08 2019 - 09:12:23 CEST

This archive was generated by hypermail 2.3.0 : Wed May 08 2019 - 09:12:28 CEST