[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Compilation error in ancient YACC code
From: |
Hans Åberg |
Subject: |
Re: Compilation error in ancient YACC code |
Date: |
Mon, 15 Apr 2019 23:36:51 +0200 |
> On 15 Apr 2019, at 22:37, Chris Bragg <address@hidden> wrote:
>
> The YACC compiler generates only two errors. I suspect that the problem is a
> minor one and that a small fix to the syntax will fix the problem. I am not
> a YACC programmer - it is a complete mystery to me - and I was hoping a
> posting of the yacc source code up to the point the errors occur and the
> error report itself would allow someone to spot the problem.
>
> The YACC errors reported are follows:
>
> calc.y:121.14: error: syntax error, unexpected =
>
> expr = { Expression = $1;};
>
> ^
>
> calc.y:123.23: error: syntax error, unexpected =
>
> '(' expr ')' = { $$
Just take away that = before all actions {…}. Somebody else might enlighten on
the history of that.