Get all file contents into input doc list
(List<String> fileNames, LangDescriptor language)
| 277 | |
| 278 | /** Get all file contents into input doc list */ |
| 279 | public static List<InputDocument> load(List<String> fileNames, LangDescriptor language) |
| 280 | throws Exception |
| 281 | { |
| 282 | List<InputDocument> documents = new ArrayList<>(); |
| 283 | for (String fileName : fileNames) { |
| 284 | documents.add( parse(fileName, language) ); |
| 285 | } |
| 286 | if ( documents.size()>0 ) { |
| 287 | documents.get(0).parser.getInterpreter().clearDFA(); // free up memory |
| 288 | } |
| 289 | |
| 290 | return documents; |
| 291 | } |
| 292 | |
| 293 | public static String load(String fileName, int tabSize) |
| 294 | throws Exception |