Skip to content

Conversation

@QuickWrite
Copy link
Owner

This pull request add the feature that comments can now be added.

The syntax of the comments can be specified through a setting called comment:

local asm = LuASM:new(instructions, {
    comment = ";.*$"
})

This will now allow for comments like this:

start:  mov 10 r0  ; This is a comment
        add  r0 r1
        jmp  start

Closes #2

@QuickWrite QuickWrite self-assigned this Sep 1, 2025
@QuickWrite QuickWrite added the enhancement New feature or request label Sep 1, 2025
@QuickWrite QuickWrite linked an issue Sep 1, 2025 that may be closed by this pull request
@QuickWrite
Copy link
Owner Author

Looks good to me.

@QuickWrite QuickWrite merged commit 18fe18f into main Sep 1, 2025
1 check passed
@QuickWrite QuickWrite deleted the 2-add-comments branch September 1, 2025 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add comments

2 participants