Allow static to take precedent over java sketch.

This commit is contained in:
A Samuel Pottinger
2022-11-12 17:34:30 +00:00
parent 9ea128cc21
commit 25da0c968a
@@ -20,8 +20,8 @@ import JavaParser;
// main entry point, select sketch type
processingSketch
: javaProcessingSketch
| staticProcessingSketch
: staticProcessingSketch
| javaProcessingSketch
| activeProcessingSketch
// | warnMixedModes
;
@@ -33,7 +33,7 @@ javaProcessingSketch
// No method declarations, just statements
staticProcessingSketch
: (importDeclaration | blockStatement)* EOF
: (importDeclaration | blockStatement | typeDeclaration)* EOF
;
// active mode, has function definitions