|
|
1.1 ! root 1: %{ ! 2: #include "hdr.h" ! 3: #include "x.tab.h" ! 4: #undef getc ! 5: #undef output ! 6: #define output(x) (void)(x) ! 7: extern debug; ! 8: extern char *strdup(); ! 9: %} ! 10: %% ! 11: ! 12: audio1 return(AUDIO1); ! 13: audio2 return(AUDIO2); ! 14: audio3 return(AUDIO3); ! 15: auto return(AUTO); ! 16: cue return(CUE); ! 17: edit return(EDIT); ! 18: frame return(FRAME); ! 19: fwd return(FWD); ! 20: go return(GO); ! 21: help return(HELP); ! 22: insert return(INSERT); ! 23: ltc return(LTC); ! 24: loop return(LOOP); ! 25: mode return(MODE); ! 26: off return(OFF); ! 27: on return(ON); ! 28: play return(PLAY); ! 29: preroll return(PREROLL); ! 30: rec return(REC); ! 31: remote return(REMOTE); ! 32: rev return(REV); ! 33: set return(SET); ! 34: shoot return(SHOOT); ! 35: sleep return(SLEEP); ! 36: snap return(SNAP); ! 37: standby return(STANDBY); ! 38: status return(STATUS); ! 39: step return(STEP); ! 40: still return(STILL); ! 41: stop return(STOP); ! 42: t1 return(T1); ! 43: t2 return(T2); ! 44: tcr return(TCR); ! 45: time return(TIME); ! 46: ub return(UB); ! 47: video return(VIDEO); ! 48: vidsync return(VIDSYNC); ! 49: view return(VIEW); ! 50: vitc return(VITC); ! 51: wait return(WAIT); ! 52: [0123456789]+ { yylval.ival = atoi(yytext); return(NUMBER); } ! 53: \n { yylineno++; return('\n'); } ! 54: #.* { ; /* comment */ } ! 55: [ \t]+ { ; /* white space */ } ! 56: ^!.* { Fflush(logfd);if(!debug) system(yytext+1); print("!\n"); } ! 57: \"[^"]*\" { yytext[yyleng-1] = 0; yylval.str = strdup(yytext+1); return(STRING); } ! 58: . { return(yytext[0]); } ! 59: ! 60: %%
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.