public TokenParser(string validType, ASTLeafFactory factory) { ValidType = validType; Factory = factory; ValidValues = null; }
public TokenParser(string validType, ASTLeafFactory factory, IEnumerable <object> validValues) { ValidType = validType; Factory = factory; ValidValues = new HashSet <object>(validValues); }
public TokenParserBuilder(ASTLeafFactory factory, string validType, string[] validValues) { Factory = factory; ValidType = validType; ValidValues = new HashSet <string>(validValues); }
public TokenParser(string validType, ASTLeafFactory factory, params string[] validValues) { ValidType = validType; Factory = factory; ValidValues = validValues.Length != 0 ? new HashSet <object>(validValues) : null; }
public static TokenParserBuilder Token(ASTLeafFactory factory, string type, params string[] values) => new TokenParserBuilder(factory, type, values);