Official reference client implementation for Cumulocity SmartREST on u-blox C027.
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
util/lex.h@99:e369fc75c000, 2015-05-07 (annotated)
- Committer:
- xinlei
- Date:
- Thu May 07 09:57:55 2015 +0000
- Revision:
- 99:e369fc75c000
- Parent:
- 95:010b0f7a0a1a
- Child:
- 135:c4009ecaf5c0
prepare for v2.1rc3.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
xinlei | 94:61d44636f020 | 1 | #ifndef LEX_H |
xinlei | 94:61d44636f020 | 2 | #define LEX_H |
xinlei | 94:61d44636f020 | 3 | #include <stddef.h> |
xinlei | 94:61d44636f020 | 4 | |
xinlei | 94:61d44636f020 | 5 | struct Token |
xinlei | 94:61d44636f020 | 6 | { |
xinlei | 99:e369fc75c000 | 7 | enum TokType { |
xinlei | 99:e369fc75c000 | 8 | INT, FLOAT, STRING, |
xinlei | 99:e369fc75c000 | 9 | ASSIGN, SEMICOLON, |
xinlei | 99:e369fc75c000 | 10 | NONE, ERROR |
xinlei | 94:61d44636f020 | 11 | } type; |
xinlei | 94:61d44636f020 | 12 | const char *p; |
xinlei | 94:61d44636f020 | 13 | size_t len; |
xinlei | 94:61d44636f020 | 14 | }; |
xinlei | 94:61d44636f020 | 15 | |
xinlei | 94:61d44636f020 | 16 | const char* skipHTTPHeader(const char* p); |
xinlei | 94:61d44636f020 | 17 | const char* lex(const char*, Token&); |
xinlei | 99:e369fc75c000 | 18 | const char* lexConfig(const char* p, Token& tok); |
xinlei | 94:61d44636f020 | 19 | size_t strncpyEscape(char*, const char*, size_t); |
xinlei | 94:61d44636f020 | 20 | |
xinlei | 94:61d44636f020 | 21 | #endif /* LEX_H */ |