title: Translator: pseudo-code to a concrete language (PHP, JAVA) library suggestion
body: <p>I'm building a visual programming tool and was wondering if you could suggest a library or even throw at me ideas about a tool that I can build myself that translates the pseudo-code to a concrete language as PHP, JAVA. For example for a pseudocode like that:</p>
  
  <pre><code>do i = 1 to 100 
     print "Hello World !!!";
     newline;
  end do
  </code></pre>
  
  <p>I would like to get something similar to:</p>
  
  <p>in <strong>PHP</strong>:</p>
  
  <pre><code>for ($i = 1; $x &lt;= 100; $x++) {
      echo "Hello World !!!";
      echo PHP_EOL;
  }
  </code></pre>
  
  <p>in <strong>Java</strong>:</p>
  
  <pre><code>for(int i = 1; x &lt;= 100; x++) {
      System.out.print("Hello World !!!");
      System.out.print("\n");
  }
  </code></pre>
  
  <p>I don't just want a translator from PHP to Java or vise versa.
  I guess my question is: Will I be able to generate code in all kinds of languages after specifying some basic language structure rules and writing the pseudo-code? I want to break the gap between the pseudocode and code in a concrete language so I won't need to translate the code by hand. Also by writing the algorithm in pseudocode once, I would generate the code in a whatever language I want.</p>
  
  <p>Thank you for your feedback!</p>
  
  <p><strong>edit:</strong> ok, so not "pseudo" code then, defining a language that will work as a intermediate. Does any one have a suggested library for that I can look into?</p>