Commit Graph
7 Commits
Author SHA1 Message Date
PleegWat f18199c5d0 Only allow 0o prefix for octal, not just 0 2026-09-03 16:45:04 +02:00
PleegWat b4af75a18e Handle negative in radix-specific preludes 2026-09-03 14:31:54 +02:00
PleegWat 836b977fc9 Implement negative number parsing 2026-09-03 13:42:11 +02:00
PleegWat 2c6e025dff Refactor tests to use data structs
Rather than a pointer to the end of the parseable string, we now store
the number of bytes we expect to be parsed. Current code allows for 11
bytes of string data which should suffice for most usecases.
2026-09-03 11:34:01 +02:00
PleegWat 9ff0a3192c Fix binary parsing and more tests 2026-09-02 21:33:58 +02:00
PleegWat fd5469aafc Add some cases, fix an octal bug 2026-09-02 21:28:29 +02:00
PleegWat e8cf5ae35f Initial version of atoi
Functions to convert strings to integers in various bases
2026-09-02 21:22:04 +02:00