protected int parseLineName() throws ParseError {
        int rc = parseToken(false);
        boolean inp_line = s.equals("input");
        boolean gate_line = s.equals("gate");

        if ((rc != WORD_INDICATOR) || (!inp_line && !gate_line)) {
            throw new ParseError("parseLineName : Bad line name");
        }

        if (inp_line) {
            logger.info("parseLineName: input line " + line_num);
            rc = INPUT_LINE;
        }

        if (gate_line) {
            logger.info("parseLineName: gate line " + line_num);
            rc = GATE_LINE;
        }

        return (rc);
    }