public UnsignedType(string module, string name, Lexer lexer) { _module = module; _name = name; Symbol temp = lexer.NextNonEOLSymbol; if (temp == Symbol.OpenParentheses) { _ranges = DecodeRanges(lexer); } else { lexer.Restore(temp); } }
public IntegerType(string module, string name, Lexer lexer) { _name = name; Symbol temp = lexer.NextNonEOLSymbol; if (temp == Symbol.OpenBracket) { _isEnumeration = true; _map = DecodeEnumerations(lexer); } else if (temp == Symbol.OpenParentheses) { _isEnumeration = false; _ranges = DecodeRanges(lexer); } else { lexer.Restore(temp); } }