ucb-cyarp / vitis

Laminar - Optimizing DSP Compiler
BSD 3-Clause "New" or "Revised" License
3 stars 0 forks source link

Bug when Parsing Numeric Value from XML when using "#e-#" notation #46

Closed cyarp closed 4 years ago

cyarp commented 4 years ago

When importing a Numeric Value from XML which uses the "#e-#" notation, the parser interprets the number as an integer and discards the exponent term. This does not occur when a decimal exists somewhere in the expression to be parsed. The error exists because the decision about whether a number to parse is integer or floating point is based solely on the existence of a decimal point in the string.

The fix is to also check for negative exponent terms.

cyarp commented 4 years ago

Adding new test cases to check for this