phorward / unicc

LALR parser generator targetting C, C++, Python, JavaScript, JSON and XML
MIT License
56 stars 9 forks source link

Building 9f8516c fails with: mem.c:295:32: error: ‘PLIST_DFT_HASHSIZE’ undeclared #19

Closed nikkej closed 4 years ago

nikkej commented 4 years ago

Building commit 9f8516c gives: mem.c: In function ‘create_item’: mem.c:295:32: error: ‘PLIST_DFT_HASHSIZE’ undeclared (first use in this function) 295 | plist_init( &i->lookahead, 0, PLIST_DFT_HASHSIZE, PLIST_MOD_PTR ); | ^~~~~~

And I checked, declaration of PLIST_DFT_HASHSIZE is missing (removed from phorward.h in commit 9af588682596a9e846dcdaa0ca33d54131c7f913 of libphorward)

phorward commented 4 years ago

Hi @nikkej, thank you for filing this issue. I know about this problem, since libphorward was released in v1.0, it is not compatible to the current unicc master. You need v0.24 of libphorward to compile.

Alternatively, you can check out the develop branch of unicc. It is self-contained and has no further dependencies, because the libphorward was integrated into the unicc repo to make building simpler and resolve this version dependency problem. The develop branch is planned as v1.7 coming with a new parser template which is currently under development.

I hope this helps!

nikkej commented 4 years ago

@phorward, sorry it took some time for me to reply. Since UniCC is new thing for me I have been busy reading your excellent book about UniCC. Thank you about the hints for correct versions.