Added support for C++14 digit separators.
This commit is contained in:
parent
6d828833c0
commit
af41fc4230
@ -284,27 +284,31 @@ TOKEN :
|
||||
|
||||
TOKEN [IGNORE_CASE] :
|
||||
{
|
||||
< OCTALINT : "0" (["0"-"7"])* >
|
||||
< OCTALINT : "0" (["'", "0"-"7"])* >
|
||||
| < OCTALLONG : <OCTALINT> "l" >
|
||||
| < UNSIGNED_OCTALINT : <OCTALINT> "u" >
|
||||
| < UNSIGNED_OCTALLONG : <OCTALINT> ("ul" | "lu") >
|
||||
|
||||
| < DECIMALINT : ["1"-"9"] (["0"-"9"])* >
|
||||
| < #DECIMALDIGIT : ["'", "0"-"9"] >
|
||||
|
||||
| < DECIMALINT : ["1"-"9"] (<DECIMALDIGIT>)* >
|
||||
| < DECIMALLONG : <DECIMALINT> ["u","l"] >
|
||||
| < UNSIGNED_DECIMALINT : <DECIMALINT> "u" >
|
||||
| < UNSIGNED_DECIMALLONG : <DECIMALINT> ("ul" | "lu") >
|
||||
|
||||
|
||||
| < HEXADECIMALINT : "0x" (["0"-"9","a"-"f"])+ >
|
||||
| < HEXADECIMALINT : "0x" (<DECIMALDIGIT> | ["a"-"f"])+ >
|
||||
| < HEXADECIMALLONG : <HEXADECIMALINT> (["u","l"])? >
|
||||
| < UNSIGNED_HEXADECIMALINT : <HEXADECIMALINT> "u" >
|
||||
| < UNSIGNED_HEXADECIMALLONG : <HEXADECIMALINT> ("ul" | "lu") >
|
||||
|
||||
|
||||
| < FLOATONE : ((["0"-"9"])+ "." (["0"-"9"])* | (["0"-"9"])* "." (["0"-"9"])+)
|
||||
("e" (["-","+"])? (["0"-"9"])+)? (["f","l"])? >
|
||||
| < FLOATONE : (["0"-"9"](<DECIMALDIGIT>)* "."
|
||||
| "." (<DECIMALDIGIT>)+
|
||||
| ["0"-"9"](<DECIMALDIGIT>)* "." (<DECIMALDIGIT>)+)
|
||||
("e" (["-","+"])? (<DECIMALDIGIT>)+)? (["f","l"])? >
|
||||
|
||||
| < FLOATTWO : (["0"-"9"])+ "e" (["-","+"])? (["0"-"9"])+ (["f","l"])? >
|
||||
| < FLOATTWO : ["0"-"9"](<DECIMALDIGIT>)* "e" (["-","+"])? (<DECIMALDIGIT>)+ (["f","l"])? >
|
||||
}
|
||||
|
||||
TOKEN :
|
||||
|
Loading…
x
Reference in New Issue
Block a user