Table of Contents

Method OpenParens

Namespace
OpenCAD2D.Lisp
Assembly
OpenCAD2D.Core.dll

OpenParens(string, out bool)

Counts the parentheses still open in text typed so far, to tell the command line whether to wait for more with its (_> prompt. Parentheses in strings and comments are not counted.

public static int OpenParens(string text, out bool inString)

Parameters

text string

The text.

inString bool

True when the text ends inside a string, which the prompt shows as ("_>.

Returns

int

The number of ( still open, or a negative number once a ) had no (.