]> sourceware.org Git - systemtap.git/commit - parse.cxx
PR13317: improve parse error recovery heuristics
authorFrank Ch. Eigler <fche@redhat.com>
Tue, 18 Oct 2011 20:58:15 +0000 (16:58 -0400)
committerFrank Ch. Eigler <fche@redhat.com>
Tue, 18 Oct 2011 21:03:10 +0000 (17:03 -0400)
commit46954f1db031cc04eef200f3fccb67dc8827e4ff
treeeaa03a9507a8c79e8702a97fc253a9ab053b6722
parent7ae00aa47e87878cc9fb06d8bd05abc612f1f909
PR13317: improve parse error recovery heuristics

This change changes the 10 parse errors reported by brendang for iostat-scsi.stp
to just six actually salient ones.

* parse.cxx (parser::parse): Reorder error recovery to skip
  everything until next top-level keyword.  Wrap try {} in
  while {} rather than vice versa.
  (parser::parse_stmt_block): Drop recovery loop.
parse.cxx
This page took 0.027018 seconds and 5 git commands to generate.