contrib/jwrapper grammar: fix parsing many files at once
authorAlexis Laferrière <alexis.laf@xymus.net>
Mon, 20 Jul 2015 05:07:16 +0000 (01:07 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Mon, 20 Jul 2015 19:37:48 +0000 (15:37 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

contrib/jwrapper/grammar/javap.sablecc

index 43d66a8..3f9318b 100644 (file)
@@ -13,9 +13,10 @@ wildcard = '?';
 Parser
 Ignored blank;
 
-multi_files = compiled_from? class_declaration;
 
 compiled_from = 'Compiled from "' identifier+ '.java"';
+files = file+;
+file = compiled_from? class_declaration;
 
 class_declaration = modifier* class_or_interface full_class_name
        extends_declaration? implements_declaration? throws_declaration?