Package org.apache.etch.compiler

Examples of org.apache.etch.compiler.Token


      return "EtchNativeArray<" + this.getNativeTypeName( type, true ) + "Ptr> ";
    }
  }

  public String getNativeTypeName(TypeRef type, boolean etch_type) {
    Token t = type.type();
    switch (t.kind) {
    case EtchGrammarConstants.VOID:
      return "void";
    case EtchGrammarConstants.BOOLEAN:
      return (etch_type ? "EtchBool" : "capu::bool_t");
View Full Code Here


   * @param type
   *          the etch type
   * @return the fundamental native reference type for cpp.
   */
  public String getPointerTypeName(TypeRef type) {
    Token t = type.type();
    switch (t.kind) {
    case EtchGrammarConstants.VOID:
      return "void";
    case EtchGrammarConstants.BOOLEAN:
      return "EtchBoolPtr";
View Full Code Here

    return msg.getAsyncReceiver().toString().toLowerCase();
  }

  @Override
  public String getTypeValue(TypeRef type, Token value) {
    Token t = type.type();
    switch (t.kind) {
    case EtchGrammarConstants.LONG:
      return value.image + "LL";
    case EtchGrammarConstants.FLOAT:
    case EtchGrammarConstants.DOUBLE:
View Full Code Here

  public String getNativeTypeName(TypeRef type, boolean addStruct, boolean etch_type) {
    if (type.isArray()) {
      return (etch_type ? "etch_arraytype" : "etch_arraytype*");
    }
   
    Token t = type.type();
    switch (t.kind) {
    case EtchGrammarConstants.VOID:
      return "void";
    case EtchGrammarConstants.BOOLEAN:
      return (etch_type ? "etch_boolean" : "boolean");
View Full Code Here

   *         etch_int32*, while etch string -> etch_string*.
   */
  public String getPointerTypeName(TypeRef type) {
    if (type.isArray())
      return "etch_arraytype*";
    Token t = type.type();

    switch (t.kind) {
    case EtchGrammarConstants.VOID:
      return "void*";
    case EtchGrammarConstants.BOOLEAN:
View Full Code Here

TOP

Related Classes of org.apache.etch.compiler.Token

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.