Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Getting some more info about from ParseError.
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Václav Haisman  
View profile  
 More options Nov 29 2006, 3:42 am
From: Václav Haisman <v.hais...@sh.cvut.cz>
Date: Wed, 29 Nov 2006 09:42:33 +0100
Local: Wed, Nov 29 2006 3:42 am
Subject: Getting some more info about from ParseError.
Hi,
I am using Pyggy to parse our simple DSL. Most of the time it is just
simple expressions. While the expressions are by the grammar everything
works fine. The problem is that when the expression is bad i.e. '(1 + 2'
 or '1 + / 2' the thrown ParseError exception has very little info about
the error except the bad token and its text. It would be very useful if
I could get list of expected tokens following the last good token.

Is it possible to get the information somewhere from the internals of
the parser's GLR class? I tried several hacks but since I do not really
understand the algorithm I was never able to get what I wanted. The main
problem seems to be to get the list of last good states from the parser.
After that I think it should be possible to get the list of expected
tokens from the acttab's keys or from goto tab's maybe.

It would be really really nice to have this feature :)

--
Vaclav Haisman


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Václav Haisman  
View profile  
 More options Jan 26 2007, 3:22 am
From: "Václav Haisman" <v.hais...@sh.cvut.cz>
Date: Fri, 26 Jan 2007 08:22:12 -0000
Local: Fri, Jan 26 2007 3:22 am
Subject: Re: Getting some more info about from ParseError.
No activity at all :(
C'mon, somebody say something...

--
VH


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google