Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
package com.floreysoft.jmte.util;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
/**
* Mini parser for mini DSL stuff. Use it when you do not want
*
*
a full parser, as it would be overkill
*
to code by hand it in an ad-hoc way, as you have done this wrong too many
* times (just think about escaping and quoting)
*
built-in regexp , as it is too slow and you actually do not quite up to
* it (true for me)
*
*
*
* This is a fast, simple parser that takes input and a single, global hierarchy
* of operators and spits out "AST" implemented as nested Lists.
*
*
*
* String input = "string(maxLength=10, trim, uppercase)";
* String[] operators = { "()", ",", "=" }; // in order of precedence, can be pair of start/end or single char separator
* List