mu: sexp-parser: add support for negative numbers

We need those too!
This commit is contained in:
Dirk-Jan C. Binnema
2020-01-25 19:54:37 +02:00
parent eb3cac39ee
commit ba370f748c
2 changed files with 11 additions and 5 deletions

View File

@ -48,6 +48,7 @@ test_parser()
check_parse(R"(:foo-123)", "<symbol>{:foo-123}");
check_parse(R"("foo")", "<string>{foo}");
check_parse(R"(12345)", "<integer>{12345}");
check_parse(R"(-12345)", "<integer>{-12345}");
check_parse(R"((123 bar "cuux"))", "<list>(<integer>{123}<symbol>{bar}<string>{cuux})");
check_parse(R"("\"")", "<string>{\"}");