Secteur : High Tech - Produits et services télécom et Internet
Informations forums :
Inscription : janvier 2013
Messages : 1
Points : 0
Flex et Bison
I'm a newby for Flex and Bison, and I have tried to write flex lexic and then a Bison grammar, but I encounter the following problem*:
- a word can sometimes match with different definition in the flex definitions, and I would like Bison to find from it's grammar the good Flex definition to choose.
For example, if the word abc can be seen as category1 or category2 in flex, I would like Bison to choose category1 if it appears without syntax error as category1 in the Bison grammar, and incorrect as category2*;
Is there a way*? Or am I totally misunderstanding flex and bison*?*??