Beispiel #1
0
        public IEnumerable<StyledToken> Parse(string source)
        {
            if (String.IsNullOrEmpty(source))
                return new List<StyledToken>();

            using (var ms = new MemoryStream(Encoding.UTF8.GetBytes(source)))
            {
                var s = new Scanner(ms);
                var p = new Parser(s);
                p.Parse();
                return p.Markers;
            }
        }
Beispiel #2
0
 internal Errors(Parser p)
 {
     this.p = p;
 }