Class AmbiguityInfo

    • Field Detail

      • ambigAlts

        public BitSet ambigAlts
        The set of alternative numbers for this decision event that lead to a valid parse.
    • Constructor Detail

      • AmbiguityInfo

        public AmbiguityInfo​(int decision,
                             ATNConfigSet configs,
                             BitSet ambigAlts,
                             TokenStream input,
                             int startIndex,
                             int stopIndex,
                             boolean fullCtx)
        Constructs a new instance of the AmbiguityInfo class with the specified detailed ambiguity information.
        Parameters:
        decision - The decision number
        configs - The final configuration set identifying the ambiguous alternatives for the current input
        ambigAlts - The set of alternatives in the decision that lead to a valid parse. The predicted alt is the min(ambigAlts)
        input - The input token stream
        startIndex - The start index for the current prediction
        stopIndex - The index at which the ambiguity was identified during prediction
        fullCtx - true if the ambiguity was identified during LL prediction; otherwise, false if the ambiguity was identified during SLL prediction