zackradisic / aussieplusplus

Programming language from down under
aussieplusplus.vercel.app
609 stars 15 forks source link

Block comments #14

Closed bbrk24 closed 2 years ago

bbrk24 commented 2 years ago

The syntax highlighting suggests /* ... */ comments exist, but using one causes an error.

zackradisic commented 2 years ago

Yeah I didn't get around to implementing block comments, should be a trivial thing to add. Before I do, anyone have any ideas for making them more strayan? Here's an idea:

OI MATE!
Everything inside of here is commented out
GOT IT?!
jwfxpr commented 2 years ago

Oh that's great, but some flexibility in syntax would be good. It should be equally valid to start a comment block with other vocative forms. In other words, OI DRONGO! or OI D***HEAD! should also work, no?

bbrk24 commented 2 years ago

The main reason I suggested it was so I could do comments inline, like f(/* comment here */);. That being said, I like your idea too much to say no. It also lines up with how everything before the G'DAY MATE! is ignored.

zackradisic commented 2 years ago

Added support for block comments:

OI MATE!
This is a comment
GOT IT?
bbrk24 commented 2 years ago

@zackradisic I don't see them in the documentation anywhere.