Dynamically add tokens

2009-07-28 Thread Alex Duller
Hi, In the language that I'm parsing it's possible to define custom 'types'; I have the following two rules: type_defn: yTYPE yID yIS var_type ';' use_type: yID "=>" sig_type So, I want to somehow store whatever the user enters as yID in the first rule and use it as an alias for the specifi

Re: Matching start and end

2009-07-28 Thread Hans Aberg
On 27 Jul 2009, at 17:59, Alex Duller wrote: I'm trying to parse the following bit of code and want to check that the yIDENTIFIER words are the same (in the following case yIDENTIFIER is TestFir). The regular expression for an yIDENTIFIER is [a-zA-Z_][a-zA-Z0-9_$]* entity TestFir is end e

Re: Dynamically add tokens

2009-07-28 Thread Hans Aberg
On 28 Jul 2009, at 10:02, Alex Duller wrote: In the language that I'm parsing it's possible to define custom 'types'; I have the following two rules: type_defn: yTYPE yID yIS var_type ';' use_type: yID "=>" sig_type So, I want to somehow store whatever the user enters as yID in the first

two bison versions on one machine

2009-07-28 Thread tys lefering
Hi, Would like to have two bison versions installed, one bison version 2.3 for generating vcg graph output, renamed to bisonv and another bison version 2.4.1 for generating dot graph output. is that possible and how to do that ? and how about the directory with the skeletons ? _