Type checking in semantic actions

2010-02-13 Thread Michael Budach
Hello folks I am currently working on my first bison project, which is a parser for vhdl. Since I only need a subset of the language, I want to specify actions only this subset. consider the following example: arch_body_1 : ; { $$ = new TDataLineList; } arch_body_1 : block_decltve

Re: Type checking in semantic actions

2010-02-15 Thread Michael Budach
Hello Hans Thanks for the reply. So you need to assign config_spec a valid value somewhere, or write a rule that initializes $$ instead of the default rule. Does that mean it is possible to redefine the default rule from "$$ = $1;" to e.g. "$$=NULL;" ? Can you tell me how ? I did not find an

Re: Type checking in semantic actions

2010-02-18 Thread Michael Budach
Hello Hans First of all thanks a lot for your help. >You can change the skeleton file. I have tried out and it works, but it seems like it doesn't make life much easier. So I think I will stick to dummy actions for unneeded rules and leave the skeleton alone. By the way, just in case someon