/** Test to see if this non terminal currently looks nullable. */ protected boolean looks_nullable() throws internal_error { /* look and see if any of the productions now look nullable */ for (Enumeration e = productions(); e.hasMoreElements(); ) /* if the production can go to empty, we are nullable */ if (((production)e.nextElement()).check_nullable()) return true; /* none of the productions can go to empty, so we are not nullable */ return false; }
/** Test to see if this non terminal currently looks nullable. */ protected boolean looks_nullable() throws internal_error { /* look and see if any of the productions now look nullable */ for (Enumeration e = productions(); e.hasMoreElements(); ) /* if the production can go to empty, we are nullable */ if (((production)e.nextElement()).check_nullable()) return true; /* none of the productions can go to empty, so we are not nullable */ return false; }
/** Test to see if this non terminal currently looks nullable. */ protected boolean looks_nullable() throws internal_error { /* look and see if any of the productions now look nullable */ for (Enumeration e = productions(); e.hasMoreElements(); ) /* if the production can go to empty, we are nullable */ if (((production)e.nextElement()).check_nullable()) return true; /* none of the productions can go to empty, so we are not nullable */ return false; }
/** Test to see if this non terminal currently looks nullable. */ protected boolean looks_nullable() throws internal_error { /* look and see if any of the productions now look nullable */ for (Enumeration e = productions(); e.hasMoreElements(); ) /* if the production can go to empty, we are nullable */ if (((production)e.nextElement()).check_nullable()) return true; /* none of the productions can go to empty, so we are not nullable */ return false; }
/** Test to see if this non terminal currently looks nullable. */ protected boolean looks_nullable() throws internal_error { /* look and see if any of the productions now look nullable */ for (Enumeration e = productions(); e.hasMoreElements(); ) /* if the production can go to empty, we are nullable */ if (((production)e.nextElement()).check_nullable()) return true; /* none of the productions can go to empty, so we are not nullable */ return false; }
/** Test to see if this non terminal currently looks nullable. */ protected boolean looks_nullable() throws internal_error { /* look and see if any of the productions now look nullable */ for (Enumeration e = productions(); e.hasMoreElements(); ) /* if the production can go to empty, we are nullable */ if (((production)e.nextElement()).check_nullable()) return true; /* none of the productions can go to empty, so we are not nullable */ return false; }
/** Test to see if this non terminal currently looks nullable. */ protected boolean looks_nullable() throws internal_error { /* look and see if any of the productions now look nullable */ for (Enumeration e = productions(); e.hasMoreElements(); ) /* if the production can go to empty, we are nullable */ if (((production)e.nextElement()).check_nullable()) return true; /* none of the productions can go to empty, so we are not nullable */ return false; }
prod.set_nullable(prod.check_nullable());
prod.set_nullable(prod.check_nullable());
prod.set_nullable(prod.check_nullable());
prod.set_nullable(prod.check_nullable());
prod.set_nullable(prod.check_nullable());
prod.set_nullable(prod.check_nullable());
prod.set_nullable(prod.check_nullable());