xavitator / nut-lang

MIT License
0 stars 0 forks source link

Accept exposant for integer #26

Open FauconFan opened 6 years ago

FauconFan commented 6 years ago

Do we accept

10e10

e10

e2

xavitator commented 6 years ago

I think that exponent is only after a float number. Moreover, the number after the exponent have to be a int8 number. What do you think about it ?

FauconFan commented 6 years ago

Json accept e|E after every number. We should accept it...

maiste commented 6 years ago

I don't like to put an exponent after an int number but if JSON accepts it, we must follow this logic...

xavitator commented 6 years ago

that's right, json accepts this. So we need to accept. In conclusion, we need to put it in the grammar.