Home
last modified time | relevance | path

Searched refs:tokens (Results 1 – 6 of 6) sorted by relevance

/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A Dpetscopt.pxi218 cdef list tokens = []
223 tokens.append(bytes2str(p))
227 return tokens
239 cdef gettok(tokens): argument
240 if tokens:
241 return tokens.pop(0)
257 tokens = tokenize(options)
259 tokens = list(options)
263 first = gettok(tokens)
267 first = gettok(tokens)
[all …]
/petsc/src/sys/objects/
H A Doptions.c453 const char *tokens[4]; in PetscOptionsInsertFilePetsc() local
466 PetscCall(PetscMemzero(tokens, sizeof(tokens))); in PetscOptionsInsertFilePetsc()
498 PetscCall(PetscTokenFind(token, &tokens[0])); in PetscOptionsInsertFilePetsc()
499 if (!tokens[0]) { in PetscOptionsInsertFilePetsc()
501 } else if (!tokens[0][0]) { /* if token 0 is empty (string begins with spaces), redo */ in PetscOptionsInsertFilePetsc()
502 PetscCall(PetscTokenFind(token, &tokens[0])); in PetscOptionsInsertFilePetsc()
504 for (PetscInt i = 1; i < 4; i++) PetscCall(PetscTokenFind(token, &tokens[i])); in PetscOptionsInsertFilePetsc()
505 if (!tokens[0]) { in PetscOptionsInsertFilePetsc()
507 } else if (tokens[0][0] == '-') { in PetscOptionsInsertFilePetsc()
508 PetscCall(PetscOptionsValidKey(tokens[0], &valid)); in PetscOptionsInsertFilePetsc()
[all …]
/petsc/src/sys/yaml/src/
H A Dscanner.c765 *token = DEQUEUE(parser, parser->tokens); in yaml_parser_scan()
811 if (parser->tokens.head == parser->tokens.tail) in yaml_parser_fetch_more_tokens()
1115 parser->tokens_parsed + (parser->tokens.tail - parser->tokens.head); in yaml_parser_save_simple_key()
1234 if (!ENQUEUE(parser, parser->tokens, token)) in yaml_parser_roll_indent()
1239 parser->tokens, number - parser->tokens_parsed, token)) in yaml_parser_roll_indent()
1272 if (!ENQUEUE(parser, parser->tokens, token)) in yaml_parser_unroll_indent()
1315 if (!ENQUEUE(parser, parser->tokens, token)) in yaml_parser_fetch_stream_start()
1353 if (!ENQUEUE(parser, parser->tokens, token)) in yaml_parser_fetch_stream_end()
1387 if (!ENQUEUE(parser, parser->tokens, token)) { in yaml_parser_fetch_directive()
1434 if (!ENQUEUE(parser, parser->tokens, token)) in yaml_parser_fetch_document_indicator()
[all …]
H A Dapi.c162 if (!QUEUE_INIT(parser, parser->tokens, INITIAL_QUEUE_SIZE, yaml_token_t*)) in yaml_parser_initialize()
181 QUEUE_DEL(parser, parser->tokens); in yaml_parser_initialize()
202 … while (!QUEUE_EMPTY(parser, parser->tokens)) yaml_token_delete(&DEQUEUE(parser, parser->tokens)); in yaml_parser_delete()
203 QUEUE_DEL(parser, parser->tokens); in yaml_parser_delete()
H A Dparser.c50 parser->tokens.head : NULL)
60 (parser->tokens.head->type == YAML_STREAM_END_TOKEN), \
61 parser->tokens.head ++)
/petsc/src/sys/yaml/include/
H A Dyaml.h896 } tokens; member