On Sun, Jun 16, 2013 at 10:17 AM, Test User wrote:
> A new grammar in combination with %glr-parser worked.
>
Woot!
Question:
>
> (1)I understand that if I have a file of the form:
> ::= ::= , bison parses my rules by default
> as ( ::= ) ::= and generates a syntax error
> when it reaches
A new grammar in combination with %glr-parser worked.
%{
#include
#include
extern int yylex();
extern int yyparse();
extern FILE *yyin;
void yyerror(const char *s);
%}
%union {
char cval;
int ival;
float fval;
char *sval;
}
/* define the "terminal symbol" token types */
...
%