diff src/pt-stmt.h @ 8471:02de6775f1fe

parse.y: always append statements to list, but remove null statements after seeing separator
author John W. Eaton <jwe@octave.org>
date Mon, 12 Jan 2009 19:03:33 -0500
parents 71f068b22fcc
children 73c4516fae10
line wrap: on
line diff
--- a/src/pt-stmt.h
+++ b/src/pt-stmt.h
@@ -78,6 +78,8 @@
 
   octave_comment_list *comment_text (void) { return comm; }
 
+  bool is_null_statement (void) const { return ! (cmd || expr || comm); }
+
   // Allow modification of this statement.  Note that there is no
   // checking.  If you use these, are you sure you knwo what you are
   // doing?