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

org.snapscript.parse.GrammarReader Maven / Gradle / Ivy

There is a newer version: 1.4.6
Show newest version
package org.snapscript.parse;

import org.snapscript.common.io.PropertyReader;

public class GrammarReader extends PropertyReader {
   
   public GrammarReader(String file) {
      super(file);
   }
   
   @Override
   protected boolean terminal(char value) {
      return value == ';';
   }

   @Override
   protected GrammarDefinition create(String name, char[] data, int off, int length, int line) {
      String value = new String(data, off, length);
      GrammarDefinition definition = new GrammarDefinition(name, value);
      
      return definition;
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy