File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -264,6 +264,22 @@ a single integer literal.
264
264
265
265
#### Floating-point literals
266
266
267
+ > ** <sup >Lexer</sup >**
268
+ > FLOAT_LITERAL :
269
+ >   ;  ;   ;  ; DEC_LITERAL ` . `
270
+ > _ (not immediately followed by ` . ` , ` _ ` or an identifier_ )
271
+ >   ;  ; | DEC_LITERAL FLOAT_EXPONENT
272
+ >   ;  ; | DEC_LITERAL ` . ` DEC_LITERAL FLOAT_EXPONENT<sup >?</sup >
273
+ >   ;  ; | DEC_LITERAL (` . ` DEC_LITERAL)<sup >?</sup >
274
+ > FLOAT_EXPONENT<sup >?</sup > FLOAT_SUFFIX
275
+ >
276
+ > FLOAT_EXPONENT :
277
+ >   ;  ; (` e ` |` E ` ) (` + ` |` - ` )?
278
+ > (DEC_DIGIT|` _ ` )<sup >\* </sup > DEC_DIGIT (DEC_DIGIT|` _ ` )<sup >\* </sup >
279
+ >
280
+ > FLOAT_SUFFIX :
281
+ >   ;  ; ` f32 ` | ` f64 `
282
+
267
283
A _ floating-point literal_ has one of two forms:
268
284
269
285
* A _ decimal literal_ followed by a period character ` U+002E ` (` . ` ). This is
You can’t perform that action at this time.
0 commit comments