File tree Expand file tree Collapse file tree 2 files changed +21
-15
lines changed Expand file tree Collapse file tree 2 files changed +21
-15
lines changed Original file line number Diff line number Diff line change @@ -222,12 +222,12 @@ contain variables.
222
222
223
223
** Int**
224
224
225
- Int is a number specified without a decimal point (ex. ` 1 ` ).
225
+ Int is a number specified without a decimal point or exponent (ex. ` 1 ` ).
226
226
227
227
** Float**
228
228
229
- A Float numbers always includes a decimal point (ex. ` 1.0 ` ) and may optionally
230
- also include an exponent (ex. ` 6.0221413e23 ` ).
229
+ A Float number includes either a decimal point (ex. ` 1.0 ` ) or an exponent
230
+ (ex. ` 1e50 ` ) or both (ex. ` 6.0221413e23 ` ).
231
231
232
232
** Boolean**
233
233
Original file line number Diff line number Diff line change @@ -158,24 +158,30 @@ Punctuator : one of ! $ ( ) ... : = @ [ ] { | }
158
158
159
159
Name : /[ _ A-Za-z] [ _0-9A-Za-z ] * /
160
160
161
- IntValue : Sign? IntegerPart
161
+ IntValue : IntegerPart
162
162
163
- FloatValue : Sign? IntegerPart . Digit+ ExponentPart?
164
-
165
- Sign : -
163
+ FloatValue :
164
+ - IntegerPart FractionalPart
165
+ - IntegerPart ExponentPart
166
+ - IntegerPart FractionalPart ExponentPart
166
167
167
168
IntegerPart :
168
- - 0
169
- - NonZeroDigit
170
- - NonZeroDigit Digit+
169
+ - NegativeSign? 0
170
+ - NegativeSign? NonZeroDigit Digit+?
171
+
172
+ FractionalPart : . Digit+
173
+
174
+ ExponentPart : ExponentIndicator Sign? Digit+
175
+
176
+ Digit : one of 0 1 2 3 4 5 6 7 8 9
177
+
178
+ NonZeroDigit : Digit but not ` 0 `
171
179
172
- ExponentPart : e Sign? Digit+
180
+ Sign : one of + -
173
181
174
- NonZeroDigit : one of 1 2 3 4 5 6 7 8 9
182
+ NegativeSign : -
175
183
176
- Digit :
177
- - 0
178
- - NonZeroDigit
184
+ ExponentIndicator : one of ` e ` ` E `
179
185
180
186
StringValue :
181
187
- ` "" `
You can’t perform that action at this time.
0 commit comments