File System mit einen Argument
Dependencies: mbed
Diff: parser.h
- Revision:
- 0:6791a518728e
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/parser.h Mon Nov 14 17:07:21 2016 +0000 @@ -0,0 +1,18 @@ +#include "mbed.h" +#include <string> + +// #define ValidKEYWORDS 5 +#define UNVALID_ARG -100 +#define ERROR_DEF 255 +#define REPEAT_DEF 1 +#define GOTO_DEF 2 + +// global vars +extern const string keywords[]; // defined in interpreter.cpp +extern int validKeyWords; + +// functions +char* normalizeStr(char* theArr); // reduce whitespaces, etc. +// bool getArg(int16_t myCom[], string myItem); // keyword specific argument handling +bool parseLine(string line, int16_t command[]); // parse a normalized command line +