public Pattern getParsedPattern() throws IllegalSchemaException { if (hadError) throw new IllegalSchemaException(); return startPattern; }
public CompactSyntax(Reader r, String sourceUri, SchemaBuilder<Pattern, NameClass, Location, ElementAnnotation, CommentListImpl, AnnotationsImpl> sb, ErrorHandler eh) { this(r); this.sourceUri = sourceUri; this.sb = sb; this.eh = eh; // this causes the root pattern to have non-null annotations // which is useful because it gives a context to trang this.topLevelComments = sb.makeCommentList(); }
private AnnotationsImpl addCommentsToLeadingAnnotations(AnnotationsImpl a) { CommentListImpl comments = getComments(); if (comments == null) return a; if (a == null) return sb.makeAnnotations(comments, getContext()); a.addLeadingComment(comments); return a; }
final public void Div(GrammarSection<Pattern, Location, ElementAnnotation, CommentListImpl, AnnotationsImpl> section, Scope<Pattern, Location, ElementAnnotation, CommentListImpl, AnnotationsImpl> scope, AnnotationsImpl a) throws ParseException { Token t; Div<Pattern, Location, ElementAnnotation, CommentListImpl, AnnotationsImpl> div = section.makeDiv(); t = jj_consume_token(6); jj_consume_token(11); a = GrammarBody(div, scope, a); topLevelComments(div); jj_consume_token(12); div.endDiv(makeLocation(t), a); }
final public Pattern TopLevelGrammar(Scope<Pattern, Location, ElementAnnotation, CommentListImpl, AnnotationsImpl> scope) throws ParseException { AnnotationsImpl a = getTopLevelCommentsAsAnnotations(); Grammar<Pattern, Location, ElementAnnotation, CommentListImpl, AnnotationsImpl> g; Pattern p; g = sb.makeGrammar(scope); a = GrammarBody(g, g, a); p = afterPatternComments(g.endGrammar(sb.makeLocation(sourceUri, 1, 1), a)); jj_consume_token(0); {if (true) return p;} throw new Error("Missing return statement in function"); }
final public Pattern GrammarExpr(Scope<Pattern, Location, ElementAnnotation, CommentListImpl, AnnotationsImpl> scope, AnnotationsImpl a) throws ParseException { Token t; Grammar<Pattern, Location, ElementAnnotation, CommentListImpl, AnnotationsImpl> g; t = jj_consume_token(10); g = sb.makeGrammar(scope); jj_consume_token(11); a = GrammarBody(g, g, a); topLevelComments(g); jj_consume_token(12); {if (true) return g.endGrammar(makeLocation(t), a);} throw new Error("Missing return statement in function"); }
final public void IncludeDiv(GrammarSection<Pattern, Location, ElementAnnotation, CommentListImpl, AnnotationsImpl> section, Scope<Pattern, Location, ElementAnnotation, CommentListImpl, AnnotationsImpl> scope, AnnotationsImpl a) throws ParseException { Token t; Div<Pattern, Location, ElementAnnotation, CommentListImpl, AnnotationsImpl> div = section.makeDiv(); t = jj_consume_token(6); jj_consume_token(11); a = IncludeBody(div, scope, a); topLevelComments(div); jj_consume_token(12); div.endDiv(makeLocation(t), a); }
private AnnotationsImpl addCommentsToChildAnnotations(AnnotationsImpl a) { CommentListImpl comments = getComments(); if (comments == null) return a; if (a == null) a = sb.makeAnnotations(null, getContext()); a.addComment(comments); return a; }
final public void Div(GrammarSection<Pattern, Location, ElementAnnotation, CommentListImpl, AnnotationsImpl> section, Scope<Pattern, Location, ElementAnnotation, CommentListImpl, AnnotationsImpl> scope, AnnotationsImpl a) throws ParseException { Token t; Div<Pattern, Location, ElementAnnotation, CommentListImpl, AnnotationsImpl> div = section.makeDiv(); t = jj_consume_token(6); jj_consume_token(11); a = GrammarBody(div, scope, a); topLevelComments(div); jj_consume_token(12); div.endDiv(makeLocation(t), a); }
final public Pattern TopLevelGrammar(Scope<Pattern, Location, ElementAnnotation, CommentListImpl, AnnotationsImpl> scope) throws ParseException { AnnotationsImpl a = getTopLevelCommentsAsAnnotations(); Grammar<Pattern, Location, ElementAnnotation, CommentListImpl, AnnotationsImpl> g; Pattern p; g = sb.makeGrammar(scope); a = GrammarBody(g, g, a); p = afterPatternComments(g.endGrammar(sb.makeLocation(sourceUri, 1, 1), a)); jj_consume_token(0); {if (true) return p;} throw new Error("Missing return statement in function"); }
final public Pattern GrammarExpr(Scope<Pattern, Location, ElementAnnotation, CommentListImpl, AnnotationsImpl> scope, AnnotationsImpl a) throws ParseException { Token t; Grammar<Pattern, Location, ElementAnnotation, CommentListImpl, AnnotationsImpl> g; t = jj_consume_token(10); g = sb.makeGrammar(scope); jj_consume_token(11); a = GrammarBody(g, g, a); topLevelComments(g); jj_consume_token(12); {if (true) return g.endGrammar(makeLocation(t), a);} throw new Error("Missing return statement in function"); }
private AnnotationsImpl addCommentsToLeadingAnnotations(AnnotationsImpl a) { CommentListImpl comments = getComments(); if (comments == null) return a; if (a == null) return sb.makeAnnotations(comments, getContext()); a.addLeadingComment(comments); return a; }
private AnnotationsImpl addCommentsToChildAnnotations(AnnotationsImpl a) { CommentListImpl comments = getComments(); if (comments == null) return a; if (a == null) a = sb.makeAnnotations(null, getContext()); a.addComment(comments); return a; }
public Pattern getParsedPattern() throws IllegalSchemaException { if (hadError) throw new IllegalSchemaException(); return startPattern; }
public CompactSyntax(Reader r, String sourceUri, SchemaBuilder<Pattern, NameClass, Location, ElementAnnotation, CommentListImpl, AnnotationsImpl> sb, ErrorHandler eh) { this(r); this.sourceUri = sourceUri; this.sb = sb; this.eh = eh; // this causes the root pattern to have non-null annotations // which is useful because it gives a context to trang this.topLevelComments = sb.makeCommentList(); }
final public void Div(GrammarSection<Pattern, Location, ElementAnnotation, CommentListImpl, AnnotationsImpl> section, Scope<Pattern, Location, ElementAnnotation, CommentListImpl, AnnotationsImpl> scope, AnnotationsImpl a) throws ParseException { Token t; Div<Pattern, Location, ElementAnnotation, CommentListImpl, AnnotationsImpl> div = section.makeDiv(); t = jj_consume_token(6); jj_consume_token(11); a = GrammarBody(div, scope, a); topLevelComments(div); jj_consume_token(12); div.endDiv(makeLocation(t), a); }
private AnnotationsImpl addCommentsToLeadingAnnotations(AnnotationsImpl a) { CommentListImpl comments = getComments(); if (comments == null) return a; if (a == null) return sb.makeAnnotations(comments, getContext()); a.addLeadingComment(comments); return a; }
private AnnotationsImpl addCommentsToChildAnnotations(AnnotationsImpl a) { CommentListImpl comments = getComments(); if (comments == null) return a; if (a == null) a = sb.makeAnnotations(null, getContext()); a.addComment(comments); return a; }
public Pattern getParsedPattern() throws IllegalSchemaException { if (hadError) throw new IllegalSchemaException(); return startPattern; }
public CompactSyntax(Reader r, String sourceUri, SchemaBuilder<Pattern, NameClass, Location, ElementAnnotation, CommentListImpl, AnnotationsImpl> sb, ErrorHandler eh) { this(r); this.sourceUri = sourceUri; this.sb = sb; this.eh = eh; // this causes the root pattern to have non-null annotations // which is useful because it gives a context to trang this.topLevelComments = sb.makeCommentList(); }