All Downloads are FREE. Search and download functionalities are using the official Maven repository.

plastic-library.GroupLiteralParserGroovy.groovy Maven / Gradle / Ivy


import java.util.ArrayList;

/**
 * The GroupLiteralParserGroovy class is the groovisized version of the GroupLiteralParser that
 * can be used to support pattern matching functionality in our morphers. All sanity checking
 * has been stripped because we wouldn't get to using this if problems had been caught in
 * full Java versions of the classes.
 * 
 * We hand copy this code into our src/main/resources/plastic-library and drop the package indication.
 */
public class GroupLiteralParserGroovy {

	public static ArrayList parse(PlasticPatternGroovy np, String expression) {
		ArrayList rc = new ArrayList<>();
		
    		boolean inGroup = false;
    		StringBuilder currentPart = null;
    		 
    		for(int i=0; i




© 2015 - 2024 Weber Informatics LLC | Privacy Policy