#include <iostream.h>
// mmm
-#define MUDELA_VERSION "0.0.61"
+#define MUDELA_VERSION "0.1.0"
#include "script-def.hh"
#include "symtable.hh"
%token <id> SCRIPT_IDENTIFIER
%token <id> STAFF_IDENTIFIER
%token <id> REAL_IDENTIFIER
+%token <id> INPUT_TRANS_IDENTIFIER
%token <id> INT_IDENTIFIER
%token <id> SCORE_IDENTIFIER
%token <id> MIDI_IDENTIFIER
check_version:
VERSION STRING ';' {
- if (*$2 != MUDELA_VERSION) {
+ if ( String( *$2 ) != MUDELA_VERSION) {
if (THIS->ignore_version_b_) {
THIS->here_input().error("Incorrect mudela version");
} else {
old_identifier:
IDENTIFIER
+ | INPUT_TRANS_IDENTIFIER
| MELODIC_REQUEST_IDENTIFIER
| POST_REQUEST_IDENTIFIER
| SCRIPT_IDENTIFIER
$$ = new Request_id(*$1, $3, MELODIC_REQUEST_IDENTIFIER);
delete $1;
}
+ | declarable_identifier '=' input_translator_spec {
+ $$ = new Input_translator_id ( *$1, $3, INPUT_TRANS_IDENTIFIER);
+ delete $1;
+ }
;
;
input_translator_spec_body:
- STRING STRING {
+ INPUT_TRANS_IDENTIFIER {
+ $$ = $1->input_translator(true);
+ $$-> set_spot( THIS->here_input() );
+ }
+ | STRING STRING {
$$ = new Input_translator;
$$->base_str_ = *$1;
$$->type_str_ =*$2;
| paper_body STRING '=' dim ';' {
$$->set_var(*$2, $4);
}
- | paper_body STRING '=' REAL ';' {
+ | paper_body STRING '=' real ';' {
$$->set_var(*$2, $4);
}
| paper_body input_translator_spec {
command_elt:
/* empty */ {
- $$ = new Voice_element;
+ $$ = new Request_chord;
$$-> set_spot( THIS->here_input());
}
/* cont: */
lyrics_elt:
text_def notemode_duration {
+ /* this sux! text-def should be feature of lyric-engraver. */
if (!THIS->lexer_p_->lyric_state_b())
THIS->parser_error("Have to be in Lyric mode for lyrics");
$$ = THIS->get_word_element($1, $2);