help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

type clash (`' `ival') on default action


From: Debashis . Mondal
Subject: type clash (`' `ival') on default action
Date: Wed, 7 Aug 2002 17:43:14 +0530

**********************************************
................................................
.............................................
     52 %union {
     53       long ival;
     54       double fval;
     55       syn_attr_rule_at string_p;
     56       }
     57
     58 %token <ival> SYN_RANGEtok
     59 %token <ival> SYN_NAtok
     60 %token <string_p> SYN_STRINGtok

     81 %type <ival> int_span, real_span, hex_span, date_span, string_span, ip_span
     82 %type <ival> string_len_span
     83 /*
     84 ** Start parsing for syntax check
     85 */
     86 %start  syntax_check
     87
     88 %%
     89
     90 syntax_check  : SYN_BRANGEtok
     91                     {
     92                     ldb_syn_state=SYN_ADVANCED ;
     93                     found_b = FALSE;
     94                     Syn_value_check_status = RT_SUCCESS;
     95                     }
     96                  syntax SYN_ERANGEtok
     97                     {
     98                     Syn_value_check_status = found_b?RT_SUCCESS:RT_ERROR;
     99                     SYN_ACCEPT;
    100                     }
    101             ;
    102 synatx : int_span
    103         | real_span
    104         | hex_span
    105         | string_span
    106         | string_len_span
    107         | ip_span
    108         | date_span
    109         |
    110             {
    111             Syn_value_check_status=RT_SUCCESS;
    112             }
    113         ;

    275    %%
........................................................
 
***********************************
The above code is not complete. If i compile this file ( syn_yacc.y)
by "yacc" then it is compiling . But if i compile it
using "bison -y" then it is giving following error
 
syn_yaccL7.y:103: type clash (`' `ival') on default action
syn_yaccL7.y:104: type clash (`' `ival') on default action
syn_yaccL7.y:105: type clash (`' `ival') on default action
syn_yaccL7.y:106: type clash (`' `ival') on default action
syn_yaccL7.y:107: type clash (`' `ival') on default action
syn_yaccL7.y:108: type clash (`' `ival') on default action
syn_yaccL7.y:109: type clash (`' `ival') on default action
syn_yaccL7.y:275: symbol syntax is used, but is not defined as a token and has no rules
Note: Nowhere the "syntax" is used except the following positions shown
in the file
 
Can you give me the solution?????
 
thanks in advance
Debashis
 
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]