+ "declare Fact\n"
+ "field1 : String\n"
+ "field2 : String\n"
+ "end\n";
SuggestionCompletionLoader loader = new SuggestionCompletionLoader();
List<String> enums = new ArrayList<String>();
final String enumDefinitions = "'Fact.field1' : ['f1a', 'f1b', 'f1c'], "
+ "'Fact.field2[field1=f1a]' : ['f1af2a', 'f1af2b', 'f1af2c'], "
+ "'Fact.field2[field1=f1b]' : ['f1bf2a', 'f1bf2b', 'f1bf2c'], "
+ "'Fact.field2[field1=f1c]' : ['f1cf2a', 'f1cf2b', 'f1cf2c']";
enums.add( enumDefinitions );
SuggestionCompletionEngine sce = loader.getSuggestionEngine( pkg,
new ArrayList<JarInputStream>(),
new ArrayList<DSLTokenizedMappingFile>(),
enums );
Pattern52 p1 = new Pattern52();