All Downloads are FREE. Search and download functionalities are using the official Maven repository.

reference.language.comments.html Maven / Gradle / Ivy




    
    Comments
    
    

    
    

    
    

    
    
    
    

    


Comments

Prompto supports comments in the form of line comments.
A line comment is a line of text starting by // in E and O dialects, or # in M dialect.
Prompto code is ususally not stored in files, so a comment cannot be attached to a file location. Instead, a comment is always attached to the next non-comment line of code.
In the below example, the line comment is attached to the attribute declaration.


Prompto does not support Java-style inline comments /* ... */, because it would be impossible to place them when translating code from one dialect to another. For the same reason, Prompto does not support end of line comments, such as a = 2 // assign 2 to a. The O dialect ignores line breaks, while the E and M dialects don't, so they would dangle around when translated.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy