rars
rars copied to clipboard
Comment Multiple Lines
Is there a way to comment multiple lines in rars 1.5? (i.e. in C we use block comments with /* */ notation)
There is not a way to easily comment multiple lines. You must comment out each line with #.
It might be possible to make RARS accept C style comments without too much effort, but I personally don't plan on implementing it. If you would like to give it a shot, the most relevant file is https://github.com/TheThirdOne/rars/blob/345c17b8beac5ecfc17f6764dc78f950366b7c8c/src/rars/assembler/Tokenizer.java#L290
I have also considered completely rewriting the assembler; if I do, I will keep C-style multi-line comments in mind.
Please add this
I'm currently working on adding this feature. I expect to be finished today, stay tuned.
Edit: Didn't manage to finish it, but I think I'm close.
Feel free to check out the Pull Request at #203 and to give me your feedback 😊