Subject: [Megaco] query regarding yacc parser resync.

From: Rajat Sharma <[email-masked]>
Date: Tue, 24 Jul 2001 13:07:50 +0100 (BST)

hi all,

while looking for some information on yacc error
recovery i came across a page in which a small test
program was given to check whether the yacc that one
is using has a bug or not .On trying out it with GNU
bison (that we are using ) i found that it gave the
incorrect output .I am sending the web page along with
this mail .Please let me know if this default
reduction in case of a buggy yacc can cause problem
for us in error recovery .
 
Onething more , for error recovery we need to write
rules that use the "error" token , generated by yacc
when it encounters an invalid token ,for resync .I
have a problem there ..yacc pops the token from the
state stack untill it reaches a position where an
"error" can be shifted ...this is done by yacc on it's
own .
Is this auto handling of the state stack by yacc
efficient enough for resync or is there any way by
which we can manipulate the 
yacc state stack on our own ?
thanking in advance 

Regards
Rajat Sharma

=====
Rajat Sharma
IPDialog Inc.

____________________________________________________________
Do You Yahoo!?
For regular News updates go to http://in.news.yahoo.com

_______________________________________________
Megaco mailing list
[email-masked]
http://www.ietf.org/mailman/listinfo/megaco