Home
last modified time | relevance | path

Searched refs:token (Results 1 - 25 of 64) sorted by relevance

123

/arkcompiler/runtime_core/assembler/utils/
H A Dnumber-utils.h31 inline bool IsHexNumber(const std::string_view &token) in IsHexNumber() argument
33 for (auto i : token) { in IsHexNumber()
41 inline bool IsBinaryNumber(const std::string_view &token) in IsBinaryNumber() argument
43 for (auto i : token) { in IsBinaryNumber()
51 inline bool IsOctalNumber(const std::string_view &token) in IsOctalNumber() argument
53 for (auto i : token) { in IsOctalNumber()
65 std::string_view token = p; in ValidateInteger() local
67 if (token.back() == '-' || token.back() == '+' || token in ValidateInteger()
133 std::string_view token = p; ValidateFloat() local
[all...]
/arkcompiler/runtime_core/static_core/assembler/utils/
H A Dnumber-utils.cpp61 std::string_view token = p; in ValidateInteger() local
63 if (token.back() == '-' || token.back() == '+' || token.back() == 'x' || token == ".") { in ValidateInteger()
67 if (token[0] == '-' || token[0] == '+') { in ValidateInteger()
68 token.remove_prefix(1); in ValidateInteger()
71 if (token[0] == '0' && token in ValidateInteger()
96 std::string_view token = p; ValidateFloat() local
[all...]
H A Dnumber-utils.h33 inline bool ValidateXToken(std::string_view token, size_t shift) in ValidateXToken() argument
35 token.remove_prefix(shift); in ValidateXToken()
37 for (auto i : token) { in ValidateXToken()
46 inline bool ValidateBToken(std::string_view token, size_t shift) in ValidateBToken() argument
48 token.remove_prefix(shift); in ValidateBToken()
49 if (token.empty()) { in ValidateBToken()
52 for (auto i : token) { in ValidateBToken()
61 inline bool ValidateZeroToTenToken(std::string_view token) in ValidateZeroToTenToken() argument
63 token.remove_prefix(1); in ValidateZeroToTenToken()
65 for (auto i : token) { in ValidateZeroToTenToken()
[all...]
/arkcompiler/runtime_core/assembler/
H A Dcontext.cpp34 token = std::string_view(&*(tokens[number - 1].whole_line.begin() + tokens[number - 1].bound_left), in Make()
42 return token.size(); in Len()
47 if (token[0] == c) { in ValidateRegisterName()
48 std::string_view p = token; in ValidateRegisterName()
80 if (token[0] == 'a') { in ValidateParameterName()
81 std::string_view p = token; in ValidateParameterName()
95 return token; in GiveToken()
141 token = std::string_view(&*(tokens[number - 1].whole_line.begin() + tokens[number - 1].bound_left), in operator ++()
157 token = std::string_view(&*(tokens[number - 1].whole_line.begin() + tokens[number - 1].bound_left), in operator ++()
178 token in operator --()
[all...]
H A Dassembly-context.h34 * Returns current value of a token
36 * sets the next token value
37 * returns current value of a token
39 * sets the next token value
40 * returns the next value of a token
44 std::string_view token; /* current token */ member
45 std::vector<panda::pandasm::Token> tokens; /* token list */
48 Token::Type id = Token::Type::ID_BAD; /* current token type */
49 Token::Type signop = Token::Type::ID_BAD; /* current token operan
[all...]
/arkcompiler/runtime_core/static_core/assembler/
H A Dcontext.cpp34 token = std::string_view(&*(tokens[number - 1].wholeLine.begin() + tokens[number - 1].boundLeft), in Make()
42 return token.size(); in Len()
47 std::string_view p = token; in ValidateFoundedRegisterName()
72 if (token[0] == c) { in ValidateRegisterName()
85 if (token[0] == 'a') { in ValidateParameterName()
86 std::string_view p = token; in ValidateParameterName()
100 return token; in GiveToken()
146 token = std::string_view(&*(tokens[number - 1].wholeLine.begin() + tokens[number - 1].boundLeft), in operator ++()
162 token = std::string_view(&*(tokens[number - 1].wholeLine.begin() + tokens[number - 1].boundLeft), in operator ++()
183 token in operator --()
[all...]
H A Dassembly-context.h35 * Returns current value of a token
37 * sets the next token value
38 * returns current value of a token
40 * sets the next token value
41 * returns the next value of a token
45 std::string_view token; /* current token */ member
46 std::vector<ark::pandasm::Token> tokens; /* token list */
49 Token::Type id = Token::Type::ID_BAD; /* current token type */
50 Token::Type signop = Token::Type::ID_BAD; /* current token operan
[all...]
/arkcompiler/ets_frontend/ets2panda/ir/
H A DsrcDump.h20 #include <lexer/token/sourceLocation.h>
21 #include <lexer/token/tokenType.h>
H A DastDump.h20 #include "lexer/token/sourceLocation.h"
21 #include "lexer/token/tokenType.h"
22 #include "lexer/token/number.h"
95 Property(const char *key, lexer::TokenType token) : key_(key), value_(token) {} in Property() argument
235 void SerializeToken(lexer::TokenType token);
/arkcompiler/toolchain/build/toolchain/
H A Dclang_static_analyzer_wrapper.py40 # Prepends every element of a list |args| with |token|.
43 def interleave_args(args, token):
44 return list(sum(zip([token] * len(args), args), ()))
/arkcompiler/runtime_core/compiler/optimizer/templates/
H A Dinstructions.rb94 @tokens.each do |token|
95 if IR::types.include?(token)
96 @types << token
99 resolved = TYPE_ALIASES[token]
104 @aux_types << token
129 raise "No cpp token for type #{t}" unless CPP_IR_TYPES.include?(t.to_s)
/arkcompiler/runtime_core/static_core/compiler/optimizer/templates/
H A Dinstructions.rb94 @tokens.each do |token|
95 if IR::types.include?(token)
96 @types << token
99 resolved = TYPE_ALIASES[token]
104 @aux_types << token
129 raise "No cpp token for type #{t}" unless CPP_IR_TYPES.include?(t.to_s)
/arkcompiler/ets_frontend/es2panda/ir/
H A DastDump.h20 #include <lexer/token/sourceLocation.h>
21 #include <lexer/token/tokenType.h>
80 Property(const char *key, lexer::TokenType token) : key_(key), value_(token) {} in Property() argument
193 void SerializeToken(lexer::TokenType token);
H A DvalidationInfo.h19 #include <lexer/token/sourceLocation.h>
/arkcompiler/ets_runtime/ecmascript/ohos/
H A Daot_runtime_info.h293 char *token = strtok_r(buffer, OhosConstants::SPLIT_STR, &saveptr); in GetInfoFromBuffer() local
296 token = strtok_r(NULL, OhosConstants::SPLIT_STR, &saveptr); in GetInfoFromBuffer()
298 return token; in GetInfoFromBuffer()
374 char *token; in GetRuntimeInfoByPath() local
378 token = strtok_r(buffer, "\n", &saveptr); in GetRuntimeInfoByPath()
379 while (token != NULL) { in GetRuntimeInfoByPath()
380 if (strcmp(GetInfoFromBuffer(token, RUNTIME_INDEX_BUILDID), soBuildId) == 0 && in GetRuntimeInfoByPath()
382 strcpy_s(lines[lineCount], BUFFER_SIZE, token) == 0) { in GetRuntimeInfoByPath()
385 token = strtok_r(NULL, "\n", &saveptr); in GetRuntimeInfoByPath()
/arkcompiler/ets_frontend/es2panda/lexer/
H A DkeywordsUtil.h21 #include <lexer/token/letters.h>
22 #include <lexer/token/tokenType.h>
H A Dlexer.h20 #include <lexer/token/letters.h>
21 #include <lexer/token/token.h>
46 Token token {};
H A DkeywordString.h19 #include <lexer/token/tokenType.h>
/arkcompiler/runtime_core/static_core/scripts/intrusive-testing/
H A Dintrusive_instrumentator.py628 for token in tu.get_tokens(extent=tu.cursor.extent):
629 if(token.kind != TokenKind.COMMENT):
631 match = re.match(r'\s*/\*\s*@sync\s+([0-9]+).*', token.spelling)
639 self.__clear_candidates_by_token(candidates, token)
642 self.__sync_point_to_line[sync_point] = token.extent.end.line + 1
660 def __clear_candidates_by_token(self, candidates, token):
665 need_continue = self.__check_for_method(candidates, token, i)
668 if(not(self.__is_kind_of_libclang_class(token.cursor.kind)) \
669 or (token.cursor.spelling != candidates[i].cl)):
676 def __check_for_method(self, candidates, token,
[all...]
/arkcompiler/runtime_core/libpandabase/os/
H A Dstacktrace.cpp64 std::string token; in Next() local
66 token = str_.substr(pos_); in Next()
69 token = str_.substr(pos_, pos - pos_); in Next()
72 return token; in Next()
/arkcompiler/runtime_core/static_core/libpandabase/os/
H A Dstacktrace.cpp64 std::string token; in Next() local
66 token = str_.substr(pos_); in Next()
69 token = str_.substr(pos_, pos - pos_); in Next()
72 return token; in Next()
/arkcompiler/ets_frontend/es2panda/util/
H A DsymbolTable.cpp157 auto token = input.substr(lastPos, curPos - lastPos); in GetStringItems() local
158 if (!token.empty()) { in GetStringItems()
159 items.push_back(token); in GetStringItems()
/arkcompiler/ets_frontend/es2panda/lexer/token/
H A Dtoken.h19 #include <lexer/token/sourceLocation.h>
20 #include <lexer/token/tokenType.h>
/arkcompiler/ets_frontend/es2panda/typescript/types/
H A DtypeRelation.h19 #include <lexer/token/sourceLocation.h>
20 #include <lexer/token/tokenType.h>
/arkcompiler/ets_frontend/ets2panda/lexer/
H A Dlexer.h21 #include "lexer/token/letters.h"
22 #include "lexer/token/token.h"
121 auto token = GetToken(); in TryEatTokenType() local
122 if (token.Type() == type) { in TryEatTokenType()
131 auto token = GetToken(); in TryEatTokenKeyword() local
132 if (token.KeywordType() == type) { in TryEatTokenKeyword()
134 return token; in TryEatTokenKeyword()

Completed in 11 milliseconds

123