In the example of the kaleidoscope / AST analyzer in LLVM, the enumeration receives all negative values. Why is the minus sign?
enum Token { tok_eof = -1, // commands tok_def = -2, tok_extern = -3, // primary tok_identifier = -4, tok_number = -5 };
C- . , , , , - "undefined". , tok >= 0.
tok >= 0
, .
0 255, tok_eof. , 0 255 , , 256, 257, 258 .. , 256, 257, 258 IMO.
Source: https://habr.com/ru/post/1742743/More articles:Π±ΠΈΠ±Π»ΠΈΠΎΡΠ΅ΠΊΠ° Π±ΠΈΠ±Π»ΠΈΠΎΡΠ΅ΠΊΠΈ ΠΈΠ΅ΡΠ°ΡΡ ΠΈΠΈ Π‘#? - Π»ΡΠ±ΠΎΠΉ Π·Π½Π°Π΅Ρ ΠΎΠ΄ΠΈΠ½ (Π½Π°ΠΏΡΠΈΠΌΠ΅Ρ, GetDirectChildren, GetAllChildren, GetParent) - c#Π£ΡΠ΅ΡΠΊΠ° ΠΌΡΡΠΎΡΠ°? Π‘ΡΠ΅Π½Π°ΡΠΈΠΉ ΡΡΠ΅ΡΠΊΠΈ ΠΌΠΎΡΡΠ°? - memory-leaksClass Enumerations in Java - javaSQL selects a maximum of two time periods - sqlHow to kill blocked mysql queries - phpStarting another animation after the first end of the animation (Objective-C) - objective-cΠΠ°ΠΊ ΡΠ°Π·Π²Π΅ΡΠ½ΡΡΡ ΠΏΡΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΠ΅ Mono Winforms Π΄Π»Ρ Suse Linux 11.0 Server Enterprise? - c#SQLiteDataAdapter update method returning 0 - c #Non-dimensional coordinate of the depth of the eye space with a fragmented shader - openglΠΡΠΈΠ±ΠΊΠ° ΠΌΠ΅ΡΡΠΎΠΏΠΎΠ»ΠΎΠΆΠ΅Π½ΠΈΡ Android - javaAll Articles