Changeset 7 for trunk/dxmp.sxmp

Show
Ignore:
Timestamp:
03/10/07 10:00:34 (2 years ago)
Author:
rubikitch
Message:

Added simplest example.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/dxmp.sxmp

    r5 r7  
    11$ build dxmp 
    22Files are up to date, no build required. 
     3$ cat simple.rb 
     4# Example of Ruby's xmpfilter 
     51+1                             # => 
     6"aa".length                     # => 
     7$ xmpfilter simple.rb 
     8# Example of Ruby's xmpfilter 
     91+1                             # => 2 
     10"aa".length                     # => 2 
     11$ cat simple.d 
     12// Example of D's dxmp 
     13int main(char[][] argv) { 
     14    1+1;                        // => 
     15    "aa".length;                // => 
     16    return 0; 
     17} 
     18$ ./dxmp simple.d 
     19// Example of D's dxmp 
     20int main(char[][] argv) { 
     21    cast(void)(1+1);                        // => 2 
     22    cast(void)("aa".length);                // => 2 
     23    return 0; 
     24} 
    325$ cat dxmp_testcases.d 
    426private import std.stdio;