Fix seg fault parsing invalid exponents

Add error message when exponents are incomplete,
for example 5e and 5.e
This commit is contained in:
William S Fulton 2018-01-14 19:36:09 +00:00
commit 07a30249f4
8 changed files with 36 additions and 6 deletions

View file

@ -0,0 +1,6 @@
:EOF: Error: Exponent does not have any digits
pp_invalid_exponents.i:3: Warning 202: Could not evaluate expression '123e'
pp_invalid_exponents.i:3: Warning 202: Error: 'Syntax error'
:EOF: Error: Exponent does not have any digits
pp_invalid_exponents.i:6: Warning 202: Could not evaluate expression '456.e'
pp_invalid_exponents.i:6: Warning 202: Error: 'Syntax error'