Asscalc Commands: Unterschied zwischen den Versionen
Aus WiFX - The Karaoke Wiki for ASSCalc, NyuFX, Lua, AFX, Tenfex & Templater
(Die Seite wurde neu angelegt: „''lines'' '''expr '\n' ''' { print_tval_of( $2.value );→fprintf( foutt, "%.12g", $2.value): } | lines TEXTINDEX STORE '(' expr ')' '\n' …“) |
|||
Zeile 1: | Zeile 1: | ||
− | ''lines'' '''expr '\n' ''' | + | | ''lines'' ''' expr '\n' ''' { print_tval_of( $2.value );/*fprintf( foutt, "%.12g", $2.value) */} |
− | | lines TEXTINDEX STORE '(' expr ')' '\n' | + | | ''lines'' ''' TEXTINDEX STORE '(' expr ')' '\n' ''' { TextindexStore( $5.value ); } |
− | | lines TEXTINDEX GET '(' expr ')' '\n' | + | | ''lines'' ''' TEXTINDEX GET '(' expr ')' '\n' ''' { TextindexGet( $5.value ); } |
− | | lines PRINTS STRING '\n' | + | | ''lines'' ''' PRINTS STRING '\n' ''' { printf( "%s", $3.name ); } |
− | | lines PRINTV expr '\n' | + | | ''lines'' ''' PRINTV expr '\n' ''' { printf( "%f", $3.value ); } |
− | | lines COLORING_OFF '(' expr ',' expr ')' '\n' | + | | ''lines'' ''' COLORING_OFF '(' expr ',' expr ')' '\n' ''' { ColoringOff( $4.value, $6.value ); } |
− | | lines BORDERLINE '(' expr ',' expr ')' '\n' { PrintBorderline( $4.value, $6.value ); } | + | | ''lines'' ''' BORDERLINE '(' expr ',' expr ')' '\n' ''' { PrintBorderline( $4.value, $6.value ); } |
− | | lines KILLTHISLOOP '\n' | + | | ''lines'' ''' KILLTHISLOOP '\n' ''' { KillThisLoop(); } |
− | | lines LOWKILL '(' expr ',' expr ')' '\n' | + | |
− | | lines IDENTIFIER '=' expr '\n' | + | | ''lines'' ''' LOWKILL '(' expr ',' expr ')' '\n' ''' { if( $4.value<$6.value ){printf( "lowkill yes %f<%f\n",$4.value,$6.value);return EXIT_SUCCESS;} |
− | | lines IDENTIFIER '[' expr ']' '=' expr '\n' { set_identifier_arr( $2, $7.value, $4.value ); } | + | else printf( "lowkill no %f>=%f\n",$4.value,$6.value); } |
− | | lines FONTMATCHUSE STRING '\n' | + | |
− | | lines SETFLAG STRING '\n' | + | | ''lines'' ''' IDENTIFIER '=' expr '\n' ''' { set_identifier( $2, $4.value ); } |
− | | lines TIMEOF expr '\n' | + | | ''lines'' ''' IDENTIFIER '[' expr ']' '=' expr '\n' ''' { set_identifier_arr( $2, $7.value, $4.value ); } |
− | | lines POSOF expr '\n' | + | |
− | | lines HEXOF expr '\n' | + | | ''lines'' ''' FONTMATCHUSE STRING '\n' ''' { fontmatchuse( $3.name ); } |
− | | lines CHAROF expr '\n' | + | | ''lines'' ''' SETFLAG STRING '\n' ''' { set_flag( $3.name ); } |
− | | lines COLOROF expr '\n' | + | |
− | | lines TVALOF expr '\n' | + | | ''lines'' ''' TIMEOF expr '\n' ''' { print_time_of( $3.value ); } |
− | | lines INSERT IDENTIFIER '\n' | + | | ''lines'' ''' POSOF expr '\n' ''' { print_pos_of( $3.value ); } |
− | | lines RANDOMINS STRING expr '\n' | + | | ''lines'' ''' HEXOF expr '\n' ''' { print_hex_of( $3.value ); } |
− | | lines LOOPFILE STRING expr '\n' | + | | ''lines'' ''' CHAROF expr '\n' ''' { print_char_of( $3.value ); } |
− | | lines LOOPFILE2 STRING '(' expr ',' expr ')' '\n' | + | | ''lines'' ''' COLOROF expr '\n' ''' { print_color_of( $3.value ); } |
− | | | + | | ''lines'' ''' TVALOF expr '\n' ''' { print_tval_of( $3.value ); } |
− | + | ||
− | + | | ''lines'' ''' INSERT IDENTIFIER '\n' ''' { print_identifier( $3.name ); } | |
− | | lines '!' TEXTFIND IDENTIFIER '\n' | + | |
− | | lines STRING '\n' | + | | ''lines'' ''' RANDOMINS STRING expr '\n' ''' { rand_ins( $3.name, $4.value ); } |
− | | lines EXIT '\n' | + | |
− | | | + | | ''lines'' ''' LOOPFILE STRING expr '\n' ''' { loop_file( $3.name, $4.value, 1 ); } |
− | | | + | | ''lines'' ''' LOOPFILE2 STRING '(' expr ',' expr ')' '\n' ''' { loop_file( $3.name, $5.value, $7.value ); } |
+ | |||
+ | | ''lines'' ''' TEXTFIND IDENTIFIER '\n' ''' { if( !textfind_identifier( $3.name ) )return EXIT_SUCCESS; } | ||
+ | | ''lines'' ''' '!' TEXTFIND IDENTIFIER '\n' ''' { if( textfind_identifier( $4.name ) )return EXIT_SUCCESS; } | ||
+ | |||
+ | | ''lines'' ''' STRING '\n' ''' { fprintf( foutt, "%s", $2.name) } | ||
+ | | ''lines'' ''' EXIT '\n' ''' { return EXIT_SUCCESS; } | ||
+ | |||
+ | | '''/* empty */ ''' | ||
+ | | '''error '\n' ''' { printf("\n error \n"); yyerrok; } |
Version vom 23. Januar 2012, 11:42 Uhr
| lines expr '\n' { print_tval_of( $2.value );/*fprintf( foutt, "%.12g", $2.value) */}
| lines TEXTINDEX STORE '(' expr ')' '\n' { TextindexStore( $5.value ); } | lines TEXTINDEX GET '(' expr ')' '\n' { TextindexGet( $5.value ); }
| lines PRINTS STRING '\n' { printf( "%s", $3.name ); } | lines PRINTV expr '\n' { printf( "%f", $3.value ); }
| lines COLORING_OFF '(' expr ',' expr ')' '\n' { ColoringOff( $4.value, $6.value ); }
| lines BORDERLINE '(' expr ',' expr ')' '\n' { PrintBorderline( $4.value, $6.value ); }
| lines KILLTHISLOOP '\n' { KillThisLoop(); }
| lines LOWKILL '(' expr ',' expr ')' '\n' { if( $4.value<$6.value ){printf( "lowkill yes %f<%f\n",$4.value,$6.value);return EXIT_SUCCESS;} else printf( "lowkill no %f>=%f\n",$4.value,$6.value); }
| lines IDENTIFIER '=' expr '\n' { set_identifier( $2, $4.value ); } | lines IDENTIFIER '[' expr ']' '=' expr '\n' { set_identifier_arr( $2, $7.value, $4.value ); }
| lines FONTMATCHUSE STRING '\n' { fontmatchuse( $3.name ); } | lines SETFLAG STRING '\n' { set_flag( $3.name ); }
| lines TIMEOF expr '\n' { print_time_of( $3.value ); } | lines POSOF expr '\n' { print_pos_of( $3.value ); } | lines HEXOF expr '\n' { print_hex_of( $3.value ); } | lines CHAROF expr '\n' { print_char_of( $3.value ); } | lines COLOROF expr '\n' { print_color_of( $3.value ); } | lines TVALOF expr '\n' { print_tval_of( $3.value ); }
| lines INSERT IDENTIFIER '\n' { print_identifier( $3.name ); }
| lines RANDOMINS STRING expr '\n' { rand_ins( $3.name, $4.value ); }
| lines LOOPFILE STRING expr '\n' { loop_file( $3.name, $4.value, 1 ); } | lines LOOPFILE2 STRING '(' expr ',' expr ')' '\n' { loop_file( $3.name, $5.value, $7.value ); }
| lines TEXTFIND IDENTIFIER '\n' { if( !textfind_identifier( $3.name ) )return EXIT_SUCCESS; } | lines '!' TEXTFIND IDENTIFIER '\n' { if( textfind_identifier( $4.name ) )return EXIT_SUCCESS; }
| lines STRING '\n' { fprintf( foutt, "%s", $2.name) } | lines EXIT '\n' { return EXIT_SUCCESS; }
| /* empty */ | error '\n' { printf("\n error \n"); yyerrok; }