Skip to content
This repository has been archived by the owner on Mar 26, 2023. It is now read-only.

byacc vs bison? #400

Open
zenspider opened this issue May 22, 2015 · 1 comment
Open

byacc vs bison? #400

zenspider opened this issue May 22, 2015 · 1 comment

Comments

@zenspider
Copy link
Contributor

Are there any sticking issues for using bison over the current byacc?

ETA: (or vice versa)

@AllenOtis
Copy link
Contributor

The byacc in the maglev source tree is a modified byacc .
See the README_maglev.txt , hich includes the following.
You would have to replicate this maglev-specific behavior in bison.

Allen

Maglev modifications include

Deleted struct YYSTACKDATA,
and changed the type of yystack cells , to allow integration with
garbage collector and so that state machine only has to maintain
one stack pointer. See YyStackElement and YyStackData in rubyom.hf .

Use a unified state table instead of multiple tables for better
C code generation in the state machine. C compiler should be able
to cache one pointer to start of the unified table.

Moved a bunch of definitions to rubyparser.h .

Moved yygrowstack implementation to the .y file .

On Thu, May 21, 2015 at 11:47 PM, Ryan Davis [email protected]
wrote:

Are there any sticking issues for using bison over the current byacc?


Reply to this email directly or view it on GitHub
#400.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants