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