Home
last modified time | relevance | path

Searched refs:Token (Results 1 - 17 of 17) sorted by relevance

/drivers/hdf_core/framework/tools/hdi-gen/lexer/
H A Dlexer.h40 Token PeekToken(bool skipComment = true);
42 Token GetToken(bool skipComment = true);
62 void ReadToken(Token &token, bool skipComment = true);
64 void InitCurToken(Token &token);
66 void ReadId(Token &token);
68 void ReadNum(Token &token);
70 void ReadBinaryNum(Token &token);
72 void ReadOctNum(Token &token);
74 void ReadHexNum(Token &token);
76 void ReadDecNum(Token
[all...]
H A Dtoken.h96 struct Token { struct
105 bool operator()(const Token &lhs, const Token &rhs) const in operator ()()
111 std::string LocInfo(const Token &token);
H A Dlexer.cpp94 Token Lexer::PeekToken(bool skipComment) in PeekToken()
103 Token Lexer::GetToken(bool skipComment) in GetToken()
163 Token token = PeekToken(); in SkipUntilToken()
176 void Lexer::ReadToken(Token &token, bool skipComment) in ReadToken()
222 void Lexer::InitCurToken(Token &token) in InitCurToken()
231 void Lexer::ReadId(Token &token) in ReadId()
255 void Lexer::ReadNum(Token &token) in ReadNum()
281 void Lexer::ReadBinaryNum(Token &token) in ReadBinaryNum()
303 void Lexer::ReadOctNum(Token &token) in ReadOctNum()
326 void Lexer::ReadHexNum(Token
[all...]
H A Dtoken.cpp20 std::string Token::Dump() in Dump()
28 std::string LocInfo(const Token &token) in LocInfo()
/drivers/hdf_core/framework/tools/hc-gen/src/
H A Dtoken.cpp46 std::ostream &OHOS::Hardware::operator<<(std::ostream &stream, const OHOS::Hardware::Token &token) in operator <<()
48 stream << "Token: type: " << std::setw(WIDTH_EIGHT) << ::std::left << TokenType2String(token.type); in operator <<()
57 Token::Token() : type(0), strval(), numval(0), src(), lineNo(0) {}
59 bool Token::operator==(int32_t otherType) const
64 bool Token::operator!=(int32_t otherType) const
68 bool Token::operator==(const Token &token) const
73 bool Token::operator!=(const Token
[all...]
H A Dtoken.h31 struct Token { struct
38 Token();
39 bool operator==(const Token &token) const;
40 bool operator!=(const Token &token) const;
43 friend std::ostream &operator<<(std::ostream &stream, const Token &token);
46 std::ostream &operator<<(std::ostream &stream, const Token &token);
H A Dparser.h43 std::shared_ptr<AstObject> ParseNodeCopy(Token &name);
45 std::shared_ptr<AstObject> ParseNodeRef(Token &name);
47 std::shared_ptr<AstObject> ParseNodeDelete(Token &name);
49 std::shared_ptr<AstObject> ParseNodeInherit(Token &name);
51 std::shared_ptr<AstObject> ParseNode(Token &name, bool bracesStart = false);
53 std::shared_ptr<AstObject> ParseTerm(Token &name);
55 std::shared_ptr<AstObject> ParseNodeWithRef(Token name);
62 Token current_;
H A Dlexer.h29 bool Lex(Token &token);
31 bool SetTokenCharacter(char c, Token &token);
44 void InitToken(Token &token) const;
60 bool LexInclude(Token &token);
62 bool LexFromString(Token &token);
64 bool LexFromNumber(Token &token);
68 void LexFromLiteral(Token &token);
H A Dlexer.cpp51 bool Lexer::SetTokenCharacter(char c, Token &token) in SetTokenCharacter()
82 bool Lexer::Lex(Token &token) in Lex()
238 void Lexer::InitToken(Token &token) const in InitToken()
247 bool Lexer::LexFromString(Token &token) in LexFromString()
297 bool Lexer::LexFromNumber(Token &token) in LexFromNumber()
343 void Lexer::LexFromLiteral(Token &token) in LexFromLiteral()
394 bool Lexer::LexInclude(Token &token) in LexInclude()
H A Dparser.cpp170 std::shared_ptr<AstObject> Parser::ParseNode(Token &name, bool bracesStart) in ParseNode()
209 std::shared_ptr<AstObject> Parser::ParseTerm(Token &name) in ParseTerm()
299 std::shared_ptr<AstObject> Parser::ParseNodeWithRef(Token name) in ParseNodeWithRef()
321 std::shared_ptr<AstObject> Parser::ParseNodeCopy(Token &name) in ParseNodeCopy()
338 std::shared_ptr<AstObject> Parser::ParseNodeRef(Token &name) in ParseNodeRef()
357 std::shared_ptr<AstObject> Parser::ParseNodeDelete(Token &name) in ParseNodeDelete()
371 std::shared_ptr<AstObject> Parser::ParseNodeInherit(Token &name) in ParseNodeInherit()
H A Dast.h55 AstObject(const std::string &name, uint32_t type, uint64_t integerValue, const Token &bindToken);
57 AstObject(const std::string &name, uint32_t type, const std::string &strValue, const Token &bindToken);
154 ConfigNode(Token &name, uint32_t nodeType, const std::string &refName);
219 ConfigTerm(Token &name, const std::shared_ptr<AstObject> &value);
254 explicit ConfigArray(const Token &bindToken);
H A Dast.cpp49 AstObject::AstObject(const std::string &name, uint32_t type, uint64_t integerValue, const Token &bindToken) in AstObject()
64 AstObject::AstObject(const std::string &name, uint32_t type, const std::string &strValue, const Token &bindToken) in AstObject()
447 ConfigNode::ConfigNode(Token &name, uint32_t nodeType, const std::string &refName)
735 ConfigTerm::ConfigTerm(Token &name, const std::shared_ptr<AstObject> &value)
846 ConfigArray::ConfigArray(const Token &bindToken)
/drivers/hdf_core/framework/tools/hdi-gen/parser/
H A Dparser.cpp117 Token token = lexer_.PeekToken(false); in ParseLicense()
128 Token token = lexer_.PeekToken(); in ParsePackage()
188 Token token = lexer_.PeekToken(); in ParseImports()
223 Token token = lexer_.PeekToken(); in ParseImportInfo()
255 Token token = lexer_.PeekToken(); in ParseSequenceableInfo()
281 Token token = lexer_.PeekToken(); in ParseTypeDecls()
312 Token token = lexer_.PeekToken(); in ParseAttribute()
336 Token token = lexer_.PeekToken(); in ParseAttributeInfo()
371 Token token = lexer_.PeekToken(); in AprseAttrUnit()
401 Token toke in ParseInterface()
[all...]
H A Dparser.h29 using AttrSet = std::set<Token, TokenTypeCompare>;
92 void CheckInterfaceAttr(const AutoPtr<ASTInterfaceType> &interface, Token token);
176 bool CheckType(const Token &token, const AutoPtr<ASTType> &type);
178 bool CheckTypeByMode(const Token &token, const AutoPtr<ASTType> &type);
205 inline static bool IsPrimitiveType(Token token) in IsPrimitiveType()
214 void LogError(const Token &token, const std::string &message);
/drivers/hdf_core/framework/tools/hc-gen/
H A Dhcs_build_info.py23 class Token(object): class
62 self.cur_token = Token(os.path.basename(idl_file_path),
/drivers/hdf_core/framework/tools/hdi-gen/preprocessor/
H A Dpreprocessor.cpp150 Token token = lexer.PeekToken(); in ParsePackage()
182 Token token = lexer.PeekToken(); in ParseImports()
/drivers/hdf_core/framework/tools/hdi-gen/
H A Dbuild_hdi_files_info.py28 class Token(object): class
74 self.cur_token = Token(os.path.basename(idl_file_path),

Completed in 10 milliseconds