File System mit einen Argument
Dependencies: mbed
parser.h@0:6791a518728e, 2016-11-14 (annotated)
- Committer:
- schoeni_91
- Date:
- Mon Nov 14 17:07:21 2016 +0000
- Revision:
- 0:6791a518728e
File System mit einen Argument
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
schoeni_91 | 0:6791a518728e | 1 | #include "mbed.h" |
schoeni_91 | 0:6791a518728e | 2 | #include <string> |
schoeni_91 | 0:6791a518728e | 3 | |
schoeni_91 | 0:6791a518728e | 4 | // #define ValidKEYWORDS 5 |
schoeni_91 | 0:6791a518728e | 5 | #define UNVALID_ARG -100 |
schoeni_91 | 0:6791a518728e | 6 | #define ERROR_DEF 255 |
schoeni_91 | 0:6791a518728e | 7 | #define REPEAT_DEF 1 |
schoeni_91 | 0:6791a518728e | 8 | #define GOTO_DEF 2 |
schoeni_91 | 0:6791a518728e | 9 | |
schoeni_91 | 0:6791a518728e | 10 | // global vars |
schoeni_91 | 0:6791a518728e | 11 | extern const string keywords[]; // defined in interpreter.cpp |
schoeni_91 | 0:6791a518728e | 12 | extern int validKeyWords; |
schoeni_91 | 0:6791a518728e | 13 | |
schoeni_91 | 0:6791a518728e | 14 | // functions |
schoeni_91 | 0:6791a518728e | 15 | char* normalizeStr(char* theArr); // reduce whitespaces, etc. |
schoeni_91 | 0:6791a518728e | 16 | // bool getArg(int16_t myCom[], string myItem); // keyword specific argument handling |
schoeni_91 | 0:6791a518728e | 17 | bool parseLine(string line, int16_t command[]); // parse a normalized command line |
schoeni_91 | 0:6791a518728e | 18 |