68 |
%type <Char> char digit |
%type <Char> char digit |
69 |
%type <Dotnum> dotnum volume_value boolean |
%type <Dotnum> dotnum volume_value boolean |
70 |
%type <Number> number sampler_channel instrument_index audio_channel_index device_index midi_input_channel_index midi_input_port_index |
%type <Number> number sampler_channel instrument_index audio_channel_index device_index midi_input_channel_index midi_input_port_index |
71 |
%type <String> string stringval digits param_val filename engine_name command create_instruction destroy_instruction get_instruction list_instruction load_instruction set_chan_instruction load_instr_args load_engine_args audio_output_type_name midi_input_type_name set_instruction subscribe_event unsubscribe_event |
%type <String> string text stringval digits param_val filename engine_name command create_instruction destroy_instruction get_instruction list_instruction load_instruction set_chan_instruction load_instr_args load_engine_args audio_output_type_name midi_input_type_name set_instruction subscribe_event unsubscribe_event |
72 |
%type <FillResponse> buffer_size_type |
%type <FillResponse> buffer_size_type |
73 |
%type <KeyValList> key_val_list |
%type <KeyValList> key_val_list |
74 |
|
|
255 |
| string char { $$ = $1 + $2; } |
| string char { $$ = $1 + $2; } |
256 |
; |
; |
257 |
|
|
258 |
dotnum : digits '.' digits { $$ = atoi(String($1 + "." + $3).c_str()); } |
dotnum : digits '.' digits { $$ = atof(String($1 + "." + $3).c_str()); } |
259 |
| '+' digits '.' digits { String s = "+"; s += $2; s += "."; s += $4; $$ = atof(s.c_str()); } |
| '+' digits '.' digits { String s = "+"; s += $2; s += "."; s += $4; $$ = atof(s.c_str()); } |
260 |
| '-' digits '.' digits { $$ = atof(String("-" + $2 + "." + $4).c_str()); } |
| '-' digits '.' digits { $$ = atof(String("-" + $2 + "." + $4).c_str()); } |
261 |
; |
; |
340 |
| '\376' { $$ = '\376'; } | '\377' { $$ = '\377'; } |
| '\376' { $$ = '\376'; } | '\377' { $$ = '\377'; } |
341 |
; |
; |
342 |
|
|
343 |
stringval : '\'' string '\'' { $$ = '\'' + $2 + '\''; } |
text : SP { $$ = " "; } |
344 |
| '\"' string '\"' { $$ = '\"' + $2 + '\"'; } |
| string |
345 |
|
| text SP { $$ = $1 + " "; } |
346 |
|
| text string { $$ = $1 + $2; } |
347 |
|
; |
348 |
|
|
349 |
|
stringval : '\'' text '\'' { $$ = $2; } |
350 |
|
| '\"' text '\"' { $$ = $2; } |
351 |
; |
; |
352 |
|
|
353 |
|
|