PPT Slide
import java_cup.runtime.*;
non terminal books, book;
book ::= FIELD:f1 SLASH FIELD:f2 SLASH FIELD:f3 SLASH FIELD:f4 SLASH FIELD:f5 EOL
{: System.out.println("Title: " + f1);
System.out.println("Author: " + f2);
System.out.println("Date: " + f3);
System.out.println("ISBN: " + f4);
System.out.println("Publisher: " + f5);
Everything between {: … :} is the action that the parser is to
take after fulfilling this grammar rule.