lojix/logic/src/main/com/thesett/aima/logic/fol/isoprologparser/TermParser.java
public Sentence<Term> parse() throws SourceCodeException
    {
        try
        {
            return new SentenceImpl<Term>(parser.termSentence());
        }
        catch (SourceCodeException e)
        {
            throw new IllegalStateException(e);
        }
    }
public Sentence<Term> parse() throws SourceCodeException
    {
        try
        {
            return new SentenceImpl<Term>(parser.termSentence());
        }
        catch (SourceCodeException e)
        {
            throw new IllegalStateException(e);
        }
    }
public Sentence < Term > parse ( ) throws SourceCodeException { try { return new SentenceImpl < Term > ( parser . termSentence ( ) ) ; } catch ( SourceCodeException e ) { throw new IllegalStateException ( e ) ; } }
Parses the next sentence from the current token source.

@return The fully parsed syntax tree for the next sentence.

@throws SourceCodeException If the source being parsed does not match the grammar.
Parses the next sentence from the current token source .