scfc / bison-php

Extension to bison to generate PHP code
GNU General Public License v3.0
15 stars 1 forks source link

Error in the example? #1

Closed pietercolpaert closed 13 years ago

pietercolpaert commented 13 years ago

When trying to perform

bison -d calc.y

It returns: calc.y: fatal error: "lalr1.php": %defines is not implemented for PHP

scfc commented 13 years ago

Just omit "-d".

pietercolpaert commented 13 years ago

Thank you very much!

Been looking at this for quite some time now. I'm clearly not a bison expert :)

scfc commented 13 years ago

No problem; on the contrary: As this is experimental alpha code, I prefer getting notified of potential bugs that are not bugs than getting no feedback at all :-).

pietercolpaert commented 13 years ago

Alright :)

I have been looking at some parser generators. As the parser I need to build is not very complex I've decided to go for "lime" (a lemon clone for php) instead.

I love your work though!

pietercolpaert commented 13 years ago

Just for the record: when installing I came across some problems:

  1. I needed to install autopoint

The error message was cryptic enough to make me search for 20 minutes ;)

  1. configure.ac:25: version `UNKNOWN' doesn't follow Gnits standards

I've had to create some .tarball-version files. Not sure which one did the trick.

scfc commented 13 years ago

These are probably related to Bison at large. Setting up a development environment for Bison is cumbersome, but of course the idea for end users is to use proper releases which are still very far on the horizon :-).