Class RdlParser


  • public class RdlParser
    extends Parser<DefaultTheory,​Formula>
    This class implements a parser for default logic.
    Author:
    Nils Geilen
    • Constructor Detail

      • RdlParser

        public RdlParser()
    • Method Detail

      • parseBeliefBase

        public DefaultTheory parseBeliefBase​(java.io.Reader reader)
                                      throws java.io.IOException,
                                             ParserException
        Description copied from class: Parser
        Parses the given reader into a belief base of the given type.
        Specified by:
        parseBeliefBase in class Parser<DefaultTheory,​Formula>
        Parameters:
        reader - a reader
        Returns:
        a belief base
        Throws:
        java.io.IOException - if some IO issue occurred.
        ParserException - some parsing exceptions may be added here.
      • parseFormula

        public Formula parseFormula​(java.io.Reader reader)
                             throws java.io.IOException,
                                    ParserException
        Description copied from class: Parser
        Parses the given reader into a formula of the given type.
        Specified by:
        parseFormula in class Parser<DefaultTheory,​Formula>
        Parameters:
        reader - a reader
        Returns:
        a formula
        Throws:
        java.io.IOException - if some IO issue occurred.
        ParserException - some parsing exceptions may be added here.