Groups
Sign in
Groups
antlr-discussion
Conversations
Labels
About
Send feedback
Help
How to check input is correct or incorrect antlr4 javascript?
41 views
antlr4
javascript
parser
Skip to first unread message
Enise KILAVUZ
unread,
Nov 17, 2015, 11:01:50 AM
11/17/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to antlr-discussion
If input is incorrect, we can check this status with
`if(parser.NumberOfSyntaxErrors > 0) ...`
in C# target.
But javascript target has no like
NumberOfSyntaxErrors
properties. So, how we can check given input is correct or incorrect in javascript?
Eric Vergnaud
unread,
Nov 17, 2015, 6:09:53 PM
11/17/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to antlr-discussion
Hi,
you need to add an error listener.
Eric
Reply all
Reply to author
Forward
0 new messages