IPS(Interpreter for Process Structures) for mbed

Dependencies:   ConfigFile FATFileSystem mbed

IPS port from linux/unix version.

mbed_blinky.ips

0 VAR led1
" LED1 " DigitalOut led1 !
: main
    ANFANG
    1 JA?
      1 led1 @ write
      200 wait_ms
      0 led1 @ write
      200 wait_ms
    DANN/NOCHMAL
;
main
Revision:
3:9f526f0d9720
Parent:
2:908338b1151a
Child:
4:b62b40563944
--- a/main.cpp	Sat May 23 16:50:59 2015 +0900
+++ b/main.cpp	Sat May 23 09:14:47 2015 +0000
@@ -6,15 +6,16 @@
 #include "VirtualRAM.h"
 #include "IPS-Mmbed_bin.h"
 #include "mbedAPI.h"
-#include "SDFileSystem.h"
 #include "ConfigFile.h"
 
 const char* CFG_FILE = "/local/ips.cfg";
 
-#ifdef TARGET_FF_ARDUINO
-#define MBED_SPI0 D11, D12, D13, D4
+#if defined(TARGET_MBED_LPC1768)
+LocalFileSystem local("local");
+#else
+#include "SDFileSystem.h"
+SDFileSystem local(D11, D12, D13, D4, "local");  //  mosi, miso, sclk, cs, name
 #endif
-SDFileSystem local(MBED_SPI0, "local");  //  mosi, miso, sclk, cs, name
 
 RawSerial pc(USBTX,USBRX);