Frequently Asked Questions

How can I change the name of the destination package of the generated parser/scanner?

Both CUP and JFlex support the package directive, so simply add this directive at the beginning of your source.


import java_cup.runtime.*;



How can I change the names of the generated classes in LEX files?

Use the %class option provided by JFlex. For more information about the %class option see this link.