refers to issue #21
This solutions assumes that if a token (in perhaps-integer) does not contains a decimal-digit then it is a symbol. It works for symbols +, -, +. and -. It also works when these symbols are embedded in a list. It does not break any existing tests. I think it is a decent solution but I am not sure that it is the best solution.
This also fixes a bug where on the last case of perhaps-integer it returns just numerator instead of (* sign numerator)
refers to issue #21 This solutions assumes that if a token (in perhaps-integer) does not contains a decimal-digit then it is a symbol. It works for symbols
+
,-
,+.
and-.
It also works when these symbols are embedded in a list. It does not break any existing tests. I think it is a decent solution but I am not sure that it is the best solution.This also fixes a bug where on the last case of perhaps-integer it returns just
numerator
instead of(* sign numerator)