Overriding parse object's methods

30 views
Skip to first unread message

Roded Bahat

unread,
Nov 27, 2012, 3:16:20 PM11/27/12
to pe...@googlegroups.com
Hi,
I'm looking to override one of my parser's "parse" function methods (matchFailed).
It's quite buried in there.. 
Is there a recommended way to accomplishing this short of altering the parser code?

Thanks!
Roded 

David Majda

unread,
Nov 28, 2012, 2:14:24 PM11/28/12
to Roded Bahat, pegjs
Hi Roded,

2012/11/27 Roded Bahat <rod...@gmail.com>:
There isn't any way to override this function because I didn't think
anyone would need this. What are you trying to accomplish?

--
David Majda
Entropy fighter
http://majda.cz/

Roded Bahat

unread,
Dec 1, 2012, 7:47:38 AM12/1/12
to pe...@googlegroups.com, Roded Bahat
Hi David, 
Thanks for the reply, but this turned out irrelevant.
I had some grammar issues which didn't provide me with the desired expected matches in case of a syntax error.
I've since sorted this out by altering the grammar but the original thought was to tweak the failed matches aggregation for my needs - not sure if that was even a viable option.

Roded
Reply all
Reply to author
Forward
0 new messages