Author: kjs
Date: Tue Apr 10 01:59:28 2007
New Revision: 18107
Modified:
trunk/compilers/pirc/src/pirparser.c
Log:
compilers/pirc:
* allow comments between compilation units.
Modified: trunk/compilers/pirc/src/pirparser.c
==============================================================================
--- trunk/compilers/pirc/src/pirparser.c (original)
+++ trunk/compilers/pirc/src/pirparser.c Tue Apr 10 01:59:28 2007
@@ -2348,7 +2348,9 @@
hll_mapping(p);
break;
default:
- syntax_error(p, 1, "compilation unit expected");
+ /* there may be newline tokens if there are comments between
compilation units;
+ * just break; any syntax errors will be reported in program().
+ */
break;
}
}