public Command( int lineNumber, CommandType commandType, String parameters ) { LineNumber = lineNumber; CommandType = commandType; int colon = parameters.IndexOf( ':' ); if ( ( CommandType.ParamType & ParameterType.Identifier ) != 0 ) { Identifier = parameters.Substring( 0, colon != -1 ? colon : parameters.Length ).Trim(); if ( colon != -1 ) parameters = parameters.Substring( colon + 1 ); else parameters = ""; } if ( ( CommandType.ParamType & ParameterType.Expression ) != 0 ) ParamExpression = Expression.Parse( parameters ); else if ( ( CommandType.ParamType & ParameterType.IdentifierList ) != 0 ) ParamIdentifiers = parameters.Split( new char[] { ' ', '\t' }, StringSplitOptions.RemoveEmptyEntries ); }
public ExpressionBranch( Expression left, Expression right, Operator oper, bool bracketed = false ) { Left = left; Right = right; Operator = oper; Bracketed = bracketed; }