Beispiel #1
0
        private void Parse(ParserRuleContext tree)
        {
            treeView2.Nodes.Clear();
            AntlrNodeTree node = new AntlrNodeTree(tree);

            treeView2.Nodes.Add(node);
            node.Expand();
            //treeView2.Focus();
            ErrortoolStripLabel.Text = $"{node.CountErrors} error(s)";
        }
Beispiel #2
0
        private static void ShowErrors(AntlrNodeTree node)
        {
            if (node.InError)
            {
                node.EnsureVisible();
            }

            foreach (AntlrNodeTree item in node.Nodes)
            {
                ShowErrors(item);
            }
        }