void specialcolors ( ) { /* false colors for BOS, BOL, EOS, EOL */ if ( parent == null ) { bos [ 0 ] = cm . pseudocolor ( ) ; bos [ 1 ] = cm . pseudocolor ( ) ; eos [ 0 ] = cm . pseudocolor ( ) ; eos [ 1 ] = cm . pseudocolor ( ) ; } else { assert parent . bos [ 0 ] != Constants . COLORLESS ; bos [ 0 ] = parent . bos [ 0 ] ; assert parent . bos [ 1 ] != Constants . COLORLESS ; bos [ 1 ] = parent . bos [ 1 ] ; assert parent . eos [ 0 ] != Constants . COLORLESS ; eos [ 0 ] = parent . eos [ 0 ] ; assert parent . eos [ 1 ] != Constants . COLORLESS ; eos [ 1 ] = parent . eos [ 1 ] ; } }
specialcolors - fill in special colors for an NFA