The floating-point automaton detects integers as well, as a different returned state. Therefore we can call check() once instead of twice and discriminate the two cases by calling the accept functions on the result.
This should speed-up all parsing as the number tests are applied first, contrary to the behavior of FORTH.
The floating-point automaton detects integers as well, as a different returned state. Therefore we can call check() once instead of twice and discriminate the two cases by calling the accept functions on the result.
This should speed-up all parsing as the number tests are applied first, contrary to the behavior of FORTH.