Пример #1
0
        private static unsafe void Main(string[] args)
        {
            var parser = new StandardParser();

            parser.LoadScript(XDocument.Load(".\\vramscript.xml").ToString());

            foreach (var token in parser.Initialize().GetTokens("( ( 11.1+ 17.5++) * 23) / --4"))
            {
                Console.WriteLine("{0}[{1}]={2}", token.Name, token.Match?.Index, token.Text);
            }



            var tmp = NativeUnicodeString.FromManaged("hello");

            Console.WriteLine(tmp.Length);
            Console.WriteLine(tmp.MaximumLength);
            for (short i = 0; i < tmp.Length; i++)
            {
                Console.WriteLine(tmp[i]);
            }
        }