alecthomas / alecthomas/participle

Is it possible to get a report on which production was being handled when an error arose?

Aperta
#419 2 commenti 1 reazione 0 assegnatari Vedi su GitHub
Lingua principale
Go
Stelle
3.9k
Fork
213
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Here's an error message I encountered while using participle to parse a value change dump (VCD) file. See: https://github.com/filmil/go-vcd-parser/pull/2.

```
unexpected token "V" (expected )
```

Now participle is of course correct. But it is not exactly helpful. It does not tell me which production was parsed when the error occurred. I have multiple productions that may end with keyword `$end`. And one of the issues may be that my grammar has started parsing a wrong production somehow.

Perhaps this is already supported?

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.