Antlr4.Runtime.Tree.Pattern.ParseTreePatternMatcher.SetDelimiters C# (CSharp) Method

SetDelimiters() public method

Set the delimiters used for marking rule and token tags within concrete syntax used by the tree pattern parser.
Set the delimiters used for marking rule and token tags within concrete syntax used by the tree pattern parser.
/// IllegalArgumentException /// if /// /// is /// /// or empty. /// /// IllegalArgumentException /// if /// /// is /// /// or empty. ///
public SetDelimiters ( string start, string stop, string escapeLeft ) : void
start string The start delimiter.
stop string The stop delimiter.
escapeLeft string The escape sequence to use for escaping a start or stop delimiter.
return void
        public virtual void SetDelimiters(string start, string stop, string escapeLeft)
        {
            if (string.IsNullOrEmpty(start))
            {
                throw new ArgumentException("start cannot be null or empty");
            }
            if (string.IsNullOrEmpty(stop))
            {
                throw new ArgumentException("stop cannot be null or empty");
            }
            this.start = start;
            this.stop = stop;
            this.escape = escapeLeft;
        }