/*
 * This file is released under terms of BSD license
 * See LICENSE file for more information
 */
package claw.wani.transformation;

import claw.wani.language.ClawPragma;
import claw.wani.transformation.ClawTransformation;
import claw.shenron.transformation.Transformation;
import claw.shenron.translator.Translator;
import claw.tatsu.xcodeml.xnode.common;

/**
 * Simple transformation for documentation example
 */
public class MyFirstTransformation extends ClawTransformation {

  // Constructor that received the analyzed pragma as argument
  public MyFirstTransformation(ClawPragma directive) {
    super(directive);
  }

  // The analyzis step
  public boolean analyze(XcodeProgram xcodeml, Translator translator) {
    return true;
  }

  // The transformation step
  public void transform(XcodeProgram xcodeml, Translator translator,
                        Transformation other) throws Exception
  {
    removePragma();
  }

  // Only used by dependent transformation
  public boolean canBeTransformedWith(Transformation other) {
    return false; // Independent transformation
  }
}

@@ -132,46 +132,8 @@
 n;%0A%0A
-import claw.wani.language.ClawPragma;%0A
 impo
@@ -312,17 +312,32 @@
 e.common
-;
+.XcodeProgram;  
 %0A%0A/**%0A *
@@ -987,16 +987,76 @@
 medWith(
+XcodeProgram xcodeml,%0A                                      
 Transfor

Update example