Package net.sf.lapg.templates.ast.AstLexer

Examples of net.sf.lapg.templates.ast.AstLexer.ErrorReporter


    return t.invoke(new EvaluationContext(context != null ? context.getThisObject() : null, context, t), this, arguments);
  }

  public String eval(ILocatedEntity referer, String template, String templateId, EvaluationContext context) {
    final String inputName = templateId != null ? templateId : referer.getLocation();
    AstParser p = new AstParser(new ErrorReporter() {
      public void error(int start, int end, int line, String s) {
        DefaultEvaluationStrategy.this.fireError(null, inputName + ":" + s);
      }
    });
    IBundleEntity[] loaded = null;
View Full Code Here


  }


  public static AstTree<Object> parseInput(TextSource source) {
    final List<AstProblem> list = new ArrayList<AstProblem>();
    ErrorReporter reporter = new ErrorReporter() {
      public void error(int start, int end, int line, String s) {
        list.add(new AstProblem(KIND_ERROR, start, end, s, null));
      }
    };
View Full Code Here

    return new AstTree<Object>(source, null, list);
  }

  public static AstTree<TemplateNode> parseBody(TextSource source) {
    final List<AstProblem> list = new ArrayList<AstProblem>();
    ErrorReporter reporter = new ErrorReporter() {
      public void error(int start, int end, int line, String s) {
        list.add(new AstProblem(KIND_ERROR, start, end, s, null));
      }
    };
View Full Code Here

    return entities;
  }

  public static TemplatesBundle parse(final String sourceName, String contents, String templatePackage,
      final IProblemCollector collector) {
    AstParser p = new AstParser(new ErrorReporter() {
      public void error(int start, int end, int line, String s) {
        collector.fireError(null, sourceName + ":" + s);
      }
    });
    IBundleEntity[] entities;
View Full Code Here

TOP

Related Classes of net.sf.lapg.templates.ast.AstLexer.ErrorReporter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.