All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.treesitter.TSReader Maven / Gradle / Ivy

There is a newer version: 0.24.4
Show newest version
package org.treesitter;

/**
 * Interface for custom source code reader
 */
public interface TSReader {
    /**
     * The read method is called when the parser needs to read more data from the source code.
     * @param buf buffer to write data to
     * @param offset offset to read from
     * @param position position to read from
     * @return 0 if the end of the source code was reached, otherwise the number of bytes read.
     */
    int read(byte[] buf, int offset, TSPoint position);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy