Lines Matching refs:token

498 #define TOKEN_INIT(token,token_type,token_start_mark,token_end_mark)            \  argument
499 (memset(&(token), 0, sizeof(yaml_token_t)), \
500 (token).type = (token_type), \
501 (token).start_mark = (token_start_mark), \
502 (token).end_mark = (token_end_mark))
504 #define STREAM_START_TOKEN_INIT(token,token_encoding,start_mark,end_mark) \ argument
505 (TOKEN_INIT((token),YAML_STREAM_START_TOKEN,(start_mark),(end_mark)), \
506 (token).data.stream_start.encoding = (token_encoding))
508 #define STREAM_END_TOKEN_INIT(token,start_mark,end_mark) \ argument
509 (TOKEN_INIT((token),YAML_STREAM_END_TOKEN,(start_mark),(end_mark)))
511 #define ALIAS_TOKEN_INIT(token,token_value,start_mark,end_mark) \ argument
512 (TOKEN_INIT((token),YAML_ALIAS_TOKEN,(start_mark),(end_mark)), \
513 (token).data.alias.value = (token_value))
515 #define ANCHOR_TOKEN_INIT(token,token_value,start_mark,end_mark) \ argument
516 (TOKEN_INIT((token),YAML_ANCHOR_TOKEN,(start_mark),(end_mark)), \
517 (token).data.anchor.value = (token_value))
519 #define TAG_TOKEN_INIT(token,token_handle,token_suffix,start_mark,end_mark) \ argument
520 (TOKEN_INIT((token),YAML_TAG_TOKEN,(start_mark),(end_mark)), \
521 (token).data.tag.handle = (token_handle), \
522 (token).data.tag.suffix = (token_suffix))
524 #define SCALAR_TOKEN_INIT(token,token_value,token_length,token_style,start_mark,end_mark) \ argument
525 (TOKEN_INIT((token),YAML_SCALAR_TOKEN,(start_mark),(end_mark)), \
526 (token).data.scalar.value = (token_value), \
527 (token).data.scalar.length = (token_length), \
528 (token).data.scalar.style = (token_style))
530 #define VERSION_DIRECTIVE_TOKEN_INIT(token,token_major,token_minor,start_mark,end_mark) \ argument
531 (TOKEN_INIT((token),YAML_VERSION_DIRECTIVE_TOKEN,(start_mark),(end_mark)), \
532 (token).data.version_directive.major = (token_major), \
533 (token).data.version_directive.minor = (token_minor))
535 #define TAG_DIRECTIVE_TOKEN_INIT(token,token_handle,token_prefix,start_mark,end_mark) \ argument
536 (TOKEN_INIT((token),YAML_TAG_DIRECTIVE_TOKEN,(start_mark),(end_mark)), \
537 (token).data.tag_directive.handle = (token_handle), \
538 (token).data.tag_directive.prefix = (token_prefix))