Package weasel.compiler.WeaselOperator

Examples of weasel.compiler.WeaselOperator.Properties


      isEOFOk = true;
      WeaselTokenType wtt = WeaselTokenType.getTokenTypeFor(""+c, false);
      if(wtt!=null){
        return new WeaselToken(wtt, line);
      }
      Properties lastFullEqual = null;
      boolean again = true;
      String s="";
      int back=0;
      isEOFOk = false;
      while(again){
View Full Code Here


    return new WeaselTreeAddResult(this);
  }

  @Override
  public WeaselCompilerReturn compile(WeaselCompiler compiler, WeaselKeyWordCompilerHelper compilerHelper, WeaselGenericClass write, WeaselGenericClass expect, WeaselGenericClass elementParent, boolean isVariable) throws WeaselCompilerException {
    Properties operator = (Properties)operators.get(0).param;
    if(operator.infix==operator){
      if(operator.l2r){
        return compileInfixOperator(compiler, compilerHelper, write, expect, elementParent, isVariable, operators.size()-1);
      }else{
        return compileInfixOperator(compiler, compilerHelper, write, expect, elementParent, isVariable, 0);
View Full Code Here

  private WeaselCompilerReturn compileOperator(WeaselCompiler compiler, WeaselKeyWordCompilerHelper compilerHelper, WeaselGenericClass write, WeaselGenericClass expect,
    WeaselGenericClass elementParent, boolean isVariable, int i) throws WeaselCompilerException {
    if(i==-1 || i==operators.size())
      return level.get(0).compile(compiler, compilerHelper, null, expect, elementParent, isVariable);
    WeaselToken operator = operators.get(i);
    Properties oper = (Properties)operator.param;
    WeaselInstructionList instructions;
    WeaselCompilerReturn wcr;
    WeaselGenericClass ret;
    if(oper==WeaselOperator.INSTANCEOF){
      WeaselInstanceofToken wit = (WeaselInstanceofToken) operator;
View Full Code Here

    if(i==-1)
      return level.get(0).compile(compiler, compilerHelper, write, expect, elementParent, isVariable);
    if(i==operators.size())
      return level.get(operators.size()).compile(compiler, compilerHelper, write, expect, elementParent, isVariable);
    WeaselToken operator = operators.get(i);
    Properties oper = (Properties)operator.param;
    WeaselInstructionList instructions = new WeaselInstructionList();
    WeaselCompilerReturn wcr;
    WeaselGenericClass ret;
    WeaselGenericClass wgc;
    if(oper==WeaselOperator.COMMA){
View Full Code Here

TOP

Related Classes of weasel.compiler.WeaselOperator.Properties

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.