Menu

i can't run this test script.

Help
2005-05-08
2012-07-26
  • Nobody/Anonymous

    small yacc script saved as test.y:
    %%
    S:E;
    E:'('E')'|'i';
    %%
    prog[]="((i))";
    int i=0;
    main()
    {
    return yyparse();
    }
    int yylex(){
    int c;
    c=prog[i++];

    while(c>='0' && c<='9'){
    c=prog[i++];
    }

    if(c=='\0') return 0;
    return c;
    }
    void yyerror (char const *s){
    printf ("%s\n", s);
    }

    bison test.y

    error message here:
    This application has requested the Runtime to terminate it in an unusual way.
    Please contact the application's support team for more information.
    D:/GnuWin32/bin/../share/bison/yacc.c:683: m4: ERROR: Copying inserted file

    why????I have already installed m4 and libgw32

     
MongoDB Logo MongoDB