sjbarag / brs

An interpreter for the BrightScript language that runs on non-Roku platforms.
MIT License
114 stars 43 forks source link

fix(lex): Allow explicit double designator on literals > 10 characters #617

Closed sjbarag closed 3 years ago

sjbarag commented 3 years ago

RBI forces all literal numbers to double-precision if they're longer than characters, and also allows such a number to be explicitly designated a double with a trailing #. brs didn't. Look for a trailing # when lexing long numeric literals, to avoid treating it like a conditional compilation string.

fixes #616

sjbarag commented 3 years ago

allow-explicit-double-designation-with-octothorp

ok i admit it i just wanted to use "octothorp" in a sentence. i don't get many chances.