Transforming Truth Tables to Binary Decision Diagrams Using Relational Reference Attribute Grammars