private static ParseResult Match_QuotedChar(InputStream input) { return(WithAction( Sequence(Match_Backslash, Any), result => { string ch = new SequenceResult(result)[1].MatchedString; return new ParseResult(ch); })(input)); }
public static TypeNameInfo Parse(string typeName) { var input = new InputStream(typeName); ParseResult result = Sequence(Match_TypeName, EOF)(input); if (!result.Matched) { return(null); } var typeNameResult = new SequenceResult(result)[0]; return((TypeNameInfo)typeNameResult.ResultData); }