| Related articles |
|---|
| Improved accuracy in diagnostics. Is it worthwhile? drikosev@gmail.com (Ev. Drikos) (2022-03-18) |
| Re: Improved accuracy in diagnostics. Is it worthwhile? 480-992-1380@kylheku.com (Kaz Kylheku) (2022-03-18) |
| Re: Improved accuracy in diagnostics. Is it worthwhile? tkoenig@netcologne.de (Thomas Koenig) (2022-03-18) |
| Re: Improved accuracy in diagnostics. Is it worthwhile? drikosev@gmail.com (Ev. Drikos) (2022-03-19) |
| From: | Kaz Kylheku <480-992-1380@kylheku.com> |
| Newsgroups: | comp.compilers |
| Date: | Fri, 18 Mar 2022 16:47:47 -0000 (UTC) |
| Organization: | A noiseless patient Spider |
| References: | 22-03-035 |
| Injection-Info: | gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="91710"; mail-complaints-to="abuse@iecc.com" |
| Keywords: | yacc, errors |
| Posted-Date: | 18 Mar 2022 12:50:05 EDT |
On 2022-03-18, Ev. Drikos <drikosev@gmail.com> wrote:
> Hello,
>
> This is mainly a parsing question but it's also Fortran related as well.
>
> When I make syntax checking with the command 'fcheck' in the code below,
> the error message doesn't contain a '(' in the expected tokens. This
> happens due to default actions, although the parser is basically LALR. A
> pure LALR parser wouldn't make reductions without examininig the lookahead.
I think you mean default reductions?
In the case of Yacc, the action is the body { $$ = $1; }
:)
--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Return to the
comp.compilers page.
Search the
comp.compilers archives again.