Skip to content

Commit

Permalink
Support octal, hex, and arbitrary radix numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
jianlingzhong committed Dec 20, 2024
1 parent 466fdb7 commit b747cde
Show file tree
Hide file tree
Showing 3 changed files with 785 additions and 199 deletions.
4 changes: 2 additions & 2 deletions compiler+runtime/include/cpp/jank/read/lex.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,14 +213,14 @@ namespace jank::read::lex
processor(native_persistent_string_view const &f);

result<token, error> next();
result<codepoint, error> peek() const;
result<codepoint, error> peek(native_integer const ahead = 1) const;
option<error> check_whitespace(native_bool const found_space);

iterator begin();
iterator end();

size_t pos{};
/* Whether or not the previous token requires a space after it. */
/* Whether the previous token requires a space after it. */
native_bool require_space{};
/* True when seeing a '/' following a number. */
native_bool found_slash_after_number{};
Expand Down
Loading

0 comments on commit b747cde

Please sign in to comment.