Method TryParse
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
TryParse(string, out CadLayerExpression)
Reads an expression: NAME=="A*" AND COLOR=="1", OFF == "FALSE" and FROZEN == "FALSE", ( NAME== "A*" ),
letters of either case, spaces round the signs or none.
public static bool TryParse(string text, out CadLayerExpression expression)
Parameters
textstringThe text.
expressionCadLayerExpressionThe expression; null where the text is not one.
Returns
- bool
Whether the text is an expression. An empty text is one, with no alternative. A text is not one that comes to more than 10 000 alternatives once AND is distributed over OR (fourteen groups of two joined by AND are 16 384), or to more than 100 000 rules counted over all its alternatives (fifty-one alternatives of 2 000 rules each), or that nests brackets deeper than 64.