mardi 12 juillet 2022

How to get rule text in yacc

declaration: type instance SEMICOLON
{
    //I want to get string here
}

type:...
instance:...

I want to get the currently matched declaration string in the declaration action.Is there any way to do this in yacc?

Aucun commentaire:

Enregistrer un commentaire