paraslash Paraslash Audio Streaming
About   News   Download   Documentation   Development

Data Fields
mp_semantic_value Union Reference

The possible values of a node in the abstract syntax tree (AST). More...

#include <mp.h>

Data Fields

bool boolval
 Comparators, =~ and =|. More...
 
char * strval
 String literals, tags, path. More...
 
int64_t intval
 Constants, bitrate, frequency, etc. More...
 
struct mp_wc_pattern wc_pattern
 Right-hand side operand of =|. More...
 
struct mp_re_pattern re_pattern
 Right-hand side operand of =~. More...
 

Detailed Description

The possible values of a node in the abstract syntax tree (AST).

Constant semantic values (string literals, numeric constants, wildcard and regex patterns which are part of the mood definition) are determined during mp_init() while values which depend on the audio file (path, bitrate, etc.) are determined during mp_eval_row().

This union, and the mp_ast_node structure below are used extensively in mp.y. However, both need to be public because the lexer must be able to create AST nodes for the constant semantic values.

Field Documentation

◆ boolval

bool boolval

Comparators, =~ and =|.

◆ strval

char* strval

String literals, tags, path.

◆ intval

int64_t intval

Constants, bitrate, frequency, etc.

◆ wc_pattern

struct mp_wc_pattern wc_pattern

Right-hand side operand of =|.

◆ re_pattern

struct mp_re_pattern re_pattern

Right-hand side operand of =~.


The documentation for this union was generated from the following file: