Example #1
0
        private void Parse_Click(object sender, RoutedEventArgs e)
        {
            var parser = new Parser(Editor.Text);
            var syntaxNode = parser.Parse();
            MessageBox.Show(syntaxNode.Label);

        }
 /// <summary>
 /// 
 /// </summary>
 /// <param name="parser"></param>
 /// <param name="token"></param>
 public ParserTokenFunction(Parser parser, string token)
     : base(parser, token)
 {
 }
 /// <summary>
 /// 
 /// </summary>
 /// <param name="parser"></param>
 /// <param name="open"></param>
 /// <param name="close"></param>
 public ParserTokenDelimiter(Parser parser, string open, string close)
     : base(parser, open)
 {
     _close = close;
     Parser.AddToken(close);
 }
Example #4
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="parser"></param>
 public Calculator(Parser parser)
 {
     Parser = parser;
 }