
Hello everyone!!
I am working on linguistics using Flex & C.i have written all rules.now i have to insert a rule name for each nd every rule.i have rules from multiple files....soo now i am not understanding how to get the file name nd how to insert the rule name in each nd every rule at the beginning.
for eg: if there r some files like age file,refuse file etc...
nd in turn each file contains set of independant rules.
now if i take age file as input i have to get in output
(defrule age1
---------- //here we have some printf statements
--------
=>(assert(-------)))
LHS rule shuld be asserted to RHS .now how to get the rule name?here defrule age1 is rule name.for another rule of age file it will defrule age2 like that...if file is changed name of the file changes..
soo now how to get this file name nd to insert rule name for each nd every rule?