Feature: Tokenize Integer literals #3

Closed
opened 2023-09-21 23:24:13 +00:00 by j · 1 comment
Owner

Feature Progress

  • Create integer literal types
  • Define rule for tokenizing integer literals

Feature description

An integer literal is:

  • an optional base specifier (0x, 0d, 0o, 0b)
  • a sequence of n-ary digits

Example

// This is an integer literal
123
0xdeadbeef
0b10010110
# Feature Progress <!-- Describe the steps for implementing this feature in libconlang --> - [x] Create integer literal types - [x] Define rule for tokenizing integer literals # Feature description An integer literal is: - an optional base specifier (`0x`, `0d`, `0o`, `0b`) - a sequence of n-ary digits # Example ```rust // This is an integer literal 123 0xdeadbeef 0b10010110 ```
j added the
enhancement
label 2023-09-21 23:24:13 +00:00
j added this to the Basic Syntax project 2023-09-21 23:25:02 +00:00
j changed title from Feature: Integer literals to Feature: Tokenize Integer literals 2023-09-23 05:19:12 +00:00
j added a new dependency 2023-09-23 05:39:39 +00:00
j removed a dependency 2023-09-23 05:40:29 +00:00
j added a new dependency 2023-09-23 05:40:53 +00:00
Author
Owner

Right now, I'm leaving off base validation and value interpretation to the parser.

Right now, I'm leaving off base validation and value interpretation to the parser.
j closed this issue 2023-09-25 19:28:28 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Blocks
Reference: j/Conlang#3
No description provided.