lojix/logic/src/main/com/thesett/aima/logic/fol/isoprologparser/TokenSource.java
public static TokenSource getTokenSourceForString(String stringToTokenize)
    {
        SimpleCharStream inputStream = new SimpleCharStream(new StringReader(stringToTokenize), 1, 1);
        PrologParserTokenManager tokenManager = new PrologParserTokenManager(inputStream);

        return new TokenSource(tokenManager);
    }
public static TokenSource getTokenSourceForString(String stringToTokenize)
    {
        SimpleCharStream inputStream = new SimpleCharStream(new StringReader(stringToTokenize), 1, 1);
        PrologParserTokenManager tokenManager = new PrologParserTokenManager(inputStream);

        return new TokenSource(tokenManager);
    }
public static TokenSource getTokenSourceForString ( String stringToTokenize ) { SimpleCharStream inputStream = new SimpleCharStream ( new StringReader ( stringToTokenize ) , 1 , 1 ) ; PrologParserTokenManager tokenManager = new PrologParserTokenManager ( inputStream ) ; return new TokenSource ( tokenManager ) ; }
Creates a token source on a string.

@param  stringToTokenize The string to tokenize.

@return A token source.
Creates a token source on a string .