org.snapscript.tree.InstructionReader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of snap Show documentation
Show all versions of snap Show documentation
Dynamic scripting for the JVM
package org.snapscript.tree;
import org.snapscript.common.io.PropertyReader;
public class InstructionReader extends PropertyReader{
public InstructionReader(String file) {
super(file);
}
@Override
protected Instruction create(String name, char[] data, int off, int length, int line) {
String type = format(data, off, length);
if(type != null) {
return new Instruction(type, name);
}
return null;
}
}