Hello,
In our application we need to have two parsers using: - the same yylex function (the tokenizer) - the same set of terminal symbols (%token) - the same YYSTYPE structure (%union) but implementing very different syntax rules. Currently we just have two files grammar1.yy and grammar2.yy with 100% identical %token and %union directives, but this is inconvenient to maintain. Is there a way to move %union and all %token directives from *.yy file into a shared file, and include it from grammar1.yy and grammar2.yy ? Thanks! _______________________________________________ help-bison@gnu.org https://lists.gnu.org/mailman/listinfo/help-bison