Exemple #1
0
        public virtual string Parse(string src)
        {
            if (String.IsNullOrEmpty(src))
            {
                return(src);
            }

            var tokens = Lexer.Lex(src, Options);
            var result = Parser.Parse(tokens, Options);

            return(result);
        }
 /// <summary>
 /// Static Lex Method
 /// </summary>
 public static TokensResult Lex(string src, Options options)
 {
     var lexer = new Lexer(options);
     return lexer.Lex(src);
 }
        /// <summary>
        /// Static Lex Method
        /// </summary>
        public static TokensResult Lex(string src, Options options)
        {
            var lexer = new Lexer(options);

            return(lexer.Lex(src));
        }