[teyjus] r996 committed - slight change in the reporting of errors to take note of the fact that...

0 views
Skip to first unread message

tey...@googlecode.com

unread,
Jun 25, 2010, 11:13:20 AM6/25/10
to teyju...@googlegroups.com
Revision: 996
Author: gopalan.nadathur
Date: Fri Jun 25 08:12:41 2010
Log: slight change in the reporting of errors to take note of the fact that
the parser is used also to process the syntax of queries, not just of
clauses.
A better solution may be to include some kind of state identifier that tells
whether it is a clause or a query that is being parsed.

http://code.google.com/p/teyjus/source/detail?r=996

Modified:
/trunk/source/compiler/lpyacc.mly

=======================================
--- /trunk/source/compiler/lpyacc.mly Sat Jun 13 21:06:37 2009
+++ /trunk/source/compiler/lpyacc.mly Fri Jun 25 08:12:41 2010
@@ -391,7 +391,7 @@
| term PERIOD { let pt = SeqTerm(List.rev $1, (getPos 1)) in
clauseList := Clause(pt) :: !clauseList ;
pt }
- | error PERIOD { genericError "clause" ; ErrorTerm }
+ | error PERIOD { genericError "expression" ; ErrorTerm }

| term EOF { Errormsg.error (getPos 1)
"Clause never terminated" ;

Reply all
Reply to author
Forward
0 new messages