private static void ParseScript(string script) { var statements = MappingTokenizer .Tokenize(script) .ApplyModifications() .ToStatements() .ApplyPartials() .Parse(new TextIndexHelper(script)) .ToList(); }
private static IEnumerable <IParseTree <TokenType, ParserRuleType> > ParseScript(string script) { var translator = new TextIndexHelper(script); return(MappingTokenizer .Tokenize(script) .ApplyModifications() .ToStatements() .ApplyPartials() .Parse(translator) .Validate(translator)); }