Own fork of MbedSmartRestMain
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
util/lex.h@138:f8ab852e83e7, 2016-08-08 (annotated)
- Committer:
- xinlei
- Date:
- Mon Aug 08 11:05:57 2016 +0000
- Revision:
- 138:f8ab852e83e7
- Parent:
- 134:c4009ecaf5c0
Etisalat and Teleena APN.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
xinlei | 93:61d44636f020 | 1 | #ifndef LEX_H |
xinlei | 93:61d44636f020 | 2 | #define LEX_H |
xinlei | 93:61d44636f020 | 3 | #include <stddef.h> |
xinlei | 93:61d44636f020 | 4 | |
xinlei | 93:61d44636f020 | 5 | struct Token |
xinlei | 93:61d44636f020 | 6 | { |
xinlei | 134:c4009ecaf5c0 | 7 | enum TokType { |
xinlei | 98:e369fc75c000 | 8 | INT, FLOAT, STRING, |
xinlei | 98:e369fc75c000 | 9 | ASSIGN, SEMICOLON, |
xinlei | 98:e369fc75c000 | 10 | NONE, ERROR |
xinlei | 93:61d44636f020 | 11 | } type; |
xinlei | 93:61d44636f020 | 12 | const char *p; |
xinlei | 93:61d44636f020 | 13 | size_t len; |
xinlei | 93:61d44636f020 | 14 | }; |
xinlei | 93:61d44636f020 | 15 | |
xinlei | 93:61d44636f020 | 16 | const char* skipHTTPHeader(const char* p); |
xinlei | 93:61d44636f020 | 17 | const char* lex(const char*, Token&); |
xinlei | 98:e369fc75c000 | 18 | const char* lexConfig(const char* p, Token& tok); |
xinlei | 93:61d44636f020 | 19 | size_t strncpyEscape(char*, const char*, size_t); |
xinlei | 93:61d44636f020 | 20 | |
xinlei | 93:61d44636f020 | 21 | #endif /* LEX_H */ |