search for: rangepiece

Displaying 1 result from an estimated 1 matches for "rangepiece".

2020 Jul 30
2
Suggestion for TableGen ranges
...teger token. Coupled with this, the hyphen (-) is used to indicate integer ranges, as in '1-5'. But the compiler lexes '1-5' as '1' followed by '-5', so a special rule is required to treat that as a range. It is documented as follows: "The peculiar last form of RangePiece is due to the fact that the "-" is included in the TokInteger, hence 1-5 gets lexed as two consecutive TokInteger�s, with values 1 and -5, instead of "1", "-", and "5"." I propose that we add '..' as a new punctuation token and use it to indicat...