Examples of IStatement


Examples of buildcraft.api.statements.IStatement

  }

  private void rotateGateLeft(NBTTagCompound gateNBT) {
    for (int i = 0; i < Gate.MAX_STATEMENTS; ++i) {
      if (gateNBT.hasKey("trigger[" + i + "]")) {
        IStatement t = StatementManager.statements.get(gateNBT.getString("trigger[" + i + "]"));
        t = t.rotateLeft();
        gateNBT.setString("trigger[" + i + "]", t.getUniqueTag());
      }

      if (gateNBT.hasKey("action[" + i + "]")) {
        IStatement a = StatementManager.statements.get(gateNBT.getString("action[" + i + "]"));
        a = a.rotateLeft();
        gateNBT.setString("action[" + i + "]", a.getUniqueTag());
      }
     
      for (int j = 0; j < Gate.MAX_PARAMETERS; ++j) {
        if (gateNBT.hasKey("triggerParameters[" + i + "][" + j + "]")) {
          NBTTagCompound cpt = gateNBT.getCompoundTag("triggerParameters[" + i + "][" + j + "]");
View Full Code Here

Examples of dtool.ast.statements.IStatement

    ArrayList<IStatement> nodeList = new ArrayList<>();
    while(true) {
      if(lookAhead() == nodeListTerminator) {
        break;
      }
      IStatement st = parseStatement(parseCaseDefault, true).node;
      if(st == null) {
        if(lookAhead() == DeeTokens.EOF
          || lookAhead() == DeeTokens.KW_CASE || lookAhead() == DeeTokens.KW_DEFAULT
          || isCloseBracketChar(lookAhead())) {
          break;
View Full Code Here

Examples of dtool.ast.statements.IStatement

      return null;
    ParseHelper parse = new ParseHelper();
   
    Expression condition = null;
    VariableDefWithInit conditionVar = null;
    IStatement thenBody = null;
    IStatement elseBody = null;
   
    parsing: {
      if(parse.consumeRequired(DeeTokens.OPEN_PARENS).ruleBroken) break parsing;
      conditionVar = attemptParseVariableDefWithInit(true);
      if(conditionVar == null) {
View Full Code Here

Examples of dtool.ast.statements.IStatement

  public NodeResult<StatementDoWhile> parseStatementDoWhile() {
    if(!tryConsume(DeeTokens.KW_DO))
      return nullResult();
    ParseHelper parse = new ParseHelper();
   
    IStatement body = null;
    Expression condition = null;
    parsing: {
      body = parse.checkResult(parseStatement_toMissing(RULE_ST_OR_BLOCK));
      if(parse.ruleBroken) break parsing;
     
View Full Code Here

Examples of dtool.ast.statements.IStatement

  protected NodeResult<StatementFor> parseStatementFor() {
    if(!tryConsume(DeeTokens.KW_FOR))
      return nullResult();
    ParseHelper parse = new ParseHelper();
   
    IStatement init = null;
    Expression condition = null;
    Expression increment = null;
    IStatement body = null;
   
    parsing: {
      if(parse.consumeRequired(DeeTokens.OPEN_PARENS).ruleBroken) break parsing;
     
      init = parse.checkResult(parseStatement_toMissing(RULE_STATEMENT));
View Full Code Here

Examples of dtool.ast.statements.IStatement

    ParseHelper parse = new ParseHelper();
   
    boolean isForeachReverse = lastLexElement().type == DeeTokens.KW_FOREACH_REVERSE;
    ArrayView<ForeachVariableDef> varParams = null;
    Expression iterable = null;
    IStatement body = null;
   
    parsing: {
      if(parse.consumeRequired(DeeTokens.OPEN_PARENS).ruleBroken) break parsing;
   
      ArrayList<ForeachVariableDef> varParamsList = new ArrayList<>(2);
View Full Code Here

Examples of dtool.ast.statements.IStatement

    } else {
      return nullResult();
    }
   
    Expression exp;
    IStatement body = null;
    parsing: {
      exp = parseExpressionAroundParentheses(parse, true, false);
      if(parse.ruleBroken) break parsing;
     
      body = parse.checkResult(parseStatement_toMissing());
View Full Code Here

Examples of dtool.ast.statements.IStatement

    if(!tryConsume(DeeTokens.KW_SCOPE))
      return nullResult();
    ParseHelper parse = new ParseHelper();
   
    Symbol scopeTypeId = null;
    IStatement body = null;
    parsing: {
      if(parse.consumeExpected(DeeTokens.OPEN_PARENS)) {
       
        boolean idIsMissing = lookAhead() != DeeTokens.IDENTIFIER;
        scopeTypeId = parseIdSymbol();
View Full Code Here

Examples of dtool.ast.statements.IStatement

  public NodeResult<StatementTry> parseStatementTry() {
    if(!tryConsume(DeeTokens.KW_TRY))
      return nullResult();
    ParseHelper parse = new ParseHelper();
   
    IStatement body;
    ArrayList<CatchClause> catches = null;
    IStatement finallyBody = null;
   
    parsing: {
      body = parse.checkResult(parseStatement_toMissing());
      if(parse.ruleBroken) break parsing;
     
View Full Code Here

Examples of dtool.ast.statements.IStatement

      return nullResult();
    ParseHelper parse = new ParseHelper();
    LexElement catchKeyword = lastLexElement();
   
    SimpleVariableDef catchParam = null;
    IStatement body = null;
   
    parsing: {
      if(tryConsume(DeeTokens.OPEN_PARENS)) {
        catchParam = parseSimpleVariableDef_DefIdOptional();
       
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.