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

org.snapscript.tree.InstructionReader Maven / Gradle / Ivy

There is a newer version: 1.4.6
Show newest version
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;
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy