Examples of XIdent


Examples of xscript.compiler.XTree.XIdent

    String name = ident();
    while(token.kind==XTokenKind.ELEMENT){
      nextToken();
      name += "."+ident();
    }
    return new XIdent(endLineBlock(), name);
  }
View Full Code Here

Examples of xscript.compiler.XTree.XIdent

    return new XImport(token.lineDesk, "!error!", false, false);
  }
 
  public XType makeType(){
    startLineBlock();
    XIdent name;
    List<XType> typeParam = null;
    if(token.kind==XTokenKind.BOOL || token.kind==XTokenKind.BYTE || token.kind==XTokenKind.SHORT ||
        token.kind==XTokenKind.CHAR || token.kind==XTokenKind.INT || token.kind==XTokenKind.FLOAT ||
        token.kind==XTokenKind.DOUBLE || token.kind==XTokenKind.VOID){
      name = new XIdent(new XLineDesk(token.lineDesk), token.kind.name);
      nextToken();
    }else{
      name = qualident();
      if(token.kind==XTokenKind.SMALLER){
        nextToken();
View Full Code Here

Examples of xscript.compiler.XTree.XIdent

    return list;
  }
 
  public XTypeParam makeTypeParam(){
    startLineBlock();
    XIdent name = qualident();
    boolean isSuper = false;
    List<XType> extend = null;
    if(token.kind==XTokenKind.EXTENDS || token.kind==XTokenKind.COLON){
      nextToken();
      extend = makeTypeList(XTokenKind.AND);
View Full Code Here

Examples of xscript.compiler.XTree.XIdent

      nextToken();
      return new XConstant(oldToken.lineDesk, XTag.NULL, oldToken.param);
    case NEW:
      startLineBlock();
      nextToken();
      XIdent className = qualident();
      if(token.kind==XTokenKind.LINDEX){
       
      }else{
        List<XStatement> params = makeMethodCallParamList();
        return new XNew(endLineBlock(), className, params);
View Full Code Here

Examples of xscript.compiler.XTree.XIdent

 
  public XTree makeTree(){
    startLineBlock();
    List<XTree> defs = new ArrayList<XTree>();
    List<XAnnotation> annotations = null;
    XIdent packageName = null;
    XModifier modifier = makeModifier();
    if(token.kind==XTokenKind.PACKAGE){
      annotations = modifier.annotations;
      if(modifier.modifier!=0){
        parserMessage(XMessageLevel.ERROR, "modifier.not_expected", xscript.runtime.XModifier.toString(modifier.modifier));
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.