Feature: Tokenize Comments #1

Closed
opened 2023-09-21 21:40:12 +00:00 by j · 1 comment
Owner

Feature progress

  • Create comment token types
  • Define rules for tokenizing comments

Feature description

Plain comments take one of three forms:

  • Shebang comments, beginning with "#!/"
  • Line comments, beginning with "//"
  • Block comments, wrapped in "/*", "*/"

Example

#!/bin/env conlang
// This is an example of a line comment
/* This is an example of a block comment */
# Feature progress - [x] Create comment token types - [x] Define rules for tokenizing comments # Feature description Plain comments take one of three forms: - Shebang comments, beginning with `"#!/"` - Line comments, beginning with `"//"` - Block comments, wrapped in `"/*"`, `"*/"` # Example ```rust #!/bin/env conlang // This is an example of a line comment /* This is an example of a block comment */ ```
j added the
enhancement
label 2023-09-21 21:40:12 +00:00
j added this to the Basic Syntax project 2023-09-21 21:40:12 +00:00
j changed title from Comments to Feature: Comments 2023-09-21 22:02:48 +00:00
j changed title from Feature: Comments to Feature: Tokenize Comments 2023-09-23 05:09:08 +00:00
Author
Owner

Implemented in 06597fa1e9

Implemented in https://git.soft.fish/j/Conlang/commit/06597fa1e98a254683604db2429e9234d7e3d176
j closed this issue 2023-09-23 05:18:35 +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#1
No description provided.