Package org.z.lexer.grammar

Examples of org.z.lexer.grammar.Type


    cf.appendContent("struct " + c.getFullName().replace('.', '_') + " {\n");
    for(org.z.lexer.grammar.Method m : c.getBody().getMethods()) {
      cf.appendContent("\t" + jTags(m));
     
      // return type
      Type returnType = m.getReturnType();
     
      // null returnType means it must be a constructor
      if(returnType == null) {
        cf.appendContent("void (*" + m.getName());
      }
      else {
        returnType.resolveType(f);
        //org.z.compiler.c.Type.register(returnType, cf, f);
        cf.appendContent(Method.getCType(returnType, "struct ") + " (*" + m.getName());
      }
     
      // method pointer
View Full Code Here

TOP

Related Classes of org.z.lexer.grammar.Type

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.