Skip to content

Conversation

@mrdimidium
Copy link
Member

No description provided.

Copy link
Collaborator

@karlseguin karlseguin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since it's still in draft, I figured I'd just comment on the superficial (but still important)

/// A `<function-token>`
///
/// The value (name) does not include the `(` marker.
Function: []const u8,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We tend to follow Zig's naming guidelines, which has tag names as snake_case.


// If true, the input has at least `n` bytes left *after* the current one.
// That is, `Lexer.byte_at(n)` will not panic.
fn has_at_least(self: *const Tokenizer, n: usize) bool {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And function names are camelCase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants