Compiler Construction with ANTLR and Java

By Gary L. Schaps

Dr. Dobb's Journal March 1999

{PBIBuilder.getPMode(PG) == 1}? ( lvmVector[pat] )*
{pat.analyzeLVMFormats();}
|
( pgInstruction[pat] )*

Example 7: A disambiguating semantic predicate.

Back to Article


Copyright © 1999, Dr. Dobb's Journal