Esempio n. 1
0
        public Symbol Convert(object text)
        {
            string        lilyText  = text as string;
            LilyTokenizer tokenizer = new LilyTokenizer();
            LilyParser    parser    = new LilyParser();
            string        content   = lilyText.Trim().ToLower().Replace("\r\n", " ").Replace("\n", " ").Replace("}", " } ").Replace("{", " { ").Replace("  ", " ") + " ";

            tokenizer.ReadLily(content);
            parser.ReadLily(tokenizer.GetRootToken());
            Symbol root = parser.GetRootSymbol();

            return(root);
        }
Esempio n. 2
0
 public LillyPondReader()
 {
     parser    = new LilyParser();
     tokenizer = new LilyTokenizer();
 }