mojoshader_parser_hlsl.lemon
changeset 785 5a0a763d74e1
parent 783 49b40da02528
child 787 04d5c34d8b40
equal deleted inserted replaced
784:8039ea79b52c 785:5a0a763d74e1
    26 
    26 
    27 %include {
    27 %include {
    28 #ifndef __MOJOSHADER_HLSL_COMPILER__
    28 #ifndef __MOJOSHADER_HLSL_COMPILER__
    29 #error Do not compile this file directly.
    29 #error Do not compile this file directly.
    30 #endif
    30 #endif
       
    31 }
       
    32 
       
    33 %syntax_error {
       
    34     fprintf(stderr,"Syntax error\n");
    31 }
    35 }
    32 
    36 
    33 %parse_failure {
    37 %parse_failure {
    34     fprintf(stderr,"Giving up.  Parser is hopelessly lost...\n");
    38     fprintf(stderr,"Giving up.  Parser is hopelessly lost...\n");
    35 }
    39 }