print file names if > 1 file

This commit is contained in:
Terence Parr 2012-07-28 18:33:21 -07:00
parent 3f26d42d53
commit 8c8752a7b2
1 changed files with 3 additions and 0 deletions

View File

@ -172,6 +172,9 @@ public class TestRig {
r = new InputStreamReader(is);
}
if ( inputFiles.size()>1 ) {
System.err.println(inputFile);
}
try {
ANTLRInputStream input = new ANTLRInputStream(r);
lexer.setInputStream(input);