public RelationalOperator(string encoded) { allowSymbols = true; operatorType = OperatorType.Relational; var split = encoded.Split(':'); var enumNumber = int.Parse(split[0]); opType = (RelationalOperatorType)enumNumber; identifier = split[1]; base.type = TokenType.RelationalOperator; }
public RelationalOp(RelationalOperatorType relationalOperatorType) : base(TokenType.Arithmetic_Op) { this.RelationalOperatorType = relationalOperatorType; }