Own fork of MbedSmartRestMain

Dependencies:   C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed

Fork of MbedSmartRestMain by Cumulocity Official

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?

UserRevisionLine numberNew 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 */