예제 #1
0
 private static void ParseScript(string script)
 {
     var statements = MappingTokenizer
                      .Tokenize(script)
                      .ApplyModifications()
                      .ToStatements()
                      .ApplyPartials()
                      .Parse(new TextIndexHelper(script))
                      .ToList();
 }
예제 #2
0
        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));
        }