Package anvil.script.statements

Examples of anvil.script.statements.ModuleStatement


    case Statement.ST_TAG:
      //ignore
      break;
     
    case Statement.ST_MODULE:
      _script = new ModuleStatement(_envelope, getLocation());
      handler.push(_script);
      _script.parse(handler, tag);
      break;
     
    case Statement.ST_ENDMODULE:
View Full Code Here


 
  public ModuleStatement parseTemplate() throws IOException, ForgingException
  {
    Parser parser = new Parser();
    parser.parse(this, _url, _input);
    ModuleStatement script = _script;
    if (script == null) {
      error(getLocation(), "Document doesn't contain template");
    }
    if (_errorListener != null) {
      throw new ForgingException(_errorListener);
View Full Code Here

      default:
        jj_la1[1] = jj_gen;
        ;
      }
      String name = (n == null) ? "module" : n.image;
      flowPush(new ModuleStatement(getEnvelope(), toLocation(t), name, t.document));
      jj_consume_token(BEGIN);
      label_1:
      while (true) {
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case NAMESPACE:
        case IMPORT:
        case FUNCTION:
        case SYNCHRONIZED:
        case STATIC:
        case INTERFACE:
        case CLASS:
        case VAR:
        case CONST:
          ;
          break;
        default:
          jj_la1[2] = jj_gen;
          break label_1;
        }
        Definitions();
      }
      jj_consume_token(END);
      break;
    default:
      jj_la1[4] = jj_gen;
      flowPush(new ModuleStatement(getEnvelope(), null, "module", null));
      label_2:
      while (true) {
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case NAMESPACE:
        case IMPORT:
View Full Code Here

      Statement stmt = flowPeek();
      if (stmt == null || stmt.typeOf() != Statement.ST_MODULE) {
        error(new Location(_url), "Unexcepted end of file");
        throw new ForgingException(_listener);
      }
      ModuleStatement script = (ModuleStatement)stmt;
      if (_listener != null) {
        throw new ForgingException(_listener);
      }
      return script;
    } catch (ParseException e) {
View Full Code Here

TOP

Related Classes of anvil.script.statements.ModuleStatement

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.