Own fork of MbedSmartRestMain
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
util/lex.h@98:e369fc75c000, 2015-05-07 (annotated)
- Committer:
- xinlei
- Date:
- Thu May 07 09:57:55 2015 +0000
- Revision:
- 98:e369fc75c000
- Parent:
- 94:010b0f7a0a1a
- Child:
- 134:c4009ecaf5c0
prepare for v2.1rc3.
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 | 98:e369fc75c000 | 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 */ |