GLaDOS
  • Home
  • 🌴Introduction
    • Installation
    • Basic Code example
    • Syntax Overview
  • 🤖Developpers
    • Parsing
    • Verbose Mode
  • ✨Features
    • Types
    • Operators
    • Lists
    • Includes
    • Syntactic Sugar
    • Loops
    • Conditions
    • Internal Functions
    • Recursivity
    • Prototypes
    • Error handling
    • Comments
    • Scopes
  • 📚Libraries
    • Mathematics
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
  1. Features

Comments

We've implemented comments in GoMelan like in C, here is some examples of GoMelan comments:

fn power(x: Int, y: Int) -> Int;

/* Here is a comment
i can also write it
on several lines */

// This is a one line comments

fn main() -> Int
{
    total: Float = 3.4; // Init total to 3.4
    a: [Int] = [1, 3, -4, 2, 0, 6, -6];

    return power(floatToInt(total) + sum(a), 3); // Return the result of the power calculation
}
PreviousError handlingNextScopes

Last updated 1 year ago

Was this helpful?

✨