Feature: Tokenize Delimiters #10

Closed
opened 2023-09-25 23:43:42 +00:00 by j · 0 comments
Owner

Feature Progress

  • Create types for each delimiter
  • Define rules for tokenizing each delimiter

Feature description

Precedence scoping delimiter pairs

  • Block scope: { }
  • Call scope: ( )
  • Index scope: [ ]

Example

// In the construction of an array
let x = [1, 2, 3];
// In indexing the array
x[1]
# Feature Progress <!-- Describe the steps for implementing this feature in libconlang --> - [x] Create types for each delimiter - [x] Define rules for tokenizing each delimiter # Feature description <!-- [Feature name] does a cool thing that you should describe here --> Precedence scoping delimiter pairs - Block scope: `{ }` - Call scope: `( )` - Index scope: `[ ]` # Example <!-- Demonstrate this feature with a clear, concise code example Right now, we're (ab)using Rust syntax highlighting, since it most closely matches what I'm currently aiming for --> ```rust // In the construction of an array let x = [1, 2, 3]; // In indexing the array x[1] ```
j added the
enhancement
label 2023-09-25 23:43:42 +00:00
j added this to the Basic Syntax project 2023-09-25 23:43:42 +00:00
j closed this issue 2023-09-27 23:30:43 +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.

Dependencies

No dependencies set.

Reference: j/Conlang#10
No description provided.