antlr / antlr4

ANTLR (ANother Tool for Language Recognition) is a powerful parser generator for reading, processing, executing, or translating structured text or binary files.
http://antlr.org
BSD 3-Clause "New" or "Revised" License
17.11k stars 3.28k forks source link

Regarding expecting next grammar rules #2276

Open Krypton3 opened 6 years ago

Krypton3 commented 6 years ago

Hello, I am new to writing antlr4 grammar. I have written this sentence. gby : 'by' cn+ hvg? ;

Testing rules: line 1:0 mismatched input '' expecting 'by' input: by line 1:2 missing 'CN' at '' input: by CN but after inputing by CN I don't get expecting "hvg" as a suggestion because of "?" sign. But I want to get suggestion for "hvg". It would be great if anyone tells me how can I get this suggestion. Thank in advance.

ericvergnaud commented 6 years ago

hi the place for support is the google discussion group eric

Le 15 avr. 2018 à 14:21, H. M. Mahedi Hasan notifications@github.com a écrit :

Hello, I am new to writing antlr4 grammar. I have written this sentence. gby : 'by' cn+ hvg? ;

Testing rules: line 1:0 mismatched input '' expecting 'by' input: by line 1:2 missing 'CN' at '' input: by CN but after inputing by CN I don't get expecting "hvg" as a suggestion because of "?" sign. But I want to get suggestion for "hvg". It would be great if anyone tells me how can I get this suggestion. Thank in advance.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/antlr/antlr4/issues/2276, or mute the thread https://github.com/notifications/unsubscribe-auth/ADLYJPx-iNPxsf9iTITwenBXLYIgEHY3ks5toubmgaJpZM4TVWoA.