public void define(String name, Combine combine, ParsedPattern pattern, Location loc, Annotations anno) throws BuildException { if(name==START) { grammar.start = (DPattern)pattern; } else { // TODO: handle combine DDefine d = grammar.getOrAdd(name); d.setPattern( (DPattern) pattern ); if (anno!=null) { d.annotation = ((Annotation)anno).getResult(); } } }
public void define(String name, Combine combine, ParsedPattern pattern, Location loc, Annotations anno) throws BuildException { if(name==START) grammar.start = (DPattern)pattern; else { // TODO: handle combine DDefine d = grammar.getOrAdd(name); d.setPattern( (DPattern) pattern ); if(anno!=null) d.annotation = ((Annotation)anno).getResult(); } }
public ParsedPattern makeRef(String name, Location loc, Annotations anno) throws BuildException { return DSchemaBuilderImpl.wrap( new DRefPattern(grammar.getOrAdd(name)), (LocatorImpl)loc, (Annotation)anno ); } }
public ParsedPattern makeRef(String name, Location loc, Annotations anno) throws BuildException { return DSchemaBuilderImpl.wrap( new DRefPattern(grammar.getOrAdd(name)), (LocatorImpl)loc, (Annotation)anno ); } }