Closed wojdyr closed 7 years ago
This comes from the fact that it started reusing a programming language's definition of double
, where a number without a dot is an integer and therefore a different type. But given that it is a stand-alone example, that doesn't make much sense so I'll fix it in a minute.
The example grammar in
double.hh
requires dot in the input, so it won't parse2
or2e0
. (it's not an intentional limitation?numeral
fromlua53_parse.cc
handles it correctly) Here is what the sum.cc program shows: