what is the advantage of using negative enums
- by Naveen
In the kaleidoscope parser / AST example at LLVM, the enum is given all negative values. Why the minus sign ? enum Token {
tok_eof = -1,
// commands
tok_def = -2, tok_extern = -3,
// primary
tok_identifier = -4, tok_number = -5
};